Linux - SoftwareThis 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.
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.
"Is it normal for crontab to use a lot of CPU? On my box it is using about 95% CPU most of the time."
I don't thing that this is normal. Check to make sure that you are not executing something once a minute that you meant to execute once a day or some such. Or possibly some chrontab initiated command is going into a loop and never quitting.
Well, rmmod is for unloading unused kernel modules, and your cron has it running every 10 minutes, which is WAY too much. Set it to run every 2-4 hours instead.
Another option would be to set cron to run rmmod with very low priority, so that it only uses CPU time not used by any other app. To do this, have cron run `/bin/nice -19 /sbin/rmmod`.
To change the behavior of cron, search files in /var/spool/cron, /etc/cron.d and search /etc/crontab for lines containing `/sbin/rmmod` and replace them with the line above.
As for your crontab app using cpu, the command `crontab -u root -e` just edits root's crontab. I don't know why it's running, so kill it.
BTW, different distros divide up logfiles differently. I use Mandrake 9.1, which happens to use /var/log/syslog. I'm pretty sure redhat does, too. Most likely you run a different distro, and in that case you should just look in /var/log/messages, which is the catch-all file.
Last edited by electron_lemon; 10-03-2003 at 11:36 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.