diff options
author | Pavel Emelyanov <[email protected]> | 2011-01-12 17:00:46 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-01-13 08:03:18 -0800 |
commit | 6164281ab7a4d3bd42588d6b25984e960a2e032f (patch) | |
tree | ea4bf309efed7ec922431c6e5b5d659919eaf2ae /net/unix/sysctl_net_unix.c | |
parent | e020e742e5dbd8c44d31706995dc13ddc732e274 (diff) |
user_ns: improve the user_ns on-the-slab packaging
Currently on 64-bit arch the user_namespace is 2096 and when being
kmalloc-ed it resides on a 4k slab wasting 2003 bytes.
If we allocate a separate cache for it and reduce the hash size from 128
to 64 chains the packaging becomes *much* better - the struct is 1072
bytes and the hole between is 98 bytes.
[[email protected]: s/__initcall/module_init/]
Signed-off-by: Pavel Emelyanov <[email protected]>
Acked-by: Serge E. Hallyn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions