diff options
author | dyson <dyson@FreeBSD.org> | 1996-05-18 03:38:05 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-05-18 03:38:05 +0000 |
commit | 242e10df110e682d1d2f90d9734a4fd3436f24c1 (patch) | |
tree | fd8af1ab66bdbd2395179d258c5c00c4a695208d /sys/vm/vm_pager.c | |
parent | 3c6405efe575ceb7213f2bf914099da9523800cd (diff) | |
download | FreeBSD-src-242e10df110e682d1d2f90d9734a4fd3436f24c1.zip FreeBSD-src-242e10df110e682d1d2f90d9734a4fd3436f24c1.tar.gz |
This set of commits to the VM system does the following, and contain
contributions or ideas from Stephen McKay <syssgm@devetir.qld.gov.au>,
Alan Cox <alc@cs.rice.edu>, David Greenman <davidg@freebsd.org> 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.
Diffstat (limited to 'sys/vm/vm_pager.c')
-rw-r--r-- | sys/vm/vm_pager.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 63ebdd9..c7c9964 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_pager.c,v 1.21 1995/12/14 09:55:11 phk Exp $ + * $Id: vm_pager.c,v 1.22 1996/05/03 21:01:53 phk Exp $ */ /* @@ -249,7 +249,7 @@ vm_pager_object_lookup(pg_list, handle) { register vm_object_t object; - for (object = pg_list->tqh_first; object != NULL; object = object->pager_object_list.tqe_next) + for (object = TAILQ_FIRST(pg_list); object != NULL; object = TAILQ_NEXT(object,pager_object_list)) if (object->handle == handle) return (object); return (NULL); @@ -288,7 +288,7 @@ getpbuf() s = splbio(); /* get a bp from the swap buffer header pool */ - while ((bp = bswlist.tqh_first) == NULL) { + while ((bp = TAILQ_FIRST(&bswlist)) == NULL) { bswneeded = 1; tsleep(&bswneeded, PVM, "wswbuf", 0); } @@ -313,7 +313,7 @@ trypbuf() struct buf *bp; s = splbio(); - if ((bp = bswlist.tqh_first) == NULL) { + if ((bp = TAILQ_FIRST(&bswlist)) == NULL) { splx(s); return NULL; } |