[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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: