public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Uwaysi Bin Kareem <uwaysi.bin.kareem@paradoxuncreated.com>
To: linux-kernel@vger.kernel.org
Subject: Renicing for OpenGL smoothness.
Date: Fri, 04 Mar 2011 04:36:43 +0100	[thread overview]
Message-ID: <op.vrsuzhju6426ze@millennium> (raw)
In-Reply-To: <4D6CD10E.3050805@ladisch.de>

Hiya. I'm sitting here playing some OpenGL games, and thinking, isn't it  
rude of processes demanding the same amount of cpu, when I am here,  
wanting the smoothest possible OpenGL experience.

So I am renicing. But my knowledge of the kernel is limited. So I was  
thinking, maybe some of you could inform me, which processes are involved  
in getting the graphics on-screen.

I have already started making a renicing script.

---

highpri=-20;
lowpri=19;
for pid in `pgrep ""`; do renice -n $lowpri -p $pid; done #ubuntu runs a  
lot of processes that can be put in the background.
for pid in `pgrep "init"`; do renice -n $highpri -p $pid; done #probably  
good to have high priority?
for pid in `pgrep "kthreadd"`; do renice -n $highpri -p $pid; done #does  
drivers or anything else create kernel threads that are involved in the  
graphics on-screen?
for pid in `pgrep "ksoftirq"`; do renice -n $highpri -p $pid; done #surely  
these are?
for pid in `pgrep "X"`; do renice -n $highpri -p $pid; done
for pid in `pgrep "metacity"`; do renice -n $highpri -p $pid; done
for pid in `pgrep "hd-audio0"`; do renice -n $highpri -p $pid; done

--
Comments and information appreciated.

  parent reply	other threads:[~2011-03-04  3:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01  0:58 Possible bug, with extreme low latency audio Uwaysi Bin Kareem
2011-03-01 10:57 ` Clemens Ladisch
2011-03-01 16:59   ` Uwaysi Bin Kareem
2011-03-02  7:28     ` Clemens Ladisch
2011-03-02 20:01       ` Uwaysi Bin Kareem
2011-03-03 19:07   ` Uwaysi Bin Kareem
2011-03-04  3:36   ` Uwaysi Bin Kareem [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-03-04 20:53 Renicing for OpenGL smoothness Notifications

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=op.vrsuzhju6426ze@millennium \
    --to=uwaysi.bin.kareem@paradoxuncreated.com \
    --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