[SUMMARY] hung program question

From: Cliff Krieger <ckrieger_at_latrade.com>
Date: Tue, 31 Dec 1996 10:42:38 -0500 (EST)

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_at_mhc.mtholyoke.edu
piumarta_at_prof.inria.fr
rlm_at_syseca-us.com
bennett_at_hpel.cees.edu
Winfried Huber <win_at_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
Received on Tue Dec 31 1996 - 17:19:05 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT