diff options
author | Richard Braun <rbraun@sceen.net> | 2016-02-06 23:06:33 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-02-06 23:11:21 +0100 |
commit | 0b07275f60923840dffc80d7b4adb9a1ad7799f5 (patch) | |
tree | b240f0a65143cc2514073adae568e5d477c1239c /kern/queue.h | |
parent | 44d78061e90e777b51cae8e01eda5c0d3ce63103 (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 'kern/queue.h')
0 files changed, 0 insertions, 0 deletions