aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJohn Brooks <[email protected]>2015-03-24 20:54:17 +0000
committerPaul Moore <[email protected]>2015-04-07 00:16:21 +0000
commit33ebc1932a07efd8728975750409741940334489 (patch)
treece88911dbfbfa42b6cfd4c06631a25b74f94d53a /net/unix/af_unix.c
parentselinux: convert avtab hash table to flex_array (diff)
downloadkernel-33ebc1932a07efd8728975750409741940334489.tar.gz
kernel-33ebc1932a07efd8728975750409741940334489.zip
selinux: Use a better hash function for avtab
This function, based on murmurhash3, has much better distribution than the original. Using the current default of 2048 buckets, there are many fewer collisions: Before: 101421 entries and 2048/2048 buckets used, longest chain length 374 After: 101421 entries and 2048/2048 buckets used, longest chain length 81 The difference becomes much more significant when buckets are increased. A naive attempt to expand the current function to larger outputs doesn't yield any significant improvement; so this function is a prerequisite for increasing the bucket size. sds: Adapted from the original patches for libsepol to the kernel. Signed-off-by: John Brooks <[email protected]> Signed-off-by: Stephen Smalley <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions