NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/7897 CVS commit: [netbsd-5] src
The following reply was made to PR kern/7897; it has been noted by GNATS.
From: Soren Jacobsen <snj%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/7897 CVS commit: [netbsd-5] src
Date: Wed, 1 Apr 2009 00:25:24 +0000
Module Name: src
Committed By: snj
Date: Wed Apr 1 00:25:23 UTC 2009
Modified Files:
src/bin/csh [netbsd-5]: csh.1 func.c
src/bin/ps [netbsd-5]: print.c ps.c
src/bin/sh [netbsd-5]: miscbltin.c sh.1
src/external/bsd/top/dist/machine [netbsd-5]: m_netbsd.c
src/lib/libkvm [netbsd-5]: kvm_proc.c
src/sys/arch/mips/mips [netbsd-5]: cpu_exec.c
src/sys/compat/darwin [netbsd-5]: darwin_exec.c
src/sys/compat/ibcs2 [netbsd-5]: ibcs2_exec.c
src/sys/compat/irix [netbsd-5]: irix_resource.c
src/sys/compat/linux/arch/amd64 [netbsd-5]: linux_exec_machdep.c
src/sys/compat/linux/arch/i386 [netbsd-5]: linux_exec_machdep.c
src/sys/compat/linux/common [netbsd-5]: linux_limit.h
src/sys/compat/osf1 [netbsd-5]: osf1_resource.c
src/sys/compat/svr4 [netbsd-5]: svr4_resource.c
src/sys/compat/svr4_32 [netbsd-5]: svr4_32_resource.c
src/sys/kern [netbsd-5]: exec_subr.c init_sysctl.c kern_exec.c
kern_resource.c
src/sys/sys [netbsd-5]: param.h resource.h sysctl.h
src/sys/uvm [netbsd-5]: uvm_extern.h uvm_glue.c uvm_mmap.c
src/usr.bin/systat [netbsd-5]: ps.c
Log Message:
Pull up following revision(s) (requested by mrg in ticket #622):
bin/csh/csh.1: revision 1.46
bin/csh/func.c: revision 1.37
bin/ps/print.c: revision 1.111
bin/ps/ps.c: revision 1.74
bin/sh/miscbltin.c: revision 1.38
bin/sh/sh.1: revision 1.92 via patch
external/bsd/top/dist/machine/m_netbsd.c: revision 1.7
lib/libkvm/kvm_proc.c: revision 1.82
sys/arch/mips/mips/cpu_exec.c: revision 1.55
sys/compat/darwin/darwin_exec.c: revision 1.57
sys/compat/ibcs2/ibcs2_exec.c: revision 1.73
sys/compat/irix/irix_resource.c: revision 1.15
sys/compat/linux/arch/amd64/linux_exec_machdep.c: revision 1.16
sys/compat/linux/arch/i386/linux_exec_machdep.c: revision 1.12
sys/compat/linux/common/linux_limit.h: revision 1.5
sys/compat/osf1/osf1_resource.c: revision 1.14
sys/compat/svr4/svr4_resource.c: revision 1.18
sys/compat/svr4_32/svr4_32_resource.c: revision 1.17
sys/kern/exec_subr.c: revision 1.62
sys/kern/init_sysctl.c: revision 1.160
sys/kern/kern_exec.c: revision 1.288
sys/kern/kern_resource.c: revision 1.151
sys/sys/param.h: patch
sys/sys/resource.h: revision 1.31
sys/sys/sysctl.h: revision 1.184
sys/uvm/uvm_extern.h: revision 1.153
sys/uvm/uvm_glue.c: revision 1.136
sys/uvm/uvm_mmap.c: revision 1.128
usr.bin/systat/ps.c: revision 1.32
- - 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 :-)
To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.43.32.1 src/bin/csh/csh.1
cvs rdiff -u -r1.36 -r1.36.12.1 src/bin/csh/func.c
cvs rdiff -u -r1.106 -r1.106.2.1 src/bin/ps/print.c
cvs rdiff -u -r1.71 -r1.71.4.1 src/bin/ps/ps.c
cvs rdiff -u -r1.36 -r1.36.26.1 src/bin/sh/miscbltin.c
cvs rdiff -u -r1.87 -r1.87.18.1 src/bin/sh/sh.1
cvs rdiff -u -r1.5 -r1.5.8.1 src/external/bsd/top/dist/machine/m_netbsd.c
cvs rdiff -u -r1.78.6.1 -r1.78.6.2 src/lib/libkvm/kvm_proc.c
cvs rdiff -u -r1.50 -r1.50.54.1 src/sys/arch/mips/mips/cpu_exec.c
cvs rdiff -u -r1.55 -r1.55.4.1 src/sys/compat/darwin/darwin_exec.c
cvs rdiff -u -r1.71 -r1.71.4.1 src/sys/compat/ibcs2/ibcs2_exec.c
cvs rdiff -u -r1.14 -r1.14.10.1 src/sys/compat/irix/irix_resource.c
cvs rdiff -u -r1.13 -r1.13.2.1 \
src/sys/compat/linux/arch/amd64/linux_exec_machdep.c
cvs rdiff -u -r1.11 -r1.11.4.1 \
src/sys/compat/linux/arch/i386/linux_exec_machdep.c
cvs rdiff -u -r1.3 -r1.3.10.1 src/sys/compat/linux/common/linux_limit.h
cvs rdiff -u -r1.13 -r1.13.12.1 src/sys/compat/osf1/osf1_resource.c
cvs rdiff -u -r1.16 -r1.16.10.1 src/sys/compat/svr4/svr4_resource.c
cvs rdiff -u -r1.15 -r1.15.10.1 src/sys/compat/svr4_32/svr4_32_resource.c
cvs rdiff -u -r1.61 -r1.61.8.1 src/sys/kern/exec_subr.c
cvs rdiff -u -r1.149.4.3 -r1.149.4.4 src/sys/kern/init_sysctl.c
cvs rdiff -u -r1.280.4.1 -r1.280.4.2 src/sys/kern/kern_exec.c
cvs rdiff -u -r1.147 -r1.147.4.1 src/sys/kern/kern_resource.c
cvs rdiff -u -r1.330.4.5 -r1.330.4.6 src/sys/sys/param.h
cvs rdiff -u -r1.29 -r1.29.72.1 src/sys/sys/resource.h
cvs rdiff -u -r1.177 -r1.177.4.1 src/sys/sys/sysctl.h
cvs rdiff -u -r1.148.4.1 -r1.148.4.2 src/sys/uvm/uvm_extern.h
cvs rdiff -u -r1.133 -r1.133.6.1 src/sys/uvm/uvm_glue.c
cvs rdiff -u -r1.126 -r1.126.8.1 src/sys/uvm/uvm_mmap.c
cvs rdiff -u -r1.30 -r1.30.18.1 src/usr.bin/systat/ps.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index