Process priority hijinks

Using applications, configuring, problems
Post Reply
Message
Author
GJones
Posts: 12
Joined: Mon 19 Mar 2012, 02:09

Process priority hijinks

#1 Post by GJones »

This is a screenshot of htop on an EeePC running Zenwalk 7.0:

http://i.imgur.com/1HCcF.png

And this is one of htop on an Aspire laptop running Lucid Puppy 5.2.8:

http://i.imgur.com/EZUEr.png

Note the PRI column. On Zenwalk, most tasks have a priority of 1, and it is usually not higher than 7. On Puppy, almost all tasks have a priority of 20, and it usually does not go below 16 (except for the slmodem driver, which has realtime priority). It looks like almost everything desktop-related has much *lower* priority than on a normal Linux distro.

Kind of weird... Anyone know what produces these conditions in Puppy?

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#2 Post by darkcity »

looks like different default priorities have been set

you can make a app have priority by running it with the nice command with negative value
for example

Code: Select all

nice --10 proteus
:arrow:

GJones
Posts: 12
Joined: Mon 19 Mar 2012, 02:09

#3 Post by GJones »

Thank you, but it looks like the nice command does not work that way?

Also, the niceness of the processes is normal in both cases, it's just the priority that's different. Not sure if/how that makes sense.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post by Karl Godt »

Kind of weird... Anyone know what produces these conditions in Puppy?
Nothing produces this on Puppy , seems that zenwalk adds lines of code to adjust the priorities .

Otherwise have a look in " man ps " for more info :
nice value. This ranges from 19 (nicest) to -20 (not nice
to others), see nice(1). (alias nice).

GJones
Posts: 12
Joined: Mon 19 Mar 2012, 02:09

#5 Post by GJones »

D'oh! Thanks for correcting me on that. :oops:

Post Reply