LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-30-2003, 03:35 PM   #1
davi_cabral
LQ Newbie
 
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21

Rep: Reputation: 15
Question 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
 
Old 07-30-2003, 04:14 PM   #2
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 247

Rep: Reputation: 31
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.
 
Old 08-08-2003, 01:44 PM   #3
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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
 
Old 08-18-2003, 10:14 AM   #4
davi_cabral
LQ Newbie
 
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
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 ?
 
Old 08-18-2003, 10:48 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
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.
 
Old 08-18-2003, 12:37 PM   #6
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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
 
Old 08-18-2003, 02:38 PM   #7
davi_cabral
LQ Newbie
 
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
Yes, in RedHat 8 the hwbrowser appears to do that, but at 7.2 not.
 
Old 08-18-2003, 02:40 PM   #8
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Did gtop work? I found that by google with 'redhat 7.2 system monitor'. It brought up that rpm.

RO
 
Old 08-18-2003, 03:39 PM   #9
davi_cabral
LQ Newbie
 
Registered: Jul 2003
Location: Rio
Distribution: RedHat 7.2
Posts: 21

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


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
Disk 100% full eggoz Linux - Software 7 12-22-2004 11:01 PM
partition help / 100% full JanusDay Slackware 7 02-23-2004 06:57 PM
Xircom 100 Full Duplex crakerg Linux - Networking 3 01-13-2004 07:05 PM
Xircom 100 Full crakerg Linux - Hardware 3 01-13-2004 01:17 PM
Filesystem at 100% but not full question Blinker_Fluid Linux - General 5 12-17-2003 03:44 PM


All times are GMT -5. The time now is 01:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration