diff options
author | dg <dg@FreeBSD.org> | 1995-01-24 10:14:09 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-01-24 10:14:09 +0000 |
commit | a9e08ab1e382c62f084401bff2ad5528a3b71e3e (patch) | |
tree | a53b9363f7e1cd0fe0867d24dd5952593915453e /sys/vm/vm_kern.c | |
parent | cba22c2c7d66e22200f82b02a38eb994e4eb64b3 (diff) | |
download | FreeBSD-src-a9e08ab1e382c62f084401bff2ad5528a3b71e3e.zip FreeBSD-src-a9e08ab1e382c62f084401bff2ad5528a3b71e3e.tar.gz |
Added ability to detect sequential faults and DTRT. (swap_pager.c)
Added hook for pmap_prefault() and use symbolic constant for new third
argument to vm_page_alloc() (vm_fault.c, various)
Changed the way that upages and page tables are held. (vm_glue.c)
Fixed architectural flaw in allocating pages at interrupt time that was
introduced with the merged cache changes. (vm_page.c, various)
Adjusted some algorithms to acheive better paging performance and to
accomodate the fix for the architectural flaw mentioned above. (vm_pageout.c)
Fixed pbuf handling problem, changed policy on handling read-behind page.
(vnode_pager.c)
Submitted by: John Dyson
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r-- | sys/vm/vm_kern.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index d59bbb8..a1ef102 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_kern.c,v 1.7 1994/08/18 22:36:02 wollman Exp $ + * $Id: vm_kern.c,v 1.8 1995/01/09 16:05:43 davidg Exp $ */ /* @@ -177,7 +177,7 @@ kmem_alloc(map, size) for (i = 0; i < size; i += PAGE_SIZE) { vm_page_t mem; - while ((mem = vm_page_alloc(kernel_object, offset + i, 0)) == NULL) { + while ((mem = vm_page_alloc(kernel_object, offset + i, VM_ALLOC_NORMAL)) == NULL) { vm_object_unlock(kernel_object); VM_WAIT; vm_object_lock(kernel_object); @@ -331,7 +331,7 @@ kmem_malloc(map, size, canwait) */ vm_object_lock(kmem_object); for (i = 0; i < size; i += PAGE_SIZE) { - m = vm_page_alloc(kmem_object, offset + i, 1); + m = vm_page_alloc(kmem_object, offset + i, VM_ALLOC_INTERRUPT); /* * Ran out of space, free everything up and return. Don't need |