From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076327921561.tru64-unix-managers.marc@archive.invalid> From: Anne Hammond Date: Tue, 30 Jan 1996 20:38:32 +0000 To: tru64-unix-managers Subject: /sbin vs /usr/sbin in path X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076327921561 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