Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-18-2004, 12:18 AM   #1
LQ Newbie
Registered: May 2004
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
Scheduling priority for the 'nice' command

Hi all,

I'm trying to run seti@home on my RedHat 8 Linux box but I'm having trouble achieving the results I want.

I'm trying to duplicate the results I get on Windows. There I run seti@home with 'idle' priority. The result of this is that the CPU usage from seti@home drops to basically 0% when another hard crunching process with normal priority kicks in for a long while.

Now, I tried the same (or so I think) in Linux. I launched seti@home with:

nice +19 ./seti

However if I check the CPU time used by the seti process it hovers at around 8% even when another normal process that would otherwise need ~100% of the CPU time is running.

Is there a trick that I'm missing?

Old 05-18-2004, 06:37 AM   #2
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
Try nice -19 ./seti... the smaller the number, the bigger the priority (or at least this is how i saw it works...) The process is not "nice" and needs a lot of CPU power... a "nice" process (high "nice" value) lets other programs execute if they need more CPU. There's a limit of how much CPU power can be given to a process through renicing. I think it's about 20-25%, dunno 4 sure.
Old 05-18-2004, 11:35 AM   #3
LQ Newbie
Registered: May 2004
Distribution: RedHat
Posts: 2

Original Poster
Rep: Reputation: 0
Re: Scheduling priority for the 'nice' command

Well, I actually want to lower its priority (so per 'man nice' I should use a positive number.

That works just not as well as I expected it. I believe its because of differences in the process scheduling algos between Windows and Linux.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Priority of processes (using nice) started from within a script podollb Linux - Software 1 01-08-2006 11:44 AM
Nice vs Priority, how do I prioritise a cronjob? stefaandk Linux - General 5 08-11-2005 08:17 PM
'nice' priority is working backwards! wapcaplet Linux - Software 5 11-19-2004 09:46 AM
Scheduling a Tar command delalynd Red Hat 4 10-26-2004 03:29 AM
window Nt assigns priority internally or by user?Which type of scheduling algorithm u seema General 0 09-26-2003 01:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration