From: "Stefan Monnier" <monnier@di.epfl.ch>
Subject: Re: Scheduling problem (OSF/1 v3.0b)
Date: 1995/05/07 [thread overview]
Message-ID: <3oibhm$jd8@info.epfl.ch> (raw)
In-Reply-To: 3oc1ac$fu@jhunix1.hcf.jhu.edu
In article <3oc1ac$fu@jhunix1.hcf.jhu.edu>,
Gyula Szokoly <szgyula@hoplite.pha.jhu.edu> 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 --
--------------------------------------------------------------------
prev parent reply other threads:[~1995-05-07 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-05 4:00 Scheduling problem (OSF/1 v3.0b) Gyula Szokoly
1995-05-05 4:00 ` Mitchell Erblich
1995-05-07 4:00 ` Stefan Monnier [this message]
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