diff options
| author | Yuichi Nakamura <[email protected]> | 2007-08-24 02:55:11 +0000 |
|---|---|---|
| committer | James Morris <[email protected]> | 2007-10-16 22:59:30 +0000 |
| commit | 3232c110b56bd01c5f0fdfd16b4d695f2e05b0a9 (patch) | |
| tree | b369f8dc55e9d27bbd0b8b4b6843c0736d61b005 /security/selinux/hooks.c | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild (diff) | |
| download | kernel-3232c110b56bd01c5f0fdfd16b4d695f2e05b0a9.tar.gz kernel-3232c110b56bd01c5f0fdfd16b4d695f2e05b0a9.zip | |
SELinux: tune avtab to reduce memory usage
This patch reduces memory usage of SELinux by tuning avtab. Number of hash
slots in avtab was 32768. Unused slots used memory when number of rules is
fewer. This patch decides number of hash slots dynamically based on number
of rules. (chain length)^2 is also printed out in avtab_hash_eval to see
standard deviation of avtab hash table.
Signed-off-by: Yuichi Nakamura<[email protected]>
Acked-by: Stephen Smalley <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
