From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,22a42a4794c38150 X-Google-Attributes: gidfee84,public From: "Stefan Monnier" Subject: Re: Scheduling problem (OSF/1 v3.0b) Date: 1995/05/07 Message-ID: <3oibhm$jd8@info.epfl.ch>#1/1 X-Deja-AN: 102194885 references: <3oc1ac$fu@jhunix1.hcf.jhu.edu> organization: Ecole Polytechnique Federale de Lausanne newsgroups: comp.unix.osf.osf1 originator: monnier@lia.di.epfl.ch (Stefan Monnier) In article <3oc1ac$fu@jhunix1.hcf.jhu.edu>, Gyula Szokoly wrote: ] I have a 3000/600, 196M memory, enough swap space. The problem: I ] have one process which needs about 120M of (virtual) memory. I ] did nice it to 20, which according to the man pagve should mean ] that it runs ONLY when nothing else wants to run. Apparently this ] is not happening. Whenever this process runs, no other process ] can run at 'full speed'. Your feeling is correct. If there is not enough memory for all your processes' working sets to be in RAM, you'll be thrashing, no matter what: if the 120M are not available, the process will start paging heavily, which implies it will be considered I/O bound by the system. An I/O bound process gets a higher CPU priority (remember, the nice level is not the priority level) and hence your reniced process will still have a high priority, which means it will run as soon as the page has arrived, at which point it will page again fairly quickly, and so on. At some point, it will have eaten so much RAM that there will not be enough for the remaining processes, which will start thrashing as well. Sadly, this is a stable state: every process will be thrashing because every process that's not thrashing has a lower CPU priority and will hence have to let the thrashing processes run and eat its memory. The scheduling algorithm is designed to work well when there is enough memory. When you start thrashing, the algorithm has to be drastically changed, since the main resource is not CPU any more, but I/O. As far as my experience goes no OS I've used knows how to deal with such a sitution. Stefan -- -------------------------------------------------------------------- -- Suicidez-vous jeune, vous profiterez plus longtemps de la mort -- --------------------------------------------------------------------