summaryrefslogtreecommitdiff
path: root/include/mach/task_special_ports.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-02-06 00:41:06 +0100
committerRichard Braun <rbraun@sceen.net>2014-02-06 00:41:06 +0100
commit134d5b6b353d438961bf989a823fed5e4793854f (patch)
treeac782ae6004005d56bd96b51d514e4fe51d46d9f /include/mach/task_special_ports.h
parente5b90c13cb7d762a52f81c110ca5cc53eb16ac7b (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/task_special_ports.h')
0 files changed, 0 insertions, 0 deletions