Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X und Nice Value
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
viz
n00b
n00b


Joined: 08 Jul 2002
Posts: 42
Location: Germany

PostPosted: Fri Jul 19, 2002 2:27 pm    Post subject: X und Nice Value Reply with quote

Hallo.
Ich wollte mich mal erkundigen, in welcher Config festgelegt wird, mit welchem Nice Wert X startet. Spaetestens, wenn man X in der Default Einstellung nutzt und der Compiler rattert, beginnt es zu ruckeln. Wird der Nice Wert fuer X (bei Debian ist der Standard Wert "-10") wie auch unter Debian ueber die Datei Xwrapper.config gesteuert, oder ist dieser Xwrapper ein "Debian-only" Feature? Alternativ koennte man sich natuerlich auch ein Shellscript schreiben, welches X mit nice -10 aufruft, aber mich wuerde einfach mal interessieren, ob es da eine "offizielle" Config gibt. :)

Meine Daten der Gentoo Box:

800 Mhz Athlon TB
512 MB SDRAM

Dank und Gruss,
- viz
Back to top
View user's profile Send private message
franco
n00b
n00b


Joined: 05 Jul 2002
Posts: 20
Location: Jena/Germany

PostPosted: Sat Jul 20, 2002 3:58 pm    Post subject: Reply with quote

Der Ansatz ist IMHO falsch. X ist wirklich nicht wichtig genug, mit negativem Nicelevel zu laufen. Setze lieber das Nicelevel des anderen Prozesses hoch. z.B:

/etc/make.conf oder /etc/env.d/20make

MAKE="nice -19 make"

Damit bekommt make und alles, was der dann aufruft ein ordentlich niedriges Nicelevel. Ansonsten ist vielleicht noch

su -
cd /usr/src/linux
make menuconfig
Processor type and features --->
[*] Preemptible Kernel

hilfreich.

Files, in denen der X-Prozeß gestartet wird, sind zB

/usr/X11R6/lib/X11/xdm/Xservers
/usr/X11R6/bin/startx

abhaengig davon, wie Du X ueberhaupt starten willst.

Franco
Back to top
View user's profile Send private message
citizen428
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 317
Location: Vienna, Austria

PostPosted: Sat Jul 20, 2002 7:16 pm    Post subject: Reply with quote

Also falls mir X bei meinem doch schon etwas betagteren Rechner zu träge wird (z.B. machmal beim emergen), re-nice ich es einfach bei Bedarf mit

# renice -XX `ps ho pid -C X`

auf einer Konsole. Statt -XX einfach gewünschten Nicelevel angeben. Denn wenn nicht grade kompiliert wird reicht mir der Standardwert eigentlich.
Back to top
View user's profile Send private message
viz
n00b
n00b


Joined: 08 Jul 2002
Posts: 42
Location: Germany

PostPosted: Mon Jul 22, 2002 6:24 pm    Post subject: Reply with quote

Danke fuer Eure Tips. renice funktioniert soweit wunderbar. Und zur Not kann ich die Prioritaet vom gcc einfach etwas runterkurbeln. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum