mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Renicing for OpenGL smoothness.
@ 2011-03-04 20:53 Notifications
  0 siblings, 0 replies; 2+ messages in thread
From: Notifications @ 2011-03-04 20:53 UTC (permalink / raw)
  To: linux-kernel

> 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.

Well, there's just two processes that I couldn't find information on  
online though, kintegrityd and kworker. I set them to highpri for the  
moment, in my script. However the script didn't seem to make much of a  
difference, so the processes that run on Ubuntu Natty Narwhal seems to be  
quite well behaved. It's just a principle though, that any background  
processes shouldn't be able to request a lot of cpu, while I am running my  
opengl app. I do see that the ubuntu folks have reniced some processes of  
their own though.
[khelper] [kintegrityd] [kblockd] [kacpid] [kacpi_notify] [kacpi_hotplug]  
[ata_sff] and more are all at -20. Seems to be quite the opposite of what  
I am doing...


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Renicing for OpenGL smoothness.
  2011-03-01 10:57 ` Clemens Ladisch
@ 2011-03-04  3:36   ` Uwaysi Bin Kareem
  0 siblings, 0 replies; 2+ messages in thread
From: Uwaysi Bin Kareem @ 2011-03-04  3:36 UTC (permalink / raw)
  To: linux-kernel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-04 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 20:53 Renicing for OpenGL smoothness Notifications
  -- strict thread matches above, loose matches on Subject: below --
2011-03-01  0:58 Possible bug, with extreme low latency audio Uwaysi Bin Kareem
2011-03-01 10:57 ` Clemens Ladisch
2011-03-04  3:36   ` Renicing for OpenGL smoothness Uwaysi Bin Kareem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome