Re: Proposed new POSIX sh policy, version two
Thomas Bushnell BSG wrote:
> Somebody needs to explain to Jari the concept of a shared text segment.
>
Bash:
anthony@Feynman:~$ grep 'Private_Dirty' /proc/$$/smaps | perl -e '$t = 0; while (<>) { /(\d+) kB$/ or die "parse err: $_"; $t += $1 } print "tot: $t\n"'
tot: 2800
Dash:
$ grep 'Private_Dirty' /proc/$$/smaps | perl -e '$t = 0; while (<>) { /(\d+) kB$/ or die "parse err: $_"; $t += $1 } print "tot: $t\n"'
tot: 84
Indeed, checking /proc/pid/status, we find bash's VmData is a mere 16
times larger than dash's.
Something tells me that 2.8MB * 20 could indeed be a problem on a 64MB
system.
Reply to:
- References:
- Proposed new POSIX sh policy (was: First draft of review of policy must usage)
- From: Russ Allbery <rra@debian.org>
- Re: Proposed new POSIX sh policy
- From: Manoj Srivastava <srivasta@debian.org>
- Re: Proposed new POSIX sh policy
- From: Manoj Srivastava <srivasta@debian.org>
- Proposed new POSIX sh policy, version two
- From: Russ Allbery <rra@debian.org>
- Re: Proposed new POSIX sh policy, version two
- From: Jari Aalto <jari.aalto@cante.net>
- Re: Proposed new POSIX sh policy, version two
- From: Thomas Bushnell BSG <tb@becket.net>
- Re: Proposed new POSIX sh policy, version two
- From: Jari Aalto <jari.aalto@cante.net>
- Re: Proposed new POSIX sh policy, version two
- From: Thomas Bushnell BSG <tb@becket.net>
- Re: Proposed new POSIX sh policy, version two
- From: David Weinehall <tao@debian.org>
- Re: Proposed new POSIX sh policy, version two
- From: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
- Re: Proposed new POSIX sh policy, version two
- From: David Weinehall <tao@debian.org>
- Re: Proposed new POSIX sh policy, version two
- From: Jari Aalto <jari.aalto@cante.net>
- Re: Proposed new POSIX sh policy, version two
- From: Thomas Bushnell BSG <tb@becket.net>