First sorry for my bad english.

I have the problem, that clamscan goes in an "uninterruptible sleep" if more than
one processes are running (need it for scanning e-mails).

Here is the ps output of one clamscan process:

# ps wufax
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
...
root       357  0.0  0.8  2236  252 ?        S    Apr14   2:13 /usr/sbin/sshd
root     17139  0.0  0.7  2904  208 ?        S    10:47   0:00  \_ /usr/sbin/sshd
root     17140  0.0  2.1  2676  636 pts/0    S    10:47   0:00  |   \_ -bash
root     17566 89.0 36.3 11720 10688 pts/0   R    11:58   0:01  |       \_ clamscan -i 
-r /
...

You can repeat the ps. You will always see a running process (R).

root     17197 82.0 37.3 12032 10980 pts/0   R    10:52   1:37  |       \_ clamscan -i 
-r /

root     17197 82.0 37.6 12032 11068 pts/0   R    10:52   1:40  |       \_ clamscan -i 
-r /

root     17197 81.4 37.7 12032 11084 pts/0   R    10:52   1:40  |       \_ clamscan -i 
-r /

root     17197 80.9 37.7 12032 11092 pts/0   R    10:52   1:41  |       \_ clamscan -i 
-r /

root     17197 80.6 37.3 12032 10980 pts/0   R    10:52   1:41  |       \_ clamscan -i 
-r /

But if you run 2 processes :

clamscan -i -r / &
clamscan -i -r / &

You can see, that sometimes a process is in the D-state (uninterruptible sleep)

root     17197 79.3 29.8 11900 8760 pts/0    D    10:52   1:43  |       \_ clamscan -i 
-r /
root     17241 60.5 25.1  8720 7380 pts/0    R    10:55   0:01  |       \_ clamscan -i 
-r /

root     17197 75.5 22.1 11900 6508 pts/0    R    10:52   1:45  |       \_ clamscan -i 
-r /
root     17241 20.4 29.3 11740 8608 pts/0    D    10:55   0:02  |       \_ clamscan -i 
-r /

root     17197 72.3 19.4 12032 5728 pts/0    D    10:52   1:47  |       \_ clamscan -i 
-r /
root     17241 24.4 36.1 11928 10620 pts/0   D    10:55   0:04  |       \_ clamscan -i 
-r /

root     17197 69.2 23.6 12032 6956 pts/0    R    10:52   1:47  |       \_ clamscan -i 
-r /
root     17241 27.5 36.3 11812 10684 pts/0   R    10:55   0:07  |       \_ clamscan -i 
-r /

root     17197 67.8 29.4 12032 8660 pts/0    D    10:52   1:48  |       \_ clamscan -i 
-r /
root     17241 32.2 36.8 11940 10824 pts/0   R    10:55   0:10  |       \_ clamscan -i 
-r /

if you run 3 processe, all processes are the most time in the D-state.

root     17197 64.3 21.5 12032 6316 pts/0    D    10:52   1:50  |       \_ clamscan -i 
-r /
root     17241 31.1 30.5 11944 8988 pts/0    D    10:55   0:13  |       \_ clamscan -i 
-r /
root     17252 12.2 15.8  6420 4664 pts/0    D    10:55   0:00  |       \_ clamscan -i 
-r /

root     17197 58.3 16.1 12032 4752 pts/0    D    10:52   1:50  |       \_ clamscan -i 
-r /
root     17241 23.3 26.9 11944 7912 pts/0    D    10:55   0:14  |       \_ clamscan -i 
-r /
root     17252  9.1 17.9 11648 5268 pts/0    D    10:55   0:02  |       \_ clamscan -i 
-r /

root     17197 53.9 16.4 12032 4820 pts/0    D    10:52   1:51  |       \_ clamscan -i 
-r /
root     17241 18.8 24.6 11944 7228 pts/0    D    10:55   0:14  |       \_ clamscan -i 
-r /
root     17252  7.5 13.4 11736 3952 pts/0    D    10:55   0:03  |       \_ clamscan -i 
-r /

root     17197 39.2 14.4 12036 4248 pts/0    R    10:52   2:07  |       \_ clamscan -i 
-r /
root     17241 13.8 24.9 12004 7332 pts/0    D    10:55   0:27  |       \_ clamscan -i 
-r /
root     17252  4.9 16.1 11796 4752 pts/0    D    10:55   0:07  |       \_ clamscan -i 
-r /

but you can kill them with killal -9 clamscan because they are nut the whole time in 
the
D-state (but the most)

I have tested this on 2 different computers on SuSE Linux.

If I run the McAfee uvscan, I can start many processes an see always running processes 
(R-state)

Have you any ideas ?

Thank  You
Markus


_______________________________________________________
________________________WWW-Pool_______________________
Hostmaster Dipl.-Ing. Markus Wawersich Tel:07273/919713
Dammstr. 45                            Fax: 07273/92049
76776 Neuburg                  E-Mail: [EMAIL PROTECTED]
Homepage:                            http://www-pool.de



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel

Reply via email to