From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,beff174e0d328d5f X-Google-Attributes: gid1164f8,public From: saunders@castor.che.wisc.edu (Brian Saunders) Subject: Re: Low swap space on DEC 3000 Alpha Date: 1995/04/01 Message-ID: #1/1 X-Deja-AN: 100637635 references: <3l97pi$4ms@news.belwue.de> organization: University of Wisconsin-Madison newsgroups: comp.sys.dec In article , 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