home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / misc / 5280 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.6 KB

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