mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bernd Eckenfels <ecki-news2002-02@lina.inka.de>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH-RFC] POSIX Event Logging, kernel 2.5.6 & 2.4.18
Date: Thu, 14 Mar 2002 03:32:19 +0100	[thread overview]
Message-ID: <E16lL2R-0006Rt-00@sites.inka.de> (raw)
In-Reply-To: <3C8FF7C7.5CA133B0@us.ibm.com>

In article <3C8FF7C7.5CA133B0@us.ibm.com> you wrote:
> Another way to "replace" printk is not to replace the function itself,
> but
> instead combine printk's ring buffer with the event logging buffer, but
> still
> the end-user would see events in the event log and/or messages in
> /var/log/messages.  A proposal like that at this point in time would
> probably
> be too radical, but is certainly a possibility.

Yes, I think it is at least needed to share the ring buffer.

> I am sorry, I am not really familiar with netlink.  Please explain why
> you 
> think netlink could be (or perhaps should be) replaced with event
> logging ?      

There are different uses for netlink, but one of the most common is event
signalling (high performance) for routing and interface changes. Also
denied/accounted/accepted packets need to be logged by something like ulogd
because printk is not the right solution for that.

> I think the point you are making is that there are certain events that
> you
> never under any circumstances want to miss or discard because of their 
> importance.  printk does not address this nor does it report the fact
> that
> messages in the ring buffer have even been overwritten.  Event logging
> is a little better, but it does not prevent the loss of events either.

Posix and BSD Auditing events are an example for that. In secure mode the
system must be halted on overflow. a printk replacement will want to keep the
oldest entries and a enterprise event system may want to keep the oldest.

> One scheme we have thought of is to add dynamic event buffer allocation,
> so
> that if the static event buffer overflows additional dynamic buffering
> will
> activate until the logging daemon can read-out the events.  Another 
> possibility is the "selective" discarding of lower severity events when
> the
> event buffer reaches a high-water mark.

yes, but even larger dynamic kernel buffers will not stop you from running
into full buffers. And I think a flexible policy will allow everybody to be
happy with your framework. the only way to get it accepted, right?

> draining them out, the "per-event type"  policy you seem to be
> suggesting 
> *I think* would add more complexity than dynamically allocating more
> buffer
> space when needed.  Please elaborate if you disagree.    

I agree, it adds more complexity. Simple solutions are prefered, as long as
they are solutions :)

Greetings
Bernd

  reply	other threads:[~2002-03-14  2:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-14  1:07 Larry Kessler
2002-03-14  2:32 ` Bernd Eckenfels [this message]
2002-03-14 19:45 ` Brian Beattie
2002-03-15  1:10   ` Larry Kessler
  -- strict thread matches above, loose matches on Subject: below --
2002-03-15 17:57 Larry Kessler
2002-03-15  1:17 Larry Kessler
2002-03-12 22:15 Larry Kessler
2002-03-12 22:41 ` Dominik Kubla
2002-03-12 23:02   ` Larry Kessler
2002-03-13  1:10     ` Bernd Eckenfels
2002-03-13  0:33 ` Bernd Eckenfels

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E16lL2R-0006Rt-00@sites.inka.de \
    --to=ecki-news2002-02@lina.inka.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®