Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-23-2005, 03:54 AM   #1
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 780

Rep: Reputation: 66
logrotate takes up 100% CPU indefinitely

Hey all,

since some time logrotate goes on indefinitely and takes up 100% cpu. No
idea why...
No logs are of unreasonable size, and all non-zero kb files are being rotated.
Manually rotating gives
root@leon-fyg:/var/spool# logrotate -df /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file syslog
reading config info for /var/log/cron /var/log/debug /var/log/maillog
/var/log/messages /var/log/secure /var/log/spooler /var/log/syslog
/var/log/cups/* /var/log/backup_laptop.log /var/log/backup_laptop.error
reading config info for /var/log/wtmp
and there it hangs forever with 100% cpu uptake.

For what it's worth, this is the wtmp entry in /etc/logrotate.conf:
# Rotate /var/log/wtmp:
/var/log/wtmp {
    create 0664 root utmp
    rotate 1
Anyone a clue of what's going on and how to get it in tune again?

Cheers, Leon.
Old 05-23-2005, 08:06 AM   #2
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
What's in /var/log/wtmp? Is it important that it's rotated?

I ask, because guessing from the name it's got something to do with temp files. My guess is that you don't need to rotate that one.
Old 05-24-2005, 03:32 AM   #3
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 780

Original Poster
Rep: Reputation: 66
Originally posted by killerbob
What's in /var/log/wtmp? Is it important that it's rotated?
From the wtmp man page:
The utmp file allows one to discover information about who is currently using the system. There may be more users currently using the system, because not all programs use utmp logging.
I commented out the wtmp entry in /etc/logrotate.conf, but still get the same behavior. Apparently it's something else that's choking the system?

Cheers, Leon.


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
how do I stop logrotate from using all my CPU? pdibona Linux - Newbie 21 01-22-2012 05:12 AM
FC 2 GNOME takes 99.9% of cpu. bruse Fedora 6 04-26-2005 07:24 PM
events/0 takes over my cpu tomhemba Fedora 4 08-01-2004 04:05 AM
kernel takes a lot of CPU stephnane AIX 3 04-29-2004 08:41 AM
Need help with logrotate process eating 99.9% CPU glock19 Linux - General 5 12-30-2002 08:02 PM

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration