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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-30-2003, 03:35 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21
Rep:
|
100% full CPU
Dear Friends ...?
I have a MRTG server running the incredible number of 456 interfaces. The PC is an Athlon 1300, 20 Gb HDD, 512 Mb RAM.
I put all the config files to run on the crontab, creating a concurrency scheme. It is great because in 30seconds I finish my job, but the CPU goes to 100%.
When it occurs (50% of the time), it is difficult to access the machine as Web Server (to see the MRTG graphics) or FTP Server (to download the MRTG logs).
Is there a way to distribute the configs processing more conveniently, in order to take always 10%-or-more-free CPU ?
thanks
|
|
|
07-30-2003, 04:14 PM
|
#2
|
Member
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251
Rep:
|
Would it help to include the "nice" command in your crontab entry?
i.e.
nice +15 <command-to-run>
See "man nice"
This would allow the command run by cron to use all resources when running alone, but would allow other processes access when they request it.
|
|
|
08-08-2003, 01:44 PM
|
#3
|
Member
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843
Rep:
|
For anything that is already running, you can also
renice
the process.
man renice
Renice'ing a process group causes all processes in the process group to have their scheduling priority altered. Renice'ing a user causes all processes owned by the user to have their scheduling priority altered. By default, the processes to be affected are specified by their process ID's.
RO
|
|
|
08-18-2003, 10:14 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21
Original Poster
Rep:
|
People
The correct syntax is nice -n 15 <command>.
It worked, but I do not see any changes in CPU behaviour, maybe because of top / gtop limitations.
Is there a tool that draws second-by-second graphics of CPU load, memory load etc for Linux ?
|
|
|
08-18-2003, 10:48 AM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,415
|
Is there a tool that draws second-by-second graphics of CPU load, memory load etc for Linux ?
Doesn't MRTG have snapons for that?
If it's one offs you want, use Xosview, else search Freshmeat.net for "atsar" or "sar" if you want to have longterm reporting.
|
|
|
08-18-2003, 12:37 PM
|
#6
|
Member
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843
Rep:
|
I am not sure when it came out, but in 8.0, there is a system monitor GUi that does this. Try gtop in the command line. Refer to your system documentation, there is a GUI tool somewhere in your 'Redhat' start menu.
RO
|
|
|
08-18-2003, 02:38 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21
Original Poster
Rep:
|
Yes, in RedHat 8 the hwbrowser appears to do that, but at 7.2 not.
|
|
|
08-18-2003, 02:40 PM
|
#8
|
Member
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843
Rep:
|
Did gtop work? I found that by google with 'redhat 7.2 system monitor'. It brought up that rpm.
RO
|
|
|
08-18-2003, 03:39 PM
|
#9
|
LQ Newbie
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21
Original Poster
Rep:
|
Yes, gtop works, but bar graphics do not give notion of the CPU`s behaviour. It shows what is happening now, but what happened some seconds before is forgotten.
|
|
|
All times are GMT -5. The time now is 09:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|