From a3dd350377c5d2f426c62ff95a9b804f39c415aa Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Thu, 23 Apr 2020 07:57:28 +0000 Subject: Document uvmexp.nswget without relying on implementation details. Prompted by a question from schwarze@ ok deraadt@, schwarze@, visa@ --- share/man/man9/uvm_init.9 | 6 +++--- sys/uvm/uvmexp.h | 4 ++-- usr.bin/systat/systat.1 | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/share/man/man9/uvm_init.9 b/share/man/man9/uvm_init.9 index a40b6bc7e24..7aa15559a8b 100644 --- a/share/man/man9/uvm_init.9 +++ b/share/man/man9/uvm_init.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: uvm_init.9,v 1.2 2019/12/06 10:42:33 mpi Exp $ +.\" $OpenBSD: uvm_init.9,v 1.3 2020/04/23 07:57:27 mpi Exp $ .\" $NetBSD: uvm.9,v 1.14 2000/06/29 06:08:44 mrg Exp $ .\" .\" Copyright (c) 1998 Matthew R. Green @@ -28,7 +28,7 @@ .\" XXX this manual sets nS to 1 or 0 in the description, to obtain .\" synopsis-like function prototypes. any better way? .\" -.Dd $Mdocdate: December 6 2019 $ +.Dd $Mdocdate: April 23 2020 $ .Dt UVM_INIT 9 .Os .Sh NAME @@ -272,7 +272,7 @@ int nswapdev; /* number of configured swap devices in system */ int swpages; /* number of PAGE_SIZE'ed swap pages */ int swpginuse; /* number of swap pages in use */ int swpgonly; /* number of swap pages in use, not also in RAM */ -int nswget; /* number of times fault calls uvm_swap_get() */ +int nswget; /* number of swap pages moved from disk to RAM */ int nanon; /* XXX number total of anon's in system */ int unused05; /* formerly nanonneeded */ int unused06; /* formerly nfreeanon */ diff --git a/sys/uvm/uvmexp.h b/sys/uvm/uvmexp.h index b2a98379a64..e3603b84d50 100644 --- a/sys/uvm/uvmexp.h +++ b/sys/uvm/uvmexp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvmexp.h,v 1.4 2018/11/06 07:49:38 otto Exp $ */ +/* $OpenBSD: uvmexp.h,v 1.5 2020/04/23 07:57:27 mpi Exp $ */ #ifndef _UVM_UVMEXP_ #define _UVM_UVMEXP_ @@ -78,7 +78,7 @@ struct uvmexp { int swpages; /* number of PAGE_SIZE'ed swap pages */ int swpginuse; /* number of swap pages in use */ int swpgonly; /* number of swap pages in use, not also in RAM */ - int nswget; /* number of times fault calls uvm_swap_get() */ + int nswget; /* number of swap pages moved from disk to RAM */ int nanon; /* XXX number total of anon's in system */ int unused05; /* formerly nanonneeded */ int unused06; /* formerly nfreeanon */ diff --git a/usr.bin/systat/systat.1 b/usr.bin/systat/systat.1 index b670bc95958..5dab9544715 100644 --- a/usr.bin/systat/systat.1 +++ b/usr.bin/systat/systat.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: systat.1,v 1.116 2020/04/22 15:00:46 schwarze Exp $ +.\" $OpenBSD: systat.1,v 1.117 2020/04/23 07:57:27 mpi Exp $ .\" $NetBSD: systat.1,v 1.6 1996/05/10 23:16:39 thorpej Exp $ .\" .\" Copyright (c) 1985, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)systat.1 8.2 (Berkeley) 12/30/93 .\" -.Dd $Mdocdate: April 22 2020 $ +.Dd $Mdocdate: April 23 2020 $ .Dt SYSTAT 1 .Os .Sh NAME @@ -715,8 +715,7 @@ swap pages in use .It swpgonly in use swap pages not in RAM .It nswget -fault called -.Fn uvm_swap_get +swap pages moved from disk to RAM .It nanon total anon's .Pp -- cgit v1.2.3