From: saunders@castor.che.wisc.edu (Brian Saunders)
Subject: Re: Low swap space on DEC 3000 Alpha
Date: 1995/04/01 [thread overview]
Message-ID: <saunders-0104951630320001@caspar.che.wisc.edu> (raw)
In-Reply-To: D6DBMu.3GK@mv.mv.com
In article <D6DBMu.3GK@mv.mv.com>, cherkus@fastball.unimaster.com wrote:
> Define 'offending process'. One scenario is that someone runs a
> computation for days. This computation is not memory intensive. When
> it completes, it wants to get memory to display its results. In your
> scenario, this offending process will get killed and its results will
> be lost, even though it has been a good citizen for days.
In most cases this is not necessary. If people do a decent job of
checkpointing their work, and they should for a longer-running job, you
should only lose a few hours for a critical job. I have litte sympathy
for people who lose 2-day jobs that could be restarted with less than a
megabyte of information. I do see your point, but the fact is that 99.9%
of the time, a job which blows away the swap space is doing so because of
programmer error. You simply will not see too many situations where the
"wafer-thin mint" syndrome occurs.
> Another scenario involves the Xserver. It's been running fine then a
> user decides to read a document that needs a different font. The OS
> decides the Xserver is an 'offending process' and kills it, which kills
> all opened windows on the system, and all kinds of work is lost.
OK, but what if we designate a few jobs as "unkillable"?
> Other systems have solved this in a number of ways, but it rapidly
> becomes very similar to the entire system running in eager mode
> because every memory hog does whatever it takes to become protected.
> If this is enough of a problem, it would seem that you should easily
> be able to afford enough disk space to protect the contents of
> main memory. A 1GB disk is a lot cheaper than 1GB of main memory.
You could also adjust the variables in the kernel so that one can not run
a job that is larger than a particular percentage of your swap space.
You answered my question, more or less, but you haven't explained to me
how OSF/1 chooses which jobs to kill when there is a swap error. It would
seem a random scheme (which is what is hinted) would be as dangerous, if
not more, than killing the offending process. So, there must be some
procedure, so why isn't it discussed in at least one of the manuals, like
Performance Tuning?
--
Brian E. Saunders saunders@castor.che.wisc.edu
next prev parent reply other threads:[~1995-04-01 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-28 14:51 Low swap space on DEC 3000 Alpha Peter Schmatz
1995-03-29 5:00 ` Brian Saunders
1995-03-30 5:00 ` Dan Pop
1995-04-01 5:00 ` cherkus
1995-04-01 5:00 ` Brian Saunders [this message]
1995-04-01 5:00 ` Preston F. Crow
1995-04-02 5:00 ` Daniel S. Riley
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