tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [SUMMARY] hung program question
@ 1996-12-31 15:42 Cliff Krieger
  0 siblings, 0 replies; only message in thread
From: Cliff Krieger @ 1996-12-31 15:42 UTC (permalink / raw)
  To: tru64-unix-managers

Hi managers,

Basicly my question was:  why does an application launched from an NFS
file system hang when the NFS server goes down, and what can I do to
prevent this?

The following people replied:

mcrowley@mhc.mtholyoke.edu
piumarta@prof.inria.fr
rlm@syseca-us.com
bennett@hpel.cees.edu 
Winfried Huber <win@tukan.ffb.eunet.de>

Basicly the answer is this.  Why should the operating system swap the
program code to virtual memory when it knows that it is available on
disk?  As Ian pointed out, that is why it is a bad idea to recompile
binaries on NFS file systems.  Winfried Huber said it best:

> Usually programs are loaded demand paged.
> So upon startup only the current needed pages of the code segment are
> loaded into memory, not the full text segment. Missing pages are
> loaded on page faults, that means, when they are needed. This file
> format is called ZMAGIC.

> This makes the startup of the program faster. 

> You can avoid this by telling the linker not to do so. Use "-n" to get
> a NMAGIC file. This makes the code segment read-only and shared among
> all users running this file (as ZMAGIC does), but it does no demand
> loading.

> See man ld(1) for further reference.

Thanks to all,

-cliff

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

only message in thread, other threads:[~1996-12-31 15:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-31 15:42 [SUMMARY] hung program question Cliff Krieger

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