Re: CPU utils almost 100%-- solved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



fabian wrote:
Dear Guys

Thanks and apprecite your quick replies
By the way i had stated solving the problem of almost 100% CPU utulization
starting everyday at 4 am and ending at 10 am in a very crude way
top was reporting 95% wa

i started to check the crontab file and noticed that the
cron.daily entry in the file sarts at 4 am

and in the directory i found


-rwxr-xr-x   1 root root   133 Jul  6 16:59 00webalizer
-rwxr-xr-x   1 root root   379 Jul  6 17:02 0anacron
lrwxrwxrwx   1 root root    39 Nov  9  2008 0logwatch ->
/usr/share/logwatch/scripts/logwatch.pl
drwxr-xr-x   2 root root  4096 Jul  5 21:25 backup
-rw-r--r--   1 root root    62 Jul  6 17:37 clamav
-rwxr-xr-x   1 root root   118 Jul  6 17:00 cups
-rwxr-xr-x   1 root root   456 Nov  3  2008 freshclam
-rwxr-xr-x   1 root root    26 Jul  6 17:00 havp
-rwxr-xr-x   1 root root   180 Dec  2  2007 logrotate
-rwxr-xr-x   1 root root   418 Jan  6  2007 makewhatis.cron
-rwxr-xr-x   1 root root   137 Jul  6 17:23 mlocate.cron
-rwxr-xr-x   1 root root  2181 Jun 21  2006 prelink
-rwxr-xr-x   1 root root   114 Jul  6 17:01 rpm
-rwxr-xr-x 1 root root   290 Jul  5 21:24 tmpwatch


i started movies some of thes files to difereent directory and finally
found that it was the below file that was the culprit

-rwxr-xr-x 1 root root   290 Jul  5 21:24 tmpwatch
-------
the contents of the file was

/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix \
        -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp
/usr/sbin/tmpwatch 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
    if [ -d "$d" ]; then
        /usr/sbin/tmpwatch -f 720 "$d"
    fi
done
----------------

now everything works fine without this file in the /etc/cron.daily directory
so the tmpwatch was the culprit cause the CPU wait state to almost 99 %
for almost 6 hrs
but jus would like to know if this particular script has any signifance or
any perfomance issue and my system will run perfect without the file


apprecite you help


regards

Fabian


man tmpwatch shows that this is designed to cleanup tmp directories - you may want to see why your tmp files are either very many or have some other issues
HTH
Rob

begin:vcard
fn:Rob Kampen
n:Kampen;Rob
email;internet:rob@xxxxxxxxxxxxxxxxx
tel;cell:407-341-3815
version:2.1
end:vcard

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux