diff options
author | Richard Braun <rbraun@sceen.net> | 2014-02-06 00:41:06 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-02-06 00:41:06 +0100 |
commit | 134d5b6b353d438961bf989a823fed5e4793854f (patch) | |
tree | ac782ae6004005d56bd96b51d514e4fe51d46d9f /include/mach/multiboot.h | |
parent | e5b90c13cb7d762a52f81c110ca5cc53eb16ac7b (diff) |
vm: trigger garbage collection on kernel memory pressure
In addition to physical pages, the slab allocator also consumes kernel
virtual memory, so reclaim pages on failure to allocate from a kernel map.
This method isn't foolproof but helps alleviate fragmentation.
* vm/vm_kern.c (kmem_alloc): Call slab_collect and retry allocation
once on failure.
(kmem_realloc): Likewise.
(kmem_alloc_wired): Likewise.
(kmem_alloc_wired): Likewise.
(kmem_alloc_aligned): Likewise.
Diffstat (limited to 'include/mach/multiboot.h')
0 files changed, 0 insertions, 0 deletions