* 2.6.0-test3-mm1 interactivity scheduling mistakes (smp)
@ 2003-08-13 18:00 Helge Hafting
2003-08-13 18:08 ` Felipe Alfaro Solana
0 siblings, 1 reply; 4+ messages in thread
From: Helge Hafting @ 2003-08-13 18:00 UTC (permalink / raw)
To: linux-kernel
I ran a "nice make -j3 bzImage" on 2.6.9-test3-mm1 in order
to compile 2.6.0-test3-mm2 on my dual celeron.
While waiting I played cuyo, a lightweight game similiar to tetris.
This mostly behaved as expected, with a responsive game.
But mozilla (on some other virtual desktop) occationally
refreshed its page, causing several seconds with jerky response
in the game.
This is wrong for two reasons:
1. There should be enough cpu with two processors,
one running the game and another the heavy mozilla stuff.
The make was niced after all. No guessing, I told it explicitly.
2. The game has very interactive behaviour, it uses 4-10% cpu
and cause X to use about 20%. Mozilla may have been idle for a
while, getting "interactive". But it shouldn't remain
interactive for so long, it sat at 100% till it went
idle again.
X runs with elevated priority, (std. debian testing setup)
but that shouldn't matter - X only used 20% and that was
for the game and two xterms. Mozilla wasn't visible
at all.
Helge Hafting
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-test3-mm1 interactivity scheduling mistakes (smp)
2003-08-13 18:00 2.6.0-test3-mm1 interactivity scheduling mistakes (smp) Helge Hafting
@ 2003-08-13 18:08 ` Felipe Alfaro Solana
2003-08-14 11:16 ` Helge Hafting
2003-08-15 17:14 ` Helge Hafting
0 siblings, 2 replies; 4+ messages in thread
From: Felipe Alfaro Solana @ 2003-08-13 18:08 UTC (permalink / raw)
To: Helge Hafting; +Cc: LKML
On Wed, 2003-08-13 at 20:00, Helge Hafting wrote:
> I ran a "nice make -j3 bzImage" on 2.6.9-test3-mm1 in order
> to compile 2.6.0-test3-mm2 on my dual celeron.
>
> While waiting I played cuyo, a lightweight game similiar to tetris.
>
> This mostly behaved as expected, with a responsive game.
> But mozilla (on some other virtual desktop) occationally
> refreshed its page, causing several seconds with jerky response
> in the game.
>
> This is wrong for two reasons:
> 1. There should be enough cpu with two processors,
> one running the game and another the heavy mozilla stuff.
> The make was niced after all. No guessing, I told it explicitly.
>
> 2. The game has very interactive behaviour, it uses 4-10% cpu
> and cause X to use about 20%. Mozilla may have been idle for a
> while, getting "interactive". But it shouldn't remain
> interactive for so long, it sat at 100% till it went
> idle again.
>
> X runs with elevated priority, (std. debian testing setup)
> but that shouldn't matter - X only used 20% and that was
> for the game and two xterms. Mozilla wasn't visible
> at all.
I can't tell you why, but for me, X behaves horribly if it's not reniced
exactly at +0. In the past, I reniced X at -20, but Con told me that
with O??int patches, X must/should work with no nicing at all.
Could you please try again with X not reniced?
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-test3-mm1 interactivity scheduling mistakes (smp)
2003-08-13 18:08 ` Felipe Alfaro Solana
@ 2003-08-14 11:16 ` Helge Hafting
2003-08-15 17:14 ` Helge Hafting
1 sibling, 0 replies; 4+ messages in thread
From: Helge Hafting @ 2003-08-14 11:16 UTC (permalink / raw)
To: Felipe Alfaro Solana; +Cc: LKML
On Wed, Aug 13, 2003 at 08:08:21PM +0200, Felipe Alfaro Solana wrote:
> On Wed, 2003-08-13 at 20:00, Helge Hafting wrote:
> > I ran a "nice make -j3 bzImage" on 2.6.9-test3-mm1 in order
> > to compile 2.6.0-test3-mm2 on my dual celeron.
> >
> > While waiting I played cuyo, a lightweight game similiar to tetris.
> >
> > This mostly behaved as expected, with a responsive game.
> > But mozilla (on some other virtual desktop) occationally
> > refreshed its page, causing several seconds with jerky response
> > in the game.
> >
> > This is wrong for two reasons:
> > 1. There should be enough cpu with two processors,
> > one running the game and another the heavy mozilla stuff.
> > The make was niced after all. No guessing, I told it explicitly.
> >
> > 2. The game has very interactive behaviour, it uses 4-10% cpu
> > and cause X to use about 20%. Mozilla may have been idle for a
> > while, getting "interactive". But it shouldn't remain
> > interactive for so long, it sat at 100% till it went
> > idle again.
> >
> > X runs with elevated priority, (std. debian testing setup)
> > but that shouldn't matter - X only used 20% and that was
> > for the game and two xterms. Mozilla wasn't visible
> > at all.
>
> I can't tell you why, but for me, X behaves horribly if it's not reniced
> exactly at +0. In the past, I reniced X at -20, but Con told me that
> with O??int patches, X must/should work with no nicing at all.
>
> Could you please try again with X not reniced?
> Thanks!
I can, but I cannot see why it should make a difference.
I was NOT running a video or anything else graphichs-intensive.
X never took more than 20% cpu in top, 80% was then available
for other uses. As well as the other cpu! So X had advantage,
but ran out of work. Anfd the _one_ process actually
using X was the one I wanted to not starve anyway.
I understand that over-prioritized X may starve other
processes to the point where they miss deadlines or don't
get enough time to process their events. But this didn't happen here.
The machine was only under light load,
a _niced_ make -j3 (3 processes)
an interactive game using 4% cpu, occationally spiking to 10%
X using 20% cpu to keep the game visible, but failing
and mozilla burning cpu with no display.
The scheduler failed even though there were _more_ cpu than
non-niced tasks available - one cpu could run mozilla
all the time and the other could run the game and X and
still have 70% "spare time" for niced tasks.
This is different from "a bunch of make -j10 (non niced)
plus and audio app plus frantically dragging
a window" which people try to manage. This ought to
be an easy case. Of course dragging windows with
high-priority X might starve an audio app - no surprise there.
In that case the high-priority task simply get too much
to do to justify the priority.
My guess: Two of the cpu-intensive compiles monopolized
one cpu, migrating all sporadic tasks and one compile
to the other one. When mozilla eventually woke up it
was "interactive" for a while and starved the game running on
the same cpu for a while. I don't think a single process
should be able to do that for several seconds though.
Helge Hafting
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-test3-mm1 interactivity scheduling mistakes (smp)
2003-08-13 18:08 ` Felipe Alfaro Solana
2003-08-14 11:16 ` Helge Hafting
@ 2003-08-15 17:14 ` Helge Hafting
1 sibling, 0 replies; 4+ messages in thread
From: Helge Hafting @ 2003-08-15 17:14 UTC (permalink / raw)
To: Felipe Alfaro Solana; +Cc: LKML
On Wed, Aug 13, 2003 at 08:08:21PM +0200, Felipe Alfaro Solana wrote:
> On Wed, 2003-08-13 at 20:00, Helge Hafting wrote:
> > I ran a "nice make -j3 bzImage" on 2.6.9-test3-mm1 in order
> > to compile 2.6.0-test3-mm2 on my dual celeron.
> >
> > While waiting I played cuyo, a lightweight game similiar to tetris.
> >
> > This mostly behaved as expected, with a responsive game.
> > But mozilla (on some other virtual desktop) occationally
> > refreshed its page, causing several seconds with jerky response
> > in the game.
> >
> > This is wrong for two reasons:
> > 1. There should be enough cpu with two processors,
> > one running the game and another the heavy mozilla stuff.
> > The make was niced after all. No guessing, I told it explicitly.
> >
> > 2. The game has very interactive behaviour, it uses 4-10% cpu
> > and cause X to use about 20%. Mozilla may have been idle for a
> > while, getting "interactive". But it shouldn't remain
> > interactive for so long, it sat at 100% till it went
> > idle again.
> >
> > X runs with elevated priority, (std. debian testing setup)
> > but that shouldn't matter - X only used 20% and that was
> > for the game and two xterms. Mozilla wasn't visible
> > at all.
>
> I can't tell you why, but for me, X behaves horribly if it's not reniced
> exactly at +0. In the past, I reniced X at -20, but Con told me that
> with O??int patches, X must/should work with no nicing at all.
>
> Could you please try again with X not reniced?
I tried again with X not reniced - and it failed the same way.
Helge Hafting
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-15 17:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-13 18:00 2.6.0-test3-mm1 interactivity scheduling mistakes (smp) Helge Hafting
2003-08-13 18:08 ` Felipe Alfaro Solana
2003-08-14 11:16 ` Helge Hafting
2003-08-15 17:14 ` Helge Hafting
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®