LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-02-2003, 03:12 PM   #1
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Nice and confused about nice


I've got seti@home running in the background and I start it with -nice 19 in the hopes that it doesn't get processor time when I'm doing more important things. However, I've noticed that when I am doing processor intensive work (like compiling or doing some big honking SQL joins) seti still gets about half of the CPU time (according to top).

So my questions are:
1) is this normal?
2) is there a way to really clamp down on seti when a higher priority process comes along?
 
Old 06-02-2003, 04:03 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'm not interested in seti (I believe that
the best proof for alien intelligence is the
fact that they don't try to conatct us ;})
so I wouldn't know about seti's "niceness" ...
but in general nice is ranged from -20 to 19,
with 0 being the norm.

If you find that your queries run too slow
with seti active, re-nice your sq or the shell
that does the compilingl to -10, -15, -19 ...

Cheers,
Tink
 
Old 06-02-2003, 08:27 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803

Original Poster
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Yeah, looking for aliens does seem a bit off. I may switch over to folding proteins. At least I KNOW that is doing some good.

Thanks for the suggestion. I'll give it a rip and see if that does it.
 
Old 06-02-2003, 09:19 PM   #4
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
1. top is not very accurate w/ cpu activity
2. nice does not chunk up your cpu to portions and divide evenly. That's why sometimes its not the right solution. Instead, it prioritizes cpu time (a bit different).
e.g. Whatever you're doing in the foreground may be waiting for a reply - SETI may not be waiting and hence still use those cycles.

I remember someone released a kernel hack that divides the cpu power in the way you describe it - ie. SETI gets 10% cpu, etc. Maybe try a google search.
 
Old 06-03-2003, 07:17 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803

Original Poster
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
nice does not chunk up your cpu to portions and divide evenly
Yeah, I was starting to guess that from watching some SQL queries. What's bugging me is that the same query runs significantly faster if I kill seti first.

I'm going to mess with priorities a bit, but if that doesn't do it I'll probably just dump seti. I've finally got a nice kernel and I really don't want to mess with it. Thanks for the suggestion though.
 
Old 06-03-2003, 04:44 PM   #6
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
I don't suppose you have a dual processor? even though seti@home is nice, the compilation would likely only use one so seti would be free to use the other (thus getting about half of the CPU time)
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nice TV softaware serzz Linux - Software 3 05-05-2004 07:10 PM
Some Nice Links hadding Linux - Newbie 1 11-05-2003 07:04 PM
Nice and Renice KnightAzul Linux - General 1 09-17-2003 11:59 AM
Google has been nice to my site. Is it nice to your site? Travis86 General 5 08-31-2003 01:38 PM
opera is really nice! browny_amiga Linux - Software 2 05-16-2003 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:59 AM.

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