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 |
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. |
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 |
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 ? |
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. |
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 |
Yes, in RedHat 8 the hwbrowser appears to do that, but at 7.2 not.
|
Did gtop work? I found that by google with 'redhat 7.2 system monitor'. It brought up that rpm.
RO |
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:08 AM. |