NetBSD/usr.bin/systat
mrg fcc023545e - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes.  this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.

- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.

- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)

- patch sh, and csh to notice RLIMIT_AS.  (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)

- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.

- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information.  (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)


this addresses PR 7897.  it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.

tested on i386 and sparc64, build tested on several other platforms.

thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
2009-03-29 01:02:48 +00:00
..
bufcache.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cmds.c
cmdtab.c Include code to display per system call counts and times. 2007-02-18 17:00:08 +00:00
df.c
disks.c
extern.h Use sysctl to fetch network statistics unless a memory file is specified 2008-04-10 17:14:25 +00:00
fetch.c
globalcmds.c
icmp.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
iostat.c
ip6.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
ip.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
ipsec.c Make IPSEC and FAST_IPSEC stats per-cpu. Use <net/net_stats.h> and 2008-04-23 06:09:04 +00:00
keyboard.c don't call curses from a signal handler! 2007-12-31 00:22:13 +00:00
main.c Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 14:19:20 +00:00
Makefile Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mbufs.c use c99 initializers 2006-10-22 16:43:24 +00:00
netcmds.c
netstat.c use c99 initializers 2006-10-22 16:43:24 +00:00
pigs.c use c99 initializers 2006-10-22 16:43:24 +00:00
ps.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
ps.h
swap.c convert the rest of my licenses to 2-clause, extracting myself out 2008-05-30 02:29:37 +00:00
syscall.c Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
systat.1 Don't workaround ancient macro argument limit with .Xo/.Xc. 2009-03-11 13:58:29 +00:00
systat.h
tcp.c Don't even bother initializing the namelist if we're not going to use it. 2008-04-10 17:16:39 +00:00
vmstat.c In vmstat display, increase software interrupt count output from 5 to 2009-03-09 19:48:02 +00:00
vmstat.h