From: mellon@nigiri.pa.dec.com (Ted Lemon)
Subject: Re: Rampant Swap Errors on 3100...
Date: 30 Aug 91 23:08:10 GMT [thread overview]
Message-ID: <MELLON.91Aug30180810@nigiri.pa.dec.com> (raw)
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_
next prev parent reply other threads:[~1991-08-30 23:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-08-30 14:58 Rampant Swap Errors on 3100 Robert J. Granvin
1991-08-30 21:38 ` fisher
1991-08-30 23:08 ` Ted Lemon [this message]
1991-09-03 19:15 ` Sarah Young
1991-09-11 16:11 ` Alan's Home for Wayward Notes File.
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