Re: 2.6 scheduler and "fast user switching"

From: Guy
Date: Thu Nov 13 2003 - 21:28:24 EST


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

>From http://members.optusnet.com.au/ckolivas/kernel

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/