/sbin vs /usr/sbin in path

From: Anne Hammond <hammond_at_jila02.Colorado.EDU>
Date: Tue, 30 Jan 1996 13:38:32 -0700

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_at_Colorado.EDU
Received on Tue Jan 30 1996 - 21:59:21 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT