All of lore.kernel.org
 help / color / mirror / Atom feed
* Audit / Netlink slowness
@ 2005-06-14  6:55 Bernardo Innocenti
  0 siblings, 0 replies; only message in thread
From: Bernardo Innocenti @ 2005-06-14  6:55 UTC (permalink / raw)
  To: linux-kernel

Hello,

on a server running kernel 2.6.11-1.1369_FC4, both ssh
and su where taking a longish amount of time (over >1.5 sec.)

Running "strace -r 2>strace.out su", I discovered that
netlink communication is the major cause of slowdown.

"su" connects to a NETLINK_AUDIT socket 3 or 4 times.
Each time it does 2 sendto() + recvfrom() operations,
with a latency of ~200ms.  This adds up to 800ms wasted
time.

Disabling CONFIG_AUDIT in the kernel makes su and ssh
very fast again.

Is this behavior to be expected?  CONFIG_AUDIT is enabled
by default in FC4, so many people are going to be hit by
this problem.

Please Cc me in replies as I'm not subrscribed to the lkml.

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-14  6:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-14  6:55 Audit / Netlink slowness Bernardo Innocenti

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.