summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-02-06 23:06:33 +0100
committerRichard Braun <rbraun@sceen.net>2016-02-06 23:11:21 +0100
commit0b07275f60923840dffc80d7b4adb9a1ad7799f5 (patch)
treeb240f0a65143cc2514073adae568e5d477c1239c /vm
parent44d78061e90e777b51cae8e01eda5c0d3ce63103 (diff)
Change computation of slab size
Allocating directly out of the physical memory allocator makes the slab allocator vulnerable to failures due to fragmentation. This change makes the slab allocator use the lowest possible size for its slabs to reduce the chance of contiguous allocation failures. * kern/slab.c (KMEM_MIN_BUFS_PER_SLAB, KMEM_SLAB_SIZE_THRESHOLD): Remove macros. (kmem_cache_compute_sizes): Update the algorithm used to determine slab size and other cache properties.
Diffstat (limited to 'vm')
0 files changed, 0 insertions, 0 deletions