Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Processes in X are niced?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Ancipital
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 259
Location: Grnn

PostPosted: Mon Jul 22, 2013 2:18 pm    Post subject: Processes in X are niced? Reply with quote

Hi,

I just noticed that the processes I see after starting xdm (lightdm), all the processes I start from X are niced. If I open a terminal and type 'nice' it shows me 10, some processes are 5, others are 15.

Why does this happen? Can it be disabled?
_________________
Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Jul 22, 2013 3:10 pm    Post subject: Reply with quote

Are you looking at the right value. Try this:
Code:
ps -eo pid,rtprio,nice,policy,ruser,rgroup,comm,args

3rd column, named "NI", is the niceness.
_________________
Improve your font rendering and ALSA sound
Back to top
View user's profile Send private message
Ancipital
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 259
Location: Grnn

PostPosted: Mon Jul 22, 2013 3:54 pm    Post subject: Reply with quote

PaulBredbury wrote:
Are you looking at the right value. Try this:
Code:
ps -eo pid,rtprio,nice,policy,ruser,rgroup,comm,args

3rd column, named "NI", is the niceness.


Thanks, yeah I am. Niceness of mostly 10 for the X processes, a few at 5.
_________________
Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare
Back to top
View user's profile Send private message
Ancipital
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 259
Location: Grnn

PostPosted: Mon Jul 22, 2013 4:04 pm    Post subject: Reply with quote

Actually, no, one at 5 which is the script that launches the window manager. Everything 'under' that seems to be at 10.

I've a feeling it's done by the kernel because I've spent hours looking elsewhere, it became one of those nights where you realise, too late, that you threw most of it away. We all know what that can be like.

But I found nothing. I also tried to turn off 'automatic process scheduling' in the kernel but that didn't seem to make a difference.
_________________
Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Jul 22, 2013 5:04 pm    Post subject: Reply with quote

Well show the command and its output, otherwise I'll just assume this is a dream ;)
Back to top
View user's profile Send private message
Ancipital
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 259
Location: Grnn

PostPosted: Mon Jul 22, 2013 5:39 pm    Post subject: Reply with quote

I don't see the need to put my entire process tree in here, but here is a snippet:

Code:
% ps axfo pid,stat,nice,args

 5640 SLsl   0 /usr/sbin/lightdm
 5665 Ss+    0  \_ /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
 5673 Sl     0  \_ lightdm --session-child 12 15
 5767 Ss     0      \_ zsh - /home/anci/.xinitrc.zsh
 5795 SN     5          \_ /bin/zsh /home/anci/.xmonad/bin/autostart.zsh
 5835 SN    10              \_ /bin/zsh /home/anci/.xmonad/bin/autostart.zsh
 5836 SNl   10              |   \_ gnome-panel
 5911 SN    10              \_ /home/anci/.xmonad/xmonad-x86_64-linux
 6606 SNs   10                  \_ /usr/bin/firefox


Neither /home/anci/.xinitrc.zsh and /home/anci/.xmonad/bin/autostart.zsh contain any nice command.
_________________
Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare
Back to top
View user's profile Send private message
Ancipital
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 259
Location: Grnn

PostPosted: Tue Jul 23, 2013 2:55 pm    Post subject: Reply with quote

Clues/ideas anyone?
_________________
Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2207
Location: UK

PostPosted: Tue Jul 23, 2013 6:17 pm    Post subject: Reply with quote

Maybe xmonad does it. E17 does a similar thing by default.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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