Re: [patch][-mm] selinux: Reduce memory use by avtab

2005-08-12 Thread Alexey Dobriyan
On Fri, Aug 12, 2005 at 08:47:20AM -0400, Stephen Smalley wrote: > Should -Wbitwise be included in CHECKFLAGS in the kernel Makefile by > default? It should but not right now ;-). $ grep -c "warning: " W_sparse_* W_sparse_i386:14887 W_sparse_ppc:16214 W_sparse_ppc64:15765 W_sparse_sparc:8906 W_sp

Re: [patch][-mm] selinux: Reduce memory use by avtab

2005-08-12 Thread Stephen Smalley
On Fri, 2005-08-12 at 00:34 +0400, Alexey Dobriyan wrote: > On Thu, Aug 11, 2005 at 03:32:24PM -0400, Stephen Smalley wrote: > > This patch improves memory use by SELinux by both reducing the avtab > > node size and reducing the number of avtab nodes. > > > +int avtab_read_item(void *fp, u32 vers,

Re: [patch][-mm] selinux: Reduce memory use by avtab

2005-08-11 Thread Alexey Dobriyan
On Thu, Aug 11, 2005 at 03:32:24PM -0400, Stephen Smalley wrote: > This patch improves memory use by SELinux by both reducing the avtab > node size and reducing the number of avtab nodes. > +int avtab_read_item(void *fp, u32 vers, struct avtab *a, > + int (*insertf)(struct avtab *a

[patch][-mm] selinux: Reduce memory use by avtab

2005-08-11 Thread Stephen Smalley
This patch improves memory use by SELinux by both reducing the avtab node size and reducing the number of avtab nodes. The memory savings are substantial, e.g. on a 64-bit system after boot, James Morris reported the following data for the targeted and strict policies: #objs objsize