Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permission to set nice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bulletman
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2002
Posts: 126

PostPosted: Sat Jan 31, 2004 12:06 pm    Post subject: Permission to set nice Reply with quote

It seems that, as a regular user, I can't nice a process below zero to give it a higher priority

Is there some configuration that would allow me to do this? Thanks.
_________________
Stephen

If your desktop gets out of control easily,
you probably have too much stuff on it that
doesn't need to be there.
Donna Smallin, "Unclutter Your Home"
Back to top
View user's profile Send private message
superurban
n00b
n00b


Joined: 17 May 2003
Posts: 37

PostPosted: Sat Jan 31, 2004 12:12 pm    Post subject: Reply with quote

bulletman,

only root can nice a process below zero, true. you can use sudo for a workaround (man sudo).

cheers
Back to top
View user's profile Send private message
bulletman
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2002
Posts: 126

PostPosted: Sat Jan 31, 2004 3:11 pm    Post subject: Reply with quote

Here's a snippet from my top output:

..PID.USER......PR..NI..VIRT..RES..SHR.S.%CPU.%MEM....TIME+..COMMAND
.8087.stephen...20..19.41880..40m..13m.R.91.1..4.6..75:31.01.java
1293.stephen...14...0...976..976..720.R..8.9..0.1...0:00.11.top
.....1.root........8...0...464..432..416.S..0.0..0.0...0:04.02.init
1188.stephen....9...0.12096.7892.7728.S..0.0..0.9...0:00.24.kdeinit
1188.stephen....9...0.13864.9348.8572.S..0.0..1.0...0:00.07.kdeinit
1188.stephen....9...0.15112...9m.9620.S..0.0..1.1...0:00.42.kdeinit

Does everything I launch get set to nice 0 level by default? That doesn't make sense to me since it makes it harder for me to give one task higher priority than another.
_________________
Stephen

If your desktop gets out of control easily,
you probably have too much stuff on it that
doesn't need to be there.
Donna Smallin, "Unclutter Your Home"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sat Jan 31, 2004 3:31 pm    Post subject: Reply with quote

bulletman,

By default, everything you run gets set to nice 0, unless the progam sets a positive nice level. e.g. seti@home sets its nice to 1.

Be careful about setting your processes niceness (nastyness?) to negative numbers. If they are CPU intensive, you may find that X gets very little CPU time.

The original use for nice was on a real multi user system, you could be nice to other interactive users by setting a positive value for nice for your own batch jobs. It made the machine more responsive to everyone.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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