tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* /sbin vs /usr/sbin in path
@ 1996-01-30 20:38 Anne Hammond
  0 siblings, 0 replies; only message in thread
From: Anne Hammond @ 1996-01-30 20:38 UTC (permalink / raw)
  To: tru64-unix-managers

Hello OSF Managers,

This question concerns which path to provide users in .cshrc.  Since
most of the commands in /sbin are found either in /usr/sbin or /usr/bin in
a dynamically linked form, the question is whether it is more efficient to 
include the statically linked /sbin first in the path, or after /usr/bin 
and /usr/sbin.

My understanding was that dynamically linked executables should use less
system memory, since certain pages might be shared among users, indicating
that the preferable path for users would include /usr/sbin instead of
/sbin.  

However, the following output from ps showing the resident and virtual 
memory usage for two commands, df and sleep, shows that the dynamically 
linked executables use far more memory.  

USER       PID %CPU %MEM   VSZ  RSS TTY      S    STARTED         TIME COMMAND

shared (dynamic):
root      2460  0.0  0.1 1.23M 104K ttyp2    U    13:06:22     0:00.01 /usr/bin/df
root      2479  0.0  0.1 1.22M  96K ttyp2    S    13:11:42     0:00.01 /usr/bin/sleep 60

static:
root      2430  0.0  0.0  216K  48K ttyp2    U    13:05:32     0:00.01 /sbin/df
root      2476  0.0  0.0  152K  16K ttyp2    S    13:11:00     0:00.00 /sbin/sleep 60


In the above usage, df shared uses 1.4M total memory, and df static uses
264K.  sleep shared uses 2.1M total memory, and sleep static uses
168K.  These may be simplistic examples, but they indicate that the
dynamic versions are using far greater amounts of both resident and
virtual memory, or swap space.  This is under Digital UNIX V3.2C.

If you have a comment on the above interpretation, or on which path to 
provide on a multiuser system, it would be very much appreciated.

TIA,
Anne Hammond
hammond@Colorado.EDU

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-01-30 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-30 20:38 /sbin vs /usr/sbin in path Anne Hammond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox