1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00
freebsd/sys/vm
Alan Cox 2446e4f02c Enable the new physical memory allocator.
This allocator uses a binary buddy system with a twist.  First and
foremost, this allocator is required to support the implementation of
superpages.  As a side effect, it enables a more robust implementation
of contigmalloc(9).  Moreover, this reimplementation of
contigmalloc(9) eliminates the acquisition of Giant by
contigmalloc(..., M_NOWAIT, ...).

The twist is that this allocator tries to reduce the number of TLB
misses incurred by accesses through a direct map to small, UMA-managed
objects and page table pages.  Roughly speaking, the physical pages
that are allocated for such purposes are clustered together in the
physical address space.  The performance benefits vary.  In the most
extreme case, a uniprocessor kernel running on an Opteron, I measured
an 18% reduction in system time during a buildworld.

This allocator does not implement page coloring.  The reason is that
superpages have much the same effect.  The contiguous physical memory
allocation necessary for a superpage is inherently colored.

Finally, the one caveat is that this allocator does not effectively
support prezeroed pages.  I hope this is temporary.  On i386, this is
a slight pessimization.  However, on amd64, the beneficial effects of
the direct-map optimization outweigh the ill effects.  I speculate
that this is true in general of machines with a direct map.

Approved by:	re
2007-06-16 04:57:06 +00:00
..
default_pager.c
device_pager.c
memguard.c
memguard.h
phys_pager.c Minor typo fix, noticed while I was going through *_pager.c files. 2007-04-10 12:34:51 +00:00
pmap.h
redzone.c
redzone.h
swap_pager.c Do proper "locking" for missing vmmeters part. 2007-06-04 21:45:18 +00:00
swap_pager.h - Move 'struct swdevt' back into swap_pager.h and expose it to userland. 2007-02-07 17:43:11 +00:00
uma_core.c Revert VMCNT_* operations introduction. 2007-05-31 22:52:15 +00:00
uma_dbg.c
uma_dbg.h
uma_int.h Update stale comment on protecting UMA per-CPU caches: we now use 2007-05-09 22:53:34 +00:00
uma.h Add uma_set_align() interface, which will be called at most once during 2007-02-11 20:13:52 +00:00
vm_contig.c Enable the new physical memory allocator. 2007-06-16 04:57:06 +00:00
vm_extern.h
vm_fault.c Rework the PCPU_* (MD) interface: 2007-06-04 21:38:48 +00:00
vm_glue.c Commit 14/14 of sched_lock decomposition. 2007-06-05 00:00:57 +00:00
vm_init.c
vm_kern.c When KVA is exhausted, try the vm_lowmem event for the last time before 2007-04-05 20:52:51 +00:00
vm_kern.h The clean_map has been made local to vm_init.c long ago. 2006-11-20 16:23:34 +00:00
vm_map.c Revert VMCNT_* operations introduction. 2007-05-31 22:52:15 +00:00
vm_map.h
vm_meter.c Commit 14/14 of sched_lock decomposition. 2007-06-05 00:00:57 +00:00
vm_mmap.c Revert VMCNT_* operations introduction. 2007-05-31 22:52:15 +00:00
vm_object.c Enable the new physical memory allocator. 2007-06-16 04:57:06 +00:00
vm_object.h
vm_page.c Enable the new physical memory allocator. 2007-06-16 04:57:06 +00:00
vm_page.h Enable the new physical memory allocator. 2007-06-16 04:57:06 +00:00
vm_pageout.c Enable the new physical memory allocator. 2007-06-16 04:57:06 +00:00
vm_pageout.h
vm_pageq.c Enable the new physical memory allocator. 2007-06-16 04:57:06 +00:00
vm_pager.c
vm_pager.h
vm_param.h Correct two comments. 2007-04-19 04:52:47 +00:00
vm_phys.c Add a new physical memory allocator. However, do not yet connect it 2007-06-10 00:49:16 +00:00
vm_phys.h Add a new physical memory allocator. However, do not yet connect it 2007-06-10 00:49:16 +00:00
vm_unix.c
vm_zeroidle.c Enable the new physical memory allocator. 2007-06-16 04:57:06 +00:00
vm.h
vnode_pager.c Do proper "locking" for missing vmmeters part. 2007-06-04 21:45:18 +00:00
vnode_pager.h