From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076343421886.tru64-unix-managers.marc@archive.invalid> From: Cliff Krieger Date: Tue, 31 Dec 1996 15:42:38 +0000 To: tru64-unix-managers Subject: [SUMMARY] hung program question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076343421886 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 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