[lkml]   [2003]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.6 scheduler and "fast user switching"
On Thursday 13 November 2003 16:11, Guy wrote:
> On Thursday 13 November 2003 06:11, Nick Piggin wrote:
> > Guy wrote:
> > >A} My default security is that only 'root' can perform nice
> > > with negative values. I am reluctant to play with security
> > > for such a crticial command.
> >
> > Debian does this for you. I guess X runs as suid root anyway
> > so its not a big security problem.
> See comment above. PBSAK


Renicing X? Many distributions (eg Mandrake) start X by default at
a nice of -10 to make it more responsive. This is a workaround
for the old scheduler limitations and the new scheduler makes
this unecessary, and may actually promote audio skipping with
this kernel. Each distribution may do this at different places
but commonly in the file /usr/lib/X11/xdm/Xservers there will be
a line that looks like this:

:0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16

change it to:

:0 local /usr/X11R6/bin/X -deferglyphs 16

Gustavo Franco gave me this on how to do it on Debian:

# dpkg-reconfigure xserver-common

Manage X server wrapper configuration file with debconf? yes
Select what type of user has permission to start the X server. 2
Enter the desired nice value for the X server to use. 0
To check "cat /etc/X11/Xwrapper.config".

Recyle computers. Install Gentoo GNU/Linux.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:58    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean