Page 1 of 1

/usr/local/psa/admin/sbin/statistics - how to reduce CPU?

Posted: Thu Feb 01, 2007 6:50 pm
by aus-city
I notice in watchdog everytime statistics run, it spikes the CPU for about 1 hour.

Is there a way to lower the priority so it takes longer to run, but does not gobble up the servers CPU?

Thanks!

Posted: Tue Feb 06, 2007 10:46 pm
by crshjnke
My guess would be to find the cron job that runs your stats and add the nice command. (most likely in etc/cron.daily/)

nice 10 usally works well

# minute hour day month weekday command

Example:

# minute hour day month weekday command
0 1 * * * nice 10 backup.sh