NetBSD/sys/compat/irix
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
..
Makefile
files.irix Make the emulations, exec formats, coredump, NFS, and the NFS server 2008-11-19 18:35:57 +00:00
irix_dirent.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_errno.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_errno.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_exec.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
irix_exec.h Make the emulations, exec formats, coredump, NFS, and the NFS server 2008-11-19 18:35:57 +00:00
irix_exec_elf32.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_fcntl.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_fcntl.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_ioctl.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_ioctl.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_kmem.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
irix_kmem.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_misc.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_mman.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_mman.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_mod.c make this compile 2008-11-21 20:53:28 +00:00
irix_mount.c bzero -> memset 2009-03-18 16:00:08 +00:00
irix_prctl.c bzero -> memset 2009-03-18 16:00:08 +00:00
irix_prctl.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_resource.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
irix_resource.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_signal.c bzero -> memset 2009-03-18 16:00:08 +00:00
irix_signal.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_stat.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_swap.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_swap.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_syscall.h Regen to prove I didn't screw up the conversion: purely RCSID changes. 2009-01-13 22:33:08 +00:00
irix_syscallargs.h Regen to prove I didn't screw up the conversion: purely RCSID changes. 2009-01-13 22:33:08 +00:00
irix_syscalls.c Regen to prove I didn't screw up the conversion: purely RCSID changes. 2009-01-13 22:33:08 +00:00
irix_sysctl.c Make the emulations, exec formats, coredump, NFS, and the NFS server 2008-11-19 18:35:57 +00:00
irix_sysctl.h Make the emulations, exec formats, coredump, NFS, and the NFS server 2008-11-19 18:35:57 +00:00
irix_sysent.c Regen to prove I didn't screw up the conversion: purely RCSID changes. 2009-01-13 22:33:08 +00:00
irix_sysmp.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_sysmp.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_syssgi.c Fix time_t change fallout. 2009-01-11 20:00:06 +00:00
irix_syssgi.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_systeminfo.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_types.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
irix_usema.c Try to adapt the usema driver to new select/poll world order. 2008-05-10 12:57:18 +00:00
irix_usema.h Try to adapt the usema driver to new select/poll world order. 2008-05-10 12:57:18 +00:00
syscalls.conf
syscalls.master Convert the syscalls.master to a format from which it is easier 2009-01-13 22:27:43 +00:00