1 |
You really don't know what I was talking about. (sorry for my bad English). |
2 |
|
3 |
I'm NOT running my X11 session as root (only X server), but as normal user. |
4 |
Setting the nice level of X server below 0 (for example -10 or -15) made all |
5 |
X11 clients (the graphical programs) response faster. Everything responses |
6 |
"smoother". This is not about RUNNING faster, but along with my preemptible |
7 |
kernel my whole X11 session become smoother. (this is important for me |
8 |
because I own a very slow computer..sh*t sempron processor..). |
9 |
|
10 |
Not ages ago (sarge or sid in 2006 for example) Debian asked me if I want X |
11 |
server to run with higher priority. (when installing x11 package with |
12 |
debconf set to low). This gave me the idea. |
13 |
|
14 |
My X11 session works good. There was 2 system hangups while playing video |
15 |
with Mplayer. Maybe that was because of the very high priority. I will play |
16 |
with the values, -15 proved to be dangerous. |
17 |
|
18 |
2008/5/14 Josh Cepek <josh.cepek@×××.net>: |
19 |
|
20 |
> Abraham Gyorgy wrote: |
21 |
> |
22 |
>> Well I did a little Google'ing, and i found a blog. There the author |
23 |
>> wrote: |
24 |
>> |
25 |
>> lapitopi gyuszk # snice -15 X |
26 |
>> |
27 |
> |
28 |
> As already pointed out, running process with a nice value less than 0 can |
29 |
> only be done by root, and it's usually a really bad idea to run your entire |
30 |
> X session as root. X (and applications running under X) involve a lot of |
31 |
> code, and vulnerabilities can exist in this code. You don't want any |
32 |
> vulnerabilities to be potentially exploited as the root user. Take the |
33 |
> multiple X-terminal vulnerabilities reported last week by the Gentoo |
34 |
> security team that could allow local attackers to hijack X11 terminals of |
35 |
> other users. The moral is don't run as root unless you actually need to (and |
36 |
> I'd argue that you should never need to run X sessions as root.) |
37 |
> |
38 |
> After doing this, I ran htop and it told me that my X11 was running with |
39 |
>> -15 niceness. I experience better "responsiblity" under all of X11 (kde, |
40 |
>> firefox, konsole, anything). For example switching from an existing Firefox |
41 |
>> window to (for ex.) Konsole or Xchat is much faster. |
42 |
>> I have to add, I own a very slow computer, so I have to do everything to |
43 |
>> speed up my system. It is very slow even with WinXP+official drivers. |
44 |
>> |
45 |
> |
46 |
> If the goal is to lower the priority of other tasks the computer may be |
47 |
> doing at the same time, perhaps setting a higher nice value for them would |
48 |
> offer similar results. In the case of compiling, portage provides an easy |
49 |
> way to lower the priority with the PORTAGE_NICENESS value. |
50 |
> |
51 |
> 2008/5/14 Uwe Thiem <uwix@××××.na <mailto:uwix@××××.na>>: |
52 |
>> |
53 |
>> On Tuesday 13 May 2008, Andrey Falko wrote: |
54 |
>> > On Tue, May 13, 2008 at 4:02 PM, Uwe Thiem <uwix@××××.na |
55 |
>> <mailto:uwix@××××.na>> wrote: |
56 |
>> > > On Tuesday 13 May 2008, Abraham Gyorgy wrote: |
57 |
>> > > > Hello guys, in which configuration file can I set a nice level |
58 |
>> > > > for X11? (this makes all graphical software run much faster, |
59 |
>> > > > at least when I used Debian). |
60 |
>> > > |
61 |
>> > > Nice factor for X makes graphical software run fater? I don't |
62 |
>> > > thinl so. Not at all. |
63 |
>> > |
64 |
>> > Nice factor gives X priority, so if you are compiling something and |
65 |
>> > X's priority is high, you'll be using X as if nothing was being |
66 |
>> > compiled. |
67 |
>> |
68 |
>> Only if you are root. As a normal user, you can only lower the |
69 |
>> priority of a process. |
70 |
>> |
71 |
>> |
72 |
> -- |
73 |
> Josh |
74 |
> |
75 |
> |
76 |
> |