From owner-cvs-sys Fri May 17 20:38:41 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA19155 for cvs-sys-outgoing; Fri, 17 May 1996 20:38:41 -0700 (PDT) Received: (from dyson@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA19123; Fri, 17 May 1996 20:38:15 -0700 (PDT) Date: Fri, 17 May 1996 20:38:15 -0700 (PDT) From: John Dyson Message-Id: <199605180338.UAA19123@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/vm device_pager.c swap_pager.c vm_fault.c vm_glue.c vm_kern.c vm_map.c vm_meter.c vm_mmap.c vm_object.c vm_page.c vm_pageout.c vm_pager.c src/sys/i386/i386 machdep.c pmap.c trap.c vm_machdep.c src/sys/i386/include pmap.h spl.h src/sys/kern kern_exec.c vfs_bio.c src/sys/sys queue.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dyson 96/05/17 20:38:14 Modified: sys/i386/i386 machdep.c pmap.c trap.c vm_machdep.c sys/i386/include pmap.h spl.h sys/kern kern_exec.c vfs_bio.c sys/sys queue.h sys/vm device_pager.c swap_pager.c vm_fault.c vm_glue.c vm_kern.c vm_map.c vm_meter.c vm_mmap.c vm_object.c vm_page.c vm_pageout.c vm_pager.c Log: This set of commits to the VM system does the following, and contain contributions or ideas from Stephen McKay , Alan Cox , David Greenman and me: More usage of the TAILQ macros. Additional minor fix to queue.h. Performance enhancements to the pageout daemon. Addition of a wait in the case that the pageout daemon has to run immediately. Slightly modify the pageout algorithm. Significant revamp of the pmap/fork code: 1) PTE's and UPAGES's are NO LONGER in the process's map. 2) PTE's and UPAGES's reside in their own objects. 3) TOTAL elimination of recursive page table pagefaults. 4) The page directory now resides in the PTE object. 5) Implemented pmap_copy, thereby speeding up fork time. 6) Changed the pv entries so that the head is a pointer and not an entire entry. 7) Significant cleanup of pmap_protect, and pmap_remove. 8) Removed significant amounts of machine dependent fork code from vm_glue. Pushed much of that code into the machine dependent pmap module. 9) Support more completely the reuse of already zeroed pages (Page table pages and page directories) as being already zeroed. Performance and code cleanups in vm_map: 1) Improved and simplified allocation of map entries. 2) Improved vm_map_copy code. 3) Corrected some minor problems in the simplify code. Implemented splvm (combo of splbio and splimp.) The VM code now seldom uses splhigh. Improved the speed of and simplified kmem_malloc. Minor mod to vm_fault to avoid using pre-zeroed pages in the case of objects with backing objects along with the already existant condition of having a vnode. (If there is a backing object, there will likely be a COW... With a COW, it isn't necessary to start with a pre-zeroed page.) Minor reorg of source to perhaps improve locality of ref. Revision Changes Path 1.191 +3 -1 src/sys/i386/i386/machdep.c 1.90 +817 -614 src/sys/i386/i386/pmap.c 1.76 +1 -15 src/sys/i386/i386/trap.c 1.63 +2 -2 src/sys/i386/i386/vm_machdep.c 1.39 +7 -8 src/sys/i386/include/pmap.h 1.14 +2 -1 src/sys/i386/include/spl.h 1.41 +5 -5 src/sys/kern/kern_exec.c 1.90 +9 -12 src/sys/kern/vfs_bio.c 1.10 +4 -2 src/sys/sys/queue.h 1.23 +4 -4 src/sys/vm/device_pager.c 1.66 +22 -22 src/sys/vm/swap_pager.c 1.44 +12 -12 src/sys/vm/vm_fault.c 1.49 +30 -74 src/sys/vm/vm_glue.c 1.25 +11 -18 src/sys/vm/vm_kern.c 1.45 +112 -131 src/sys/vm/vm_map.c 1.15 +5 -5 src/sys/vm/vm_meter.c 1.42 +2 -3 src/sys/vm/vm_mmap.c 1.69 +49 -36 src/sys/vm/vm_object.c 1.51 +172 -197 src/sys/vm/vm_page.c 1.71 +51 -88 src/sys/vm/vm_pageout.c 1.23 +4 -4 src/sys/vm/vm_pager.c