vm_meter.c (50477) | vm_meter.c (51337) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)vm_meter.c 8.4 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)vm_meter.c 8.4 (Berkeley) 1/4/94 |
34 * $FreeBSD: head/sys/vm/vm_meter.c 50477 1999-08-28 01:08:13Z peter $ | 34 * $FreeBSD: head/sys/vm/vm_meter.c 51337 1999-09-17 04:56:40Z dillon $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/proc.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/resource.h> 42#include <sys/vmmeter.h> --- 71 unchanged lines hidden (view full) --- 114SYSCTL_INT(_vm, VM_V_INACTIVE_TARGET, v_inactive_target, 115 CTLFLAG_RW, &cnt.v_inactive_target, 0, ""); 116SYSCTL_INT(_vm, VM_V_CACHE_MIN, v_cache_min, 117 CTLFLAG_RW, &cnt.v_cache_min, 0, ""); 118SYSCTL_INT(_vm, VM_V_CACHE_MAX, v_cache_max, 119 CTLFLAG_RW, &cnt.v_cache_max, 0, ""); 120SYSCTL_INT(_vm, VM_V_PAGEOUT_FREE_MIN, v_pageout_free_min, 121 CTLFLAG_RW, &cnt.v_pageout_free_min, 0, ""); | 35 */ 36 37#include <sys/param.h> 38#include <sys/proc.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/resource.h> 42#include <sys/vmmeter.h> --- 71 unchanged lines hidden (view full) --- 114SYSCTL_INT(_vm, VM_V_INACTIVE_TARGET, v_inactive_target, 115 CTLFLAG_RW, &cnt.v_inactive_target, 0, ""); 116SYSCTL_INT(_vm, VM_V_CACHE_MIN, v_cache_min, 117 CTLFLAG_RW, &cnt.v_cache_min, 0, ""); 118SYSCTL_INT(_vm, VM_V_CACHE_MAX, v_cache_max, 119 CTLFLAG_RW, &cnt.v_cache_max, 0, ""); 120SYSCTL_INT(_vm, VM_V_PAGEOUT_FREE_MIN, v_pageout_free_min, 121 CTLFLAG_RW, &cnt.v_pageout_free_min, 0, ""); |
122SYSCTL_INT(_vm, OID_AUTO, v_free_severe, 123 CTLFLAG_RW, &cnt.v_free_severe, 0, ""); |
|
122 123SYSCTL_STRUCT(_vm, VM_LOADAVG, loadavg, CTLFLAG_RD, 124 &averunnable, loadavg, "Machine loadaverage history"); 125 126static int 127vmtotal SYSCTL_HANDLER_ARGS 128{ 129 struct proc *p; --- 197 unchanged lines hidden --- | 124 125SYSCTL_STRUCT(_vm, VM_LOADAVG, loadavg, CTLFLAG_RD, 126 &averunnable, loadavg, "Machine loadaverage history"); 127 128static int 129vmtotal SYSCTL_HANDLER_ARGS 130{ 131 struct proc *p; --- 197 unchanged lines hidden --- |