mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Helge Hafting <helge.hafting@aitel.hist.no>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@osdl.org>,
	Helge Hafting <helgehaf@aitel.hist.no>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.15-rc5: multiuser scheduling trouble
Date: Mon, 12 Dec 2005 12:18:30 +0100	[thread overview]
Message-ID: <439D5C86.1040304@aitel.hist.no> (raw)
In-Reply-To: <20051212065150.GA8187@elte.hu>

Ingo Molnar wrote:

>Helge,
>
>* Linus Torvalds <torvalds@osdl.org> wrote:
>
>  
>
>>Also, the most common case is that somebody has reniced the X server, 
>>which is just _wrong_.  It used to be done by some distributions to 
>>try to help the scheduler make the right choices, but we've fixed the 
>>scheduler and it doesn't need it or want it.
>>    
>>
>
>  
>
>>>Knowing the root password I renices his Xorg and firefox by 10, and 
>>>then everything is fine.  His games are still ok, and my xterms are 
>>>snappy again.
>>>      
>>>
>
>does this mean X defaults to nice level 0, and then if you renice
>Firefox and X by +10, everything is fine? 
>
Correct. X is at 0, adjusting to 10 helps.  Adjusting only
firefox is not enough.

>Or is Linus' suspicion, and X
>defaults to something like nice -5? (e.g. on Debian type of systems)
>  
>
It is a debian testing system, with some experimental/unstable stuff.
The xservers are not reniced though, that has been configurable
for a while and I turned it off at the time when the scheduler
was changed and renicing no longer was recommended.
top shows NI=o,  ps aux shows no "<" for the xservers.

>but ... i havent seen problems with Firefox and flash myself. My 3 years
>old son's favorite kid's site is fully based on flash, and the 833 MHz
>laptop is still usable remotely while he browses around on it. It's
>Fedora Core 4, and X is not reniced.
>  
>
I guess this depends a bit on how the machine is used remotely.
Light use of an xterm isn't always that bad - although "top" took
a second to appear.  The bringing up icewm and the xterms
themselves took a lot longer though.  I don't use it remotely,
I log in on a second xserver running on a extra graphichs card.
Even the relatively lightweight icewm is much heavier than simply
ssh-ing into a box - there is graphichs work to do.  I wouldn't be surprised
if the usual three-second login took twice as long with a game going on, but
half a minute is a bit excessive.  I have only seen it that bad once,
but the slowness is normally so noticeable that I bother with looking
up the process numbers and renice them.

>but if the X server is not reniced then it would be nice if i could
>reproduce the starvation ... which site is the one triggering it? (and
>  
>
www.teagames.com is popular at the time.  Lots of 2D scrolling flash
games, and all seems to be made with the assumption that the more cpu you
have, the higher framerate you should get.  Never mind that the screen
runs at 60Hz only. . .

>could you check www.egyszervolt.hu, and click around on it, does it
>trigger similar starvation problems too?)
>  
>
No, I clicked around for a while, but was unable to drive the load up to 1.
I never see problems with load<1 - as expected.  Try a game that uses screen
painting as a busy loop - it pegs the load at 1 no matter how powerful the
machine is.  And then the scheduling might get interesting.  Running
two such games at once tends to be slow for both, and also bursty in that
one might get a second of nice speed, some slowness, and sometimes
jerkiness with short stops in the action.  Some of these games would be
ok running at half speed, but not with such uneven speed.

Sticking another cpu in the free slot would probably fix all this. :-/

Helge Hafting

  reply	other threads:[~2005-12-12 11:14 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-04  6:03 Linux 2.6.15-rc5: off-line for a week Linus Torvalds
2005-12-04 15:34 ` Gene Heskett
2005-12-04 18:50   ` Michael Krufky
2005-12-04 20:47     ` Gene Heskett
2005-12-04 21:14       ` Michael Krufky
2005-12-05  0:16         ` Gene Heskett
2005-12-04 16:56 ` Jesper Juhl
2005-12-04 17:26   ` Michal Piotrowski
2005-12-04 18:35     ` Jesper Juhl
2005-12-04 22:25       ` Andrea Arcangeli
2005-12-04 23:43 ` Linux 2.6.15-rc5: sk98lin broken Johannes Stezenbach
2005-12-05 19:00   ` [PATCH linux-2.6.15-rc5] sk98lin: rx checksum offset not set Stephen Hemminger
2005-12-05 19:22     ` Johannes Stezenbach
2005-12-05 19:13   ` Linux 2.6.15-rc5: sk98lin broken Bill Davidsen
2005-12-07 21:59 ` Linux 2.6.15-rc5: off-line for a week Rich Walker
2005-12-10 16:27 ` Linux 2.6.15-rc5: multiuser scheduling trouble Helge Hafting
2005-12-12  0:09   ` Linus Torvalds
2005-12-12  6:51     ` Ingo Molnar
2005-12-12 11:18       ` Helge Hafting [this message]
2005-12-12 11:30       ` Nix
2005-12-12 12:31         ` Helge Hafting
2005-12-12 10:51     ` Helge Hafting
2005-12-10 21:23 ` Linux 2.6.15-rc5 bad page with fglrx on Radeon X300 Brice Goglin
2005-12-10 21:43   ` Lee Revell
2005-12-11 10:49   ` Hugh Dickins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=439D5C86.1040304@aitel.hist.no \
    --to=helge.hafting@aitel.hist.no \
    --cc=helgehaf@aitel.hist.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®