You really don't know what I was talking about. (sorry for my bad English).

I'm NOT running my X11 session as root (only X server), but as normal user.
Setting the nice level of X server below 0 (for example -10 or -15) made all
X11 clients (the graphical programs) response faster. Everything responses
"smoother". This is not about RUNNING faster, but along with my preemptible
kernel my whole X11 session become smoother. (this is important for me
because I own a very slow computer..sh*t sempron processor..).

Not ages ago (sarge or sid in 2006 for example) Debian asked me if I want X
server to run with higher priority. (when installing x11 package with
debconf set to low). This gave me the idea.

My X11 session works good. There was 2 system hangups while playing video
with Mplayer. Maybe that was because of the very high priority. I will play
with the values, -15 proved to be dangerous.

2008/5/14 Josh Cepek <[EMAIL PROTECTED]>:

> Abraham Gyorgy wrote:
>
>> Well I did a little Google'ing, and i found a blog. There the author
>> wrote:
>>
>> lapitopi gyuszk # snice -15 X
>>
>
> As already pointed out, running process with a nice value less than 0 can
> only be done by root, and it's usually a really bad idea to run your entire
> X session as root. X (and applications running under X) involve a lot of
> code, and vulnerabilities can exist in this code. You don't want any
> vulnerabilities to be potentially exploited as the root user. Take the
> multiple X-terminal vulnerabilities reported last week by the Gentoo
> security team that could allow local attackers to hijack X11 terminals of
> other users. The moral is don't run as root unless you actually need to (and
> I'd argue that you should never need to run X sessions as root.)
>
>  After doing this, I ran htop and it told me that my X11 was running with
>> -15 niceness. I experience better "responsiblity" under all of X11 (kde,
>> firefox, konsole, anything). For example switching from an existing Firefox
>> window to (for ex.) Konsole or Xchat is much faster.
>> I have to add, I own a very slow computer, so I have to do everything to
>> speed up my system. It is very slow even with WinXP+official drivers.
>>
>
> If the goal is to lower the priority of other tasks the computer may be
> doing at the same time, perhaps setting a higher nice value for them would
> offer similar results. In the case of compiling, portage provides an easy
> way to lower the priority with the PORTAGE_NICENESS value.
>
>  2008/5/14 Uwe Thiem <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
>>
>>    On Tuesday 13 May 2008, Andrey Falko wrote:
>>    > On Tue, May 13, 2008 at 4:02 PM, Uwe Thiem <[EMAIL PROTECTED]
>>    <mailto:[EMAIL PROTECTED]>> wrote:
>>    > > On Tuesday 13 May 2008, Abraham Gyorgy wrote:
>>    > >  > Hello guys, in which configuration file can I set a nice level
>>    > >  > for X11? (this makes all graphical software run much faster,
>>    > >  > at least when I used Debian).
>>    > >
>>    > >  Nice factor for X makes graphical software run fater? I don't
>>    > > thinl so. Not at all.
>>    >
>>    > Nice factor gives X priority, so if you are compiling something and
>>    > X's priority is high, you'll be using X as if nothing was being
>>    > compiled.
>>
>>    Only if you are root. As a normal user, you can only lower the
>>    priority of a process.
>>
>>
> --
> Josh
>
>
>

Reply via email to