home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!stolcke
- From: stolcke@ICSI.Berkeley.EDU (Andreas Stolcke)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: Shared executables from NFS files
- Date: 16 Nov 1992 06:46:29 GMT
- Organization: International Computer Science Institute, Berkeley, CA, U.S.A.
- Lines: 22
- Distribution: usa
- Message-ID: <1e7g45INN59m@agate.berkeley.edu>
- References: <HUGGINS.92Oct26164411@dino.mtc.ti.com> <1cn9mrINN1oh@early-bird.think.com>
- Reply-To: stolcke@icsi.Berkeley.EDU (Andreas Stolcke)
- NNTP-Posting-Host: icsib30.icsi.berkeley.edu
-
- In article <1cn9mrINN1oh@early-bird.think.com> barmar@think.com (Barry Margolin) writes:
- :In article <HUGGINS.92Oct26164411@dino.mtc.ti.com> huggins@ticipa.mtc.ti.com writes:
- :>We are trying to determine if SunOS 4.1.{1,2}, will share the text of
- :>binaries when the binaries are located on NFS mounted file systems.
- :
- :I don't know an easy way to determine this empirically. You could write a
- :program that grovels through the process's memory mapping tables in the
- :kernel.
-
- Such programs already exist. Either Sun's /usr/etc/fuser or the widely
- available ofiles will show the PID of processes exec'ed from
- a binary, but only if the process is paging its text pages from the binary
- (as opposed to from swap).
-
- BTW, I sometimes find it useful to create binaries that are not shared,
- using the -n linker option. Very handy for critical daemons that shouldn't
- hang when the NFS server becomes unavailable (assuming you have local swap).
-
- --
- Andreas Stolcke stolcke@icsi.berkeley.edu
- International Computer Science Institute stolcke@ucbicsi.bitnet
- 1947 Center St., Suite 600, Berkeley, CA 94704 (510) 642-4274 ext. 126
-