Auditd hangs hard

Matthew Booth mbooth at redhat.com
Tue Jun 12 16:54:30 UTC 2007


On Tue, 2007-06-12 at 12:45 -0400, Steve Grubb wrote:
> It depends on how you have the configuration set. If you set disp_qos to 
> lossy, then it should have discarded packets sent to the dispatcher. The only 
> thing that it would be waiting on at that point is disk writing which has 
> several tunables, too. If the dispatcher was the limiting factor, you may 
> have to make it multi-threaded with one thread assigned to drain the auditd 
> interface and write it to a fifo where another thread writes to syslog. This 
> would allow the audit system to make better use of its time slice.

dispatcher qos set to lossy. All writing to disk disabled. Limiting
factor appeared to have been auditd not being scheduled often enough, so
the performance factor appears to be the behaviour of the kernel when
it's buffers are full.

> > If it's configured to drop messages rather than kill the system, 
> > it could probably disable auditing entirely when the kernel buffer is
> > full, and only re-enable it when there's enough space.
> 
> How big was the kernel buffer when you had problems? (Its adjustable.)

32k

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat, Global Professional Services

M:       +44 (0)7977 267231
GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20070612/6b764eb6/attachment.sig>


More information about the Linux-audit mailing list