LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2003, 04:24 PM   #1
carlos123
LQ Newbie
 
Registered: Jan 2003
Posts: 22

Rep: Reputation: 15
nice does not seem to work in prioritizing large processes??


Hi everyone. I have been playing around with the nice process prioritizing utility and it does not seem to work as well as I have generally been led to believe it should.

Can someone check my understanding and give me some input on the role of nice?

Specifically I am trying to compile KDE ...AND... OpenOffice.org in the background on my Gentoo (linux) system having 512 MB RAM. Running on a Pentium III 450 MHz.

Now normally I can nice something like compile KDE and OpenOffice in the background with no problem and still run Konqueror, KDE, KMail and whatever else I want with no problems. In the sense that everything appears to work just as fast as if I was not compiling the large background projects.

But not when it comes to using OpenOffice while nicing these compiles in the background. OpenOffice (the currrent compiled version that I am using while the compile of the newer version and KDE is occurring in the background) slows to an absolute crawl.

Looking at the System Load graphics through KDE System Guard the nice processes are taking up a huge chunk of system resources. All the time. No matter what nice I put them at. While the opening of OpenOffice seems to affect the CPU Load and Physical Memory hardly at all.

It's as if nice adheres to my nice prioritizing for everything else but OpenOffice.

I have used a "nice -n 15" for an emerge (installation and compilation) of OpenOffice and a "nice -n 16" for an emerge of KDE while opening the current version of OpenOffice so as to work in it while compiling in the background. Since these nice values should cause the compilation to be given resources as a low priority I don't understand why OpenOffice (the working program) is affected so adversily.

Is nice, nice to use unless one is activating processes like large compiles that take up huge amounts of system resources in and of themselves? Is it of any real use when working on a Pentium III with 512 MB RAM? Is it doing anything at all in my case?

The ONLY noticeable thing that happens when I open OpenOffice (the working copy) is that there are spikes in the proportion of CPU Load being taken up by applications. But when that happens there is not a corresponding decrease in that taken up by the niced background processes. As I would expect given that I niced those processes to be a low priority.

Why does nice not seem to release resources to my OpenOffice application when those resources seem to be needed?

Any insight or input would be much appreciated.

Thanks.

Carlos
 
Old 11-22-2003, 04:33 AM   #2
stonux
Member
 
Registered: Oct 2003
Distribution: SuSE, RH
Posts: 55

Rep: Reputation: 15
your problem is that compiling applications makes a LOT of
harddisk access. Nice is nice to priorize the CPU. It can't avoid
high priority tasks waiting for hard disk access.
 
  


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 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
All processes nice for certain users dxdad Linux - General 2 10-30-2004 05:58 AM
nice piece of code ....HOW DOES IT WORK? deadhead Programming 7 12-07-2003 12:52 AM
Packet Prioritizing.. InDIo Linux - Networking 3 09-28-2003 07:10 PM
Large backups or Tar doesn't work jeanpba Linux - Hardware 1 10-04-2002 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 PM.

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