From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bc178e9fb99d58d3 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-08-30 19:06:13 PST Path: gmdzi!unido!fauern!iraun1.ira.uka.de!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!uunet!decwrl!pa.dec.com!granite.pa.dec.com!mellon From: mellon@nigiri.pa.dec.com (Ted Lemon) Newsgroups: comp.sys.dec Subject: Re: Rampant Swap Errors on 3100... Message-ID: Date: 30 Aug 91 23:08:10 GMT References: <1991Aug30.145854.10911@cs.umn.edu> <1991Aug30.133816.25874@edwards-vax.af.mil> Sender: news@PA.dec.com (News) Organization: Digital Equipment Corporation In-Reply-To: fisher@edwards-vax.af.mil's message of 30 Aug 91 21:38:16 GMT Actually, I'm not convinced that this is a hardware problem at all. If you are running a program and part of the text segment gets swapped out, the operating system doesn't write it to the swap device - it just remembers where it was in the executable image, and when the time comes to swap it back in, it just re-reads that image. If the executable comes off of a soft-mounted nfs filesystem, and a timeout or other error occurs, then the swapping-in operation will fail, and the process will be killed on a swap error, even though the actual swap device was fine. Another nfs-related swap issue is that with NFS, there's no way to mark an image as read-only while it's being executed, because NFS is a stateless protocol. This means that if somebody runs, say, /usr/local/bin/emacs, and then the system administrator installs a new version of emacs on the central server, the new image will be all that's left when the client tries to swap the old one back in. When this situation occurs, the client machine will notice that the executable has changed, because the file attributes will have changed. However, it won't be able to continue the partially swapped-out process, because there's no way to get back the missing piece of the text segment. It will therefore kill the process, again with a swap error. BTW, when I say swap above, I should add that this also applies to paging. Swapping is generally used to refer to the whole image, whereas paging refers to individual pages of the image. So, in conclusion, I would recommend that you try the following: 1) Try to find out if your network is flakey. I can't really give you a primer on that subject - it's a bit involved. 2) Try mounting server disks hard, to see if the problem goes away. It may be that mounting the servers hard is a suboptimal solution, but at least you can get some information on the nature of the problem this way. 3) Try and find out what applications are regularly being killed on swap errors. If you find that only a few applications are experiencing the majority of the problems, and that these applications are all being built locally and upgraded frequently, then modify your update procedure so that it doesn't actually overwrite an executable. For emacs, I did this by writing a simple shell script called emacs which would search for all files matching, ``emacs-18.59.localversion'', and then choose the numerically highest such file. I would then wait for about fifteen days after installing a new executable before deleting the old one. Good luck! _MelloN_