Date: Wed, 17 Sep 2008 21:05:31 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c Message-ID: <200809172105.m8HL5qnU019377@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2008-09-17 21:05:31 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/amd64/amd64 pmap.c
sys/i386/i386 pmap.c
Log:
SVN rev 183130 on 2008-09-17 21:05:31Z by jhb
MFC: 180352
In FreeBSD 7.0 and beyond, pmap_growkernel() should pass VM_ALLOC_INTERRUPT
to vm_page_alloc() instead of VM_ALLOC_SYSTEM. VM_ALLOC_SYSTEM was the
logical choice before FreeBSD 7.0 because VM_ALLOC_INTERRUPT could not
reclaim a cached page. Simply put, there was no ordering between
VM_ALLOC_INTERRUPT and VM_ALLOC_SYSTEM as to which "dug deeper" into the
cache and free queues. Now, there is; VM_ALLOC_INTERRUPT dominates
VM_ALLOC_SYSTEM.
While I'm here, teach pmap_growkernel() to request a prezeroed page.
Approved by: re (kib), alc
Revision Changes Path
1.590.2.8 +8 -4 src/sys/amd64/amd64/pmap.c
1.594.2.10 +4 -2 src/sys/i386/i386/pmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809172105.m8HL5qnU019377>
