Subject: Re: tcsh static/dynamic mem usage
To: Frank van der Linden <vdlinden@fwi.uva.nl>
From: Chris G. Demetriou <cgd@nobozo.CS.Berkeley.EDU>
List: current-users
Date: 11/13/1993 23:22:03
> After recompiling tcsh to use shared libs, I was a bit surprised by
> the memory usage as reported by 'top' for the statically and dynamically
> linked executables (shortly after starting them both up):
> 
> 10198 root       3    0  936K  644K sleep   0:00  3.30%  1.66% tcsh.dynamic
> 10196 root      18    0  552K  428K sleep   0:00  0.90%  0.59% tcsh.static
> 
> The dynamically linked version uses much more memory than the statically
> linked version (huh?). Or is 'top' just confused by the shared memory
> pages?

top is most likely saying "how much stuff is in the BSS of this
process, or is in its address space".  more data would be in the
dynamic tcsh, but less would be used (and more would be shared).

at least, that's the most sensible explantion i could come up with.
8-)

chris

------------------------------------------------------------------------------