lkml.org 
[lkml]   [2011]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRenicing for OpenGL smoothness.
    Date
    From
    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.


    \
     
     \ /
      Last update: 2011-03-04 04:39    [W:0.039 / U:60.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site