On Feb 18, 2005, at 2:49 PM, Andy Fiddaman wrote:
The accept debug will at least tell us if you're running out of file descriptors..
Roger.
# ndd /dev/tcp tcp_time_wait_interval
60000
# pfiles `pgrep clamd` | grep rlimit
Current rlimit: 256 file descriptors Current rlimit: 256 file descriptors
# netstat -an | grep 3310 | awk '{print $7}' | sort | uniq -c
10 ESTABLISHED 1 LISTEN 33 TIME_WAIT
Also any lines in the /etc/system file which contain 'rlim'
# grep rlim /etc/system #
(i.e. none)
He's another interesting thing: right now the process is running a little "hot":
load averages: 2.12, 1.89, 1.71 15:41:36
157 processes: 153 sleeping, 4 on cpu
CPU states: 1.0% idle, 55.5% user, 24.9% kernel, 18.7% iowait, 0.0% swap
Memory: 2048M real, 243M free, 1662M swap in use, 7863M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 29368 root 9 59 0 30M 28M sleep 47:18 24.33% clamd
(ie. the top process)
Important note: it seems to be working just fine at the moment so this is an example of it working well under load. You can also see that the machine is ok for memory and swap.
Here's what it is doing:
# truss -f -c -p 29368
^C
syscall seconds calls errors
read .140 6427
write .075 740
open .152 1618
close .069 1818
link .000 2 2
unlink .081 395 2
time .000 53
chmod .007 238
stat .042 694 237
lseek .056 5336
getpid .004 420
fstat .001 55
access .000 26
dup .003 184
times .069 7616
ioctl .006 604 604
fcntl .005 501
lwp_park .004 163
lwp_unpark .003 163
rmdir .079 508 218
mkdir .145 293
poll .002 145
lstat .029 849
sigprocmask .000 52
mmap .003 55
munmap .008 53
yield .000 13
lwp_create .000 4
lwp_continue .000 4
lwp_kill .000 4 4
llseek .009 851
lwp_schedctl .000 4
getdents64 .026 961
lstat64 .026 420 420
fstat64 .029 1709
accept .005 26
recvmsg .000 26
-------- ------ ----
sys totals: 1.096 33030 1487
usr time: 5.360
elapsed: 44.900Thanks for taking the time to look into this with me.
-- dNb
_______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
