|Summary:||Gdm config (gdm.conf) doesn't allow specifying nice priority for X server|
|Product:||[Fedora] Fedora||Reporter:||Philip Prindeville <philipp>|
|Component:||gnome-desktop||Assignee:||Ray Strode [halfline] <rstrode>|
|Status:||CLOSED UPSTREAM||QA Contact:|
|Fixed In Version:||Doc Type:||Enhancement|
|Doc Text:||Story Points:||---|
|Last Closed:||2006-05-12 15:59:35 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Philip Prindeville 2005-10-07 01:50:45 UTC
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): gdm-126.96.36.199-6 How reproducible: Always Steps to Reproduce: 1. run "ps -efl | egrep '\<X\>' 2. Check the NICE column. 3. Actual Results: The X server usually runs at a default nice priority of 0. Additional info: It would be better to allow one to give a config line as: [server-Standard] nice=-5 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.
Comment 1 Ray Strode [halfline] 2005-12-06 22:06:14 UTC
Hi Phillip, 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?
Comment 2 Philip Prindeville 2005-12-06 22:46:52 UTC
A bug has been opened upstream, and the id is 323346 http://bugzilla.gnome.org/show_bug.cgi?id=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.
Comment 3 Philip Prindeville 2006-05-12 15:59:35 UTC
This has been fixed upstream. This can be closed.