* Re: Scheduling problem (OSF/1 v3.0b)
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
1 sibling, 0 replies; 3+ messages in thread
From: Mitchell Erblich @ 1995-05-05 4:00 UTC (permalink / raw)
>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'.
> My feeling: since all other processes are heavily I/O bound,
>they get into an I/O wait state
1) If all other processes are I/O bound, then they can not run at
"full speed" with or without other processes in the system.
2) I find it hard to believe that the working-set requirement of
physical pages by small process can be effected by the working-set
of a larger process.
3) Remember that only a small fraction of most processes need be in memory
for them to execute.
Mitchell Erblich
^ permalink raw reply [flat|nested] 3+ messages in thread
* Scheduling problem (OSF/1 v3.0b)
@ 1995-05-05 4:00 Gyula Szokoly
1995-05-05 4:00 ` Mitchell Erblich
1995-05-07 4:00 ` Stefan Monnier
0 siblings, 2 replies; 3+ messages in thread
From: Gyula Szokoly @ 1995-05-05 4:00 UTC (permalink / raw)
Hi,
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'.
My feeling: since all other processes are heavily I/O bound,
they get into an I/O wait state (especially when the big process
is getting to swap out), the system sees no CPU requests, so starts
to load the big process back, which puts even more load on the
I/O subsystem, etc. The process does not actually run, but is being swaped
in/out constantly and ties up the I/O subsystem...
What can I do? The only solution that I could come up is sending
a STOP (and later on a CONTINUE) signal to the memory pig process.
Sure I can invent some daemon the does this automatically, but I
don't want to reinvent the wheel.
Ideas?
Thanks,
Gyula
--
Gyula P. Szokoly (szgyula@skysrv.pha.jhu.edu) -------------------------------\
| When I am weaker than you, I ask you for freedom because that is according|
|to your principles; when I am stronger than you, I take away your freedom|
|because that is according to my principles. -- Frank Herbert|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scheduling problem (OSF/1 v3.0b)
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
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 1995-05-07 4:00 UTC (permalink / raw)
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 --
--------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-05-07 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox