Red Hat Bugzilla – Bug 170082
Gdm config (gdm.conf) doesn't allow specifying nice priority for X server
Last modified: 2007-11-30 17:11:14 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.10) Gecko/20050909 Fedora/1.0.6-1.2.fc3 Firefox/1.0.6
Description of problem:
Despite the fact that gdm.conf contains more configuration lines than gcc having options... You can specify that you want your X server to run at a raised or lowered priority (typically raised).
For instance, if you're doing a lot of multimedia that's realtime (like running Xine or Mplayer or MythTV), then you'll probably want to run your X server at -10 or so.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run "ps -efl | egrep '\<X\>'
2. Check the NICE column.
Actual Results: The X server usually runs at a default nice priority of 0.
It would be better to allow one to give a config line as:
and have it run X at -5.
This is a lot more secure than having to do a "sudo renice" of the server from your .xinitrc file.
Can't you just change the command= line to have
nice -n -5 in front of everything else?
Either way, this type of feature request should go upstream. It's not really
fedora specific and we wouldn't want to carry a patch that diverged from
upstream for this kind of feature.
If you do file upstream can you post a link to the upstream bug report here?
A bug has been opened upstream, and the id is 323346
The reason you can't do it via "nice" is that the server does a "setuid" and
"setgid" before starting the command line, which means that you can only
increase the priority (i.e. positive nice values). You can't lower it.
This has been fixed upstream. This can be closed.