From: Cliff Krieger <ckrieger () latrade ! com>
To: tru64-unix-managers
Subject: [SUMMARY] hung program question
Date: Tue, 31 Dec 1996 15:42:38 +0000 [thread overview]
Message-ID: <96076343421886.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1996-12-31 15:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox