-   Ubuntu (
-   -   How to set xorg default niceness? (

ndani 02-16-2010 12:49 PM

How to set xorg default niceness?

How can I set xorg's default niceness?
I found that things are better overall, if it runs higher than the default 0 niceness. How to make it to be automatical on startup?

jiobo 02-17-2010 11:49 PM

Someone could tell you how to add to xorgconf file, but you could also just have a script that will nice the xorg process that runs automatically.


nice - run a program with modified scheduling priority

nice [OPTION] [COMMAND [ARG]...]

Run COMMAND with an adjusted niceness, which affects process schedul-
ing. With no COMMAND, print the current niceness. Nicenesses range
from -20 (most favorable scheduling) to 19 (least favorable).

-n, --adjustment=N
add integer N to the niceness (default 10)

ndani 02-19-2010 04:00 AM

Thanks, I knew that one.

By the way Linux's scheduler and process priorities are somehow very not right, imho. At least compared to osx and xp upwards. CPU demanding applications especially with high IO demand simply render the system unusable very easily, something that happens much harder in the two other os-es. I found out that adjusting priorities has a negligible impact on this fact. Maybe this was that drove Con Kolivas mad too... :)

But I better not to hijack my own thread... :)

Laurens73 03-01-2010 10:00 AM

Perhaps you could alter the /etc/X11/xinit/xinitrc file modifying the .xsession line into nice -n 10 .xsession or what is the command in your file or the nice value you want.

All times are GMT -5. The time now is 09:09 PM.