vm_pageout.c (d50c19943070845750cecfaf32cde1a31c047491) | vm_pageout.c (9c8b8baa38c9a8135d7602f127cb0c735010837d) |
---|---|
1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 51 unchanged lines hidden (view full) --- 60 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 61 * School of Computer Science 62 * Carnegie Mellon University 63 * Pittsburgh PA 15213-3890 64 * 65 * any improvements or extensions that they make and grant Carnegie the 66 * rights to redistribute these changes. 67 * | 1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 51 unchanged lines hidden (view full) --- 60 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 61 * School of Computer Science 62 * Carnegie Mellon University 63 * Pittsburgh PA 15213-3890 64 * 65 * any improvements or extensions that they make and grant Carnegie the 66 * rights to redistribute these changes. 67 * |
68 * $Id: vm_pageout.c,v 1.141 1999/04/23 20:29:57 dt Exp $ | 68 * $Id: vm_pageout.c,v 1.142 1999/06/26 14:56:58 peter Exp $ |
69 */ 70 71/* 72 * The proverbial page-out daemon. 73 */ 74 75#include "opt_vm.h" 76#include <sys/param.h> 77#include <sys/systm.h> 78#include <sys/kernel.h> 79#include <sys/proc.h> | 69 */ 70 71/* 72 * The proverbial page-out daemon. 73 */ 74 75#include "opt_vm.h" 76#include <sys/param.h> 77#include <sys/systm.h> 78#include <sys/kernel.h> 79#include <sys/proc.h> |
80#include <sys/kthread.h> |
|
80#include <sys/resourcevar.h> 81#include <sys/signalvar.h> 82#include <sys/vnode.h> 83#include <sys/vmmeter.h> 84#include <sys/sysctl.h> 85 86#include <vm/vm.h> 87#include <vm/vm_param.h> --- 18 unchanged lines hidden (view full) --- 106static int vm_pageout_free_page_calc __P((vm_size_t count)); 107struct proc *pageproc; 108 109static struct kproc_desc page_kp = { 110 "pagedaemon", 111 vm_pageout, 112 &pageproc 113}; | 81#include <sys/resourcevar.h> 82#include <sys/signalvar.h> 83#include <sys/vnode.h> 84#include <sys/vmmeter.h> 85#include <sys/sysctl.h> 86 87#include <vm/vm.h> 88#include <vm/vm_param.h> --- 18 unchanged lines hidden (view full) --- 107static int vm_pageout_free_page_calc __P((vm_size_t count)); 108struct proc *pageproc; 109 110static struct kproc_desc page_kp = { 111 "pagedaemon", 112 vm_pageout, 113 &pageproc 114}; |
114SYSINIT_KT(pagedaemon, SI_SUB_KTHREAD_PAGE, SI_ORDER_FIRST, kproc_start, &page_kp) | 115SYSINIT(pagedaemon, SI_SUB_KTHREAD_PAGE, SI_ORDER_FIRST, kproc_start, &page_kp) |
115 116#if !defined(NO_SWAPPING) 117/* the kernel process "vm_daemon"*/ 118static void vm_daemon __P((void)); 119static struct proc *vmproc; 120 121static struct kproc_desc vm_kp = { 122 "vmdaemon", 123 vm_daemon, 124 &vmproc 125}; | 116 117#if !defined(NO_SWAPPING) 118/* the kernel process "vm_daemon"*/ 119static void vm_daemon __P((void)); 120static struct proc *vmproc; 121 122static struct kproc_desc vm_kp = { 123 "vmdaemon", 124 vm_daemon, 125 &vmproc 126}; |
126SYSINIT_KT(vmdaemon, SI_SUB_KTHREAD_VM, SI_ORDER_FIRST, kproc_start, &vm_kp) | 127SYSINIT(vmdaemon, SI_SUB_KTHREAD_VM, SI_ORDER_FIRST, kproc_start, &vm_kp) |
127#endif 128 129 130int vm_pages_needed=0; /* Event on which pageout daemon sleeps */ 131int vm_pageout_deficit=0; /* Estimated number of pages deficit */ 132int vm_pageout_pages_needed=0; /* flag saying that the pageout daemon needs pages */ 133 134extern int npendingio; --- 1326 unchanged lines hidden --- | 128#endif 129 130 131int vm_pages_needed=0; /* Event on which pageout daemon sleeps */ 132int vm_pageout_deficit=0; /* Estimated number of pages deficit */ 133int vm_pageout_pages_needed=0; /* flag saying that the pageout daemon needs pages */ 134 135extern int npendingio; --- 1326 unchanged lines hidden --- |