linux/security/selinux
James Morris 7cae7e26f2 [PATCH] SELinux: add slab cache for inode security struct
Add a slab cache for the SELinux inode security struct, one of which is
allocated for every inode instantiated by the system.

The memory savings are considerable.

On 64-bit, instead of the size-128 cache, we have a slab object of 96
bytes, saving 32 bytes per object.  After booting, I see about 4000 of
these and then about 17,000 after a kernel compile.  With this patch, we
save around 530KB of kernel memory in the latter case.  On 32-bit, the
savings are about half of this.

Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-22 07:54:07 -08:00
..
include [SELINUX]: selinux_socket_getpeer_{stream,dgram} fixup 2006-03-20 22:49:00 -08:00
ss [PATCH] sem2mutex: security/ 2006-03-22 07:54:06 -08:00
avc.c [PATCH] selinux: require AUDIT 2006-02-07 16:12:33 -08:00
hooks.c [PATCH] SELinux: add slab cache for inode security struct 2006-03-22 07:54:07 -08:00
Kconfig [PATCH] selinux: require AUDIT 2006-02-07 16:12:33 -08:00
Makefile [PATCH] selinux: require SECURITY_NETWORK 2006-02-05 11:06:52 -08:00
netif.c [PATCH] SELinux: convert to kzalloc 2005-10-30 17:37:11 -08:00
netlink.c
nlmsgtab.c [IPSEC]: Sync series - update selinux 2006-03-20 19:17:39 -08:00
selinuxfs.c [PATCH] SELinux: fix hard link count for selinuxfs root directory 2006-03-22 07:54:07 -08:00
xfrm.c [SECURITY]: TCP/UDP getpeersec 2006-03-20 22:41:23 -08:00