All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Odd memory usage in auditd
Date: Mon, 11 Oct 2010 12:47:56 -0400	[thread overview]
Message-ID: <201010111247.56584.sgrubb@redhat.com> (raw)
In-Reply-To: <DF69A264612A3D4B961979B6957E8CFB0186F4D9@NEXCHANGE.nexor.co.uk>

On Monday, October 11, 2010 11:50:53 am Ross Kirk wrote:
> > I seem to recall something about disk flushing causing auditd to look
> > like its the culprit. Do you have barriers enabled on ext3? You might also
> > try setting the flushing to something else like none and see if that does
> > anything.
> 
> Currently barriers are not enabled as it wasn't something I was aware of.
> However it does sound like something I may well want to be enabled so I
> will give the various flush settings a try and see if the barrier option
> affects anything. 

Well, I was thinking that if you had it enabled that perhaps things were 
getting backed up.


> So if auditd is not the culprit what do you suspect the
> problem is?

Yes. I think under some situations because the flushing is delayed, the kernel 
memory accounting associates the buffers not yet flushed to disk with the 
process that originates the request. I don't think that is fair, but seems to 
happen.

 
> > Try playing with the disk flushing and let us know how that works out.
> > There are no known memory leaks in recent version of auditd. I try to keep
> > malloc down to a minimum to prevent this and memory fragmentation to creep
> > in.
> 
> With;
> *  flush = none Completely different behaviour from previous, memory usage
> never changed for my entire test run 
> *  flush = data No increase in memory usage at all
> *  flush = sync No increase in memory usage at all
> 
> Changing the ext3 barrier setting didn't make any changes to the above
> results nor to the behaviour I saw when "incremental" was set.
> 
> Well as the other settings are better behaved I can change to using "data"
> without any problems I believe. Arguably this is probably a better choice
> for me anyway!
> 
> Thanks for your help!

Sure.

-Steve

      reply	other threads:[~2010-10-11 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07  9:52 Odd memory usage in auditd Ross Kirk
2010-10-07 19:51 ` Steve Grubb
2010-10-11 15:50   ` Ross Kirk
2010-10-11 16:47     ` Steve Grubb [this message]

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=201010111247.56584.sgrubb@redhat.com \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.