NetBSD/lib/libkvm
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
..
kvm_alpha.c Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm_arm.c Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm_dump.3 Remove redundant .br. 2009-03-10 23:49:07 +00:00
kvm_file.c don't need <sys/tty.h> here. 2008-03-12 05:57:28 +00:00
kvm_geterr.3 Remove redundant .br. 2009-03-10 23:49:07 +00:00
kvm_getfiles.3 Remove redundant .br. 2009-03-10 23:49:07 +00:00
kvm_getloadavg.3 Remove redundant .br. 2009-03-10 23:49:07 +00:00
kvm_getloadavg.c
kvm_getlwps.3 Remove redundant .br. 2009-03-10 23:49:07 +00:00
kvm_getprocs.3 Remove redundant .br. 2009-03-10 23:49:07 +00:00
kvm_hppa.c Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm_i386.c use <i386/foo.h> in a few places. 2008-10-25 23:59:06 +00:00
kvm_m68k_cmn.c Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm_m68k.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
kvm_m68k.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
kvm_mips.c Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm_nlist.3
kvm_open.3 Remove redundant .br. 2009-03-10 23:49:07 +00:00
kvm_powerpc64.c
kvm_powerpc.c Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm_private.h Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm_proc.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
kvm_read.3
kvm_sh3.c
kvm_sparc64.c Use the new information about per-cpu mappings. Gdb now can examine 2008-01-18 16:26:09 +00:00
kvm_sparc.c use <sparc/pmap.h> and <sparc/kcore.h> so this builds properly with 2008-10-25 19:09:10 +00:00
kvm_sun2.c
kvm_sun3.c
kvm_sun3x.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
kvm_vax.c
kvm_x86_64.c Handle reading from raw disk devices. 2008-01-15 13:57:41 +00:00
kvm.3
kvm.c ... and make kvm_dump_inval() work on the raw device. 2008-01-15 14:16:30 +00:00
Makefile look for ${KVM_MACHINE_ARCH} before ${MACHINE_ARCH} and ${MACHINE_CPU} 2008-10-25 23:59:42 +00:00
shlib_version bump shared libraries. 2009-01-11 03:07:47 +00:00