public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Helge Hafting <helgehaf@aitel.hist.no>
To: Antti Lankila <alankila@elma.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: elevator=as, or actually gpm doesn't get time from scheduler???
Date: Mon, 19 Apr 2004 15:33:05 +0200	[thread overview]
Message-ID: <4083D511.6040702@aitel.hist.no> (raw)
In-Reply-To: <Pine.A41.4.58.0404191609060.42820@tokka.elma.fi>

Antti Lankila wrote:
> In response to Nick Piggin's:
> 
> 
>>The only other problems I can think of that you might be
>>having are chipset problems, or CPU scheduler problems.
>>Which reminds me, do you have your X server at nice 0?
> 
> 
> X has been reniced to zero. But hey! I was doing "cat /dev/psaux" when mouse
> stopped moving in X, and I _did_ see data coming from /dev/psaux! So this is
> a major update to my understanding of the problem.
> 
> But make no mistake, I have been doing this cat /dev/psaux test earlier and
> at that time I did _not_ see chars coming out of psaux when the mouse
> stopped. That is why I thought I had established that the problem is in the
> kernel. I must retest this on the other machines involved when I get to
> their consoles next week. I can not explain why this time psaux appears to
> work regardless of the userland mouse stall, so for now I must assume some
> other factor confused the cat /dev/psaux test at that time.
> 
> My X reads gpmdata, so perhaps that's the problem? I now undercut gpm in
> order to examine the situation, and my system behaves _perfectly_ as far as
> I can see. The mouse issues are all gone. (gpm is still running in the
> background, X just reads psaux directly. As I have understood, this is
> possible in 2.6 while in 2.4 it caused a problem for multiple readers.)
> 

Gpm might be a problem in high-load situations, for two reasons:

1. gpm is another process.  The mouse moves, it takes some time before gpm
   gets to read it because the cpu is busy.  Then it pass stuff onto the
   fifo that X reads from, but now X waits for a while because so much is going on.
2. You may play with the priority of x in order to get better response, but
   this does not affect the priority of gpm.

With X reading psaux directly, you avoid some waiting.  And X may get a priority
boost for waiting for the mouse to move. With gpm this bonus goes to gpm which
may have a lot less to do with it.

Helge Hafting


  reply	other threads:[~2004-04-19 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-19 13:11 elevator=as, or actually gpm doesn't get time from scheduler??? Antti Lankila
2004-04-19 13:33 ` Helge Hafting [this message]
2004-04-20  0:13 ` Nick Piggin

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=4083D511.6040702@aitel.hist.no \
    --to=helgehaf@aitel.hist.no \
    --cc=alankila@elma.net \
    --cc=linux-kernel@vger.kernel.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