mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rik Faith <faith@redhat.com>
To: Olaf Kirch <okir@suse.de>, Christoph Hellwig <hch@infradead.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH][RFC] Light-weight Auditing Framework
Date: Tue, 2 Mar 2004 10:02:14 -0500	[thread overview]
Message-ID: <16452.41462.168143.57921@neuro.alephnull.com> (raw)
In-Reply-To: [Rik Faith <faith@redhat.com>] Tue  2 Mar 2004 06:09:09 -0500

On Tue  2 Mar 2004 06:09:09 -0500, Rik Faith <faith@redhat.com> wrote:
> On Tue  2 Mar 2004 10:44:38 +0100, Olaf Kirch <okir@suse.de> wrote:
> > A better approach may be to have the kernel write audit records
> > directly to the audit trail; this solves both the record loss issue
> > and improves performance.
> 
> This seems like it would solve several problems.  I'll have to think
> about it more.  (You still have to worry about what happens when the
> drive is too slow for the message rate, how to detect this, and,
> perhaps, how to limit its impact on systems where reliable delivery of
> messages is not absolutely critical.  With netlink, these worries are
> easy to deal with.)

OK, I've thought about this more.  I can appreciate the argument that
writing directly to disk avoids the performance impact of having a
user-space daemon write to disk (e.g., scheduling and, possibly, extra
copies).  However, I do not believe this addresses the fundamental
problem and, because of the nature of the problem, I do not believe the
performance improvement will be observed in all cases.  Let me explain.

CPUs can generate audit records magnitudes of order faster than they can
be written to disk.  Further, the production is non-uniform.  Because
this problem involves a bursty producer and a slow consumer, I view it
as a queuing problem.  Writing directly to disk makes the consumer
marginally faster, but it does not change the fundamental relationships
in the problem -- the consumer is still magnitudes of order slower than
the producer.  This means that, even though the direct-write consumer is
faster, the speed of the whole queue hasn't changed much, if at all.

Further, I am concerned that using direct writes instead of netlink
moves hard problems from one (simple, flexibly) layer to another (more
complex, less flexible) layer.  For example, the file system may have
already made some decisions for you that you could have made differently
if you had access to information about the netlink-managed queue.



  reply	other threads:[~2004-03-02 15:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 16:28 Rik Faith
2004-03-01 19:45 ` Christoph Hellwig
2004-03-01 20:28   ` Rik Faith
2004-03-02  9:44     ` Olaf Kirch
2004-03-02 11:09       ` Rik Faith
2004-03-02 15:02         ` Rik Faith [this message]
2004-03-03  8:55     ` Muli Ben-Yehuda
2004-03-03 11:21       ` Rik Faith
2004-03-01 20:26 ` Chris Wright
2004-03-02 21:49   ` Rik Faith
2004-03-03  0:49     ` Chris Wright
2004-03-03 10:57       ` Rik Faith

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=16452.41462.168143.57921@neuro.alephnull.com \
    --to=faith@redhat.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=okir@suse.de \
    /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®