LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   100% full CPU (https://www.linuxquestions.org/questions/linux-software-2/100-full-cpu-77383/)

davi_cabral 07-30-2003 02:35 PM

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

camelrider 07-30-2003 03:14 PM

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.

RolledOat 08-08-2003 12:44 PM

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

davi_cabral 08-18-2003 09:14 AM

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 ?

unSpawn 08-18-2003 09:48 AM

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.

RolledOat 08-18-2003 11:37 AM

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

davi_cabral 08-18-2003 01:38 PM

Yes, in RedHat 8 the hwbrowser appears to do that, but at 7.2 not.

RolledOat 08-18-2003 01:40 PM

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

RO

davi_cabral 08-18-2003 02:39 PM

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.