Mailing List Archive

uninterruptible sleep
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: Info@www-pool.de
Homepage: http://www-pool.de
Re: uninterruptible sleep [ In reply to ]
What is your ClamAV version ?

Best regards,
Tomasz Kojm
--
oo ..... zolw@konarski.edu.pl
(\/)\......... http://www.konarski.edu.pl/~zolw
\..........._ I nie zapomnij kliknac w brzuszek...
//\ /\\ <- C. Amboinensis www.pajacyk.pl
Re: uninterruptible sleep [ In reply to ]
> What is your ClamAV version ?

0.60

0.54 shows the same problem.

Markus


> Best regards,
> Tomasz Kojm
> --
> oo ..... zolw@konarski.edu.pl
> (\/)\......... http://www.konarski.edu.pl/~zolw
> \..........._ I nie zapomnij kliknac w brzuszek...
> //\ /\\ <- C. Amboinensis www.pajacyk.pl


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


--
_______________________________________________________
________________________WWW-Pool_______________________
Hostmaster Dipl.-Ing. Markus Wawersich Tel:07273/919713
Dammstr. 45 Fax: 07273/92049
76776 Neuburg E-Mail: Info@www-pool.de
Homepage: http://www-pool.de
Re: uninterruptible sleep [ In reply to ]
> > What is your ClamAV version ?
>
> 0.60
>
> 0.54 shows the same problem.

OK, and what are your OS/kernel/(g)libc/gcc versions ?

Best regards,
Tomasz Kojm
--
oo ..... zolw@konarski.edu.pl
(\/)\......... http://www.konarski.edu.pl/~zolw
\..........._ I nie zapomnij kliknac w brzuszek...
//\ /\\ <- C. Amboinensis www.pajacyk.pl
Re: uninterruptible sleep [ In reply to ]
>> > What is your ClamAV version ?
>>
>> 0.60
>>
>> 0.54 shows the same problem.

> OK, and what are your OS/kernel/(g)libc/gcc versions ?

computer 1
==========

# cat /proc/sys/kernel/osrelease
2.4.4-4GB

# l /lib/libc*
lrwxrwxrwx 1 root root 13 Nov 22 2000 /lib/libc.so.4 -> libc.so.4.7.6*
-rwxr-xr-x 1 root root 634880 Apr 29 1996 /lib/libc.so.4.7.6*
-rwxr-xr-x 1 root root 1343073 May 11 2001 /lib/libc.so.6*
lrwxrwxrwx 1 root root 17 Nov 22 2000 /lib/libcom_err.so.2 -> libcom_err.so.2.0*
-rwxr-xr-x 1 root root 7860 May 15 2001 /lib/libcom_err.so.2.0*
-rwxr-xr-x 1 root root 26670 May 11 2001 /lib/libcrypt.so.1*

# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)

# cat /etc/SuSE-release
SuSE Linux 7.2 (i386)
VERSION = 7.2


computer 2
==========
# cat /proc/sys/kernel/osrelease
2.4.16-4GB

# l /lib/libc*
-rwxr-xr-x 1 root root 1384040 Dec 18 2001 /lib/libc.so.6*
lrwxrwxrwx 1 root root 17 Jan 29 2002 /lib/libcom_err.so.2 -> libcom_err.so.2.0*
-rwxr-xr-x 1 root root 8049 Sep 24 2001 /lib/libcom_err.so.2.0*
-rwxr-xr-x 1 root root 26322 Dec 18 2001 /lib/libcrypt.so.1*

# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)

# cat /etc/SuSE-release
SuSE Linux 7.3 (i386)
VERSION = 7.3



I have also tested it on a 3. computer with debian linux (sarge)
There are more running processes, but there are also processes in the D-state:

root 26179 24.4 8.6 7332 5352 pts/0 D 18:12 0:07 \_ clamscan -i -r /
root 26180 25.7 9.8 7332 6060 pts/0 D 18:12 0:07 \_ clamscan -i -r /
root 26188 35.3 9.8 7464 6084 pts/0 D 18:12 0:06 \_ clamscan -i -r /
root 26189 31.5 9.4 7464 5856 pts/0 D 18:12 0:05 \_ clamscan -i -r /
root 26197 69.0 10.0 7464 6212 pts/0 R 18:12 0:01 \_ clamscan -i -r /

root 26179 21.0 8.6 7332 5356 pts/0 D 18:12 0:07 \_ clamscan -i -r /
root 26180 22.0 9.8 7332 6060 pts/0 D 18:12 0:07 \_ clamscan -i -r /
root 26188 30.4 8.8 7464 5444 pts/0 R 18:12 0:07 \_ clamscan -i -r /
root 26189 27.7 7.5 7464 4676 pts/0 R 18:12 0:06 \_ clamscan -i -r /
root 26197 54.0 10.0 7464 6212 pts/0 R 18:12 0:04 \_ clamscan -i -r /

root 26179 20.6 8.2 7464 5104 pts/0 R 18:12 0:08 \_ clamscan -i -r /
root 26180 21.7 5.2 7464 3228 pts/0 R 18:12 0:08 \_ clamscan -i -r /
root 26188 29.0 8.8 7464 5500 pts/0 R 18:12 0:08 \_ clamscan -i -r /
root 26189 26.6 7.6 7464 4752 pts/0 R 18:12 0:07 \_ clamscan -i -r /
root 26197 44.0 10.0 7464 6212 pts/0 R 18:12 0:04 \_ clamscan -i -r /

root 26179 20.4 6.8 7464 4248 pts/0 D 18:12 0:08 \_ clamscan -i -r /
root 26180 21.3 5.8 7464 3628 pts/0 R 18:12 0:08 \_ clamscan -i -r /
root 26188 28.0 8.9 7464 5504 pts/0 R 18:12 0:08 \_ clamscan -i -r /
root 26189 25.4 7.7 7464 4768 pts/0 D 18:12 0:07 \_ clamscan -i -r /
root 26197 38.5 10.0 7464 6212 pts/0 R 18:12 0:05 \_ clamscan -i -r /

the 3. computer is
==================
# cat /proc/sys/kernel/osrelease
2.4.20

# l /lib/libc*
-rwxr-xr-x 1 root root 1104040 Mar 21 17:19 /lib/libc-2.3.1.so*
lrwxrwxrwx 1 root root 13 Jul 31 14:24 /lib/libc.so.6 -> libc-2.3.1.so*
lrwxrwxrwx 1 root root 14 Jul 30 17:34 /lib/libcap.so.1 -> libcap.so.1.10
-rw-r--r-- 1 root root 11600 Dec 18 2001 /lib/libcap.so.1.10
lrwxrwxrwx 1 root root 17 Jul 31 14:27 /lib/libcfont.so.0 -> libcfont.so.0.0.0
-rw-r--r-- 1 root root 10864 Jul 17 17:51 /lib/libcfont.so.0.0.0
lrwxrwxrwx 1 root root 17 Jul 31 14:29 /lib/libcom_err.so.2 -> libcom_err.so.2.1
-rw-r--r-- 1 root root 5708 Jul 12 22:31 /lib/libcom_err.so.2.1
lrwxrwxrwx 1 root root 19 Jul 31 14:27 /lib/libconsole.so.0 -> libconsole.so.0.0.0
-rw-r--r-- 1 root root 60160 Jul 17 17:51 /lib/libconsole.so.0.0.0
-rw-r--r-- 1 root root 18120 Mar 21 17:19 /lib/libcrypt-2.3.1.so
lrwxrwxrwx 1 root root 17 Jul 31 14:24 /lib/libcrypt.so.1 -> libcrypt-2.3.1.so
lrwxrwxrwx 1 root root 19 Jul 31 14:27 /lib/libctutils.so.0 -> libctutils.so.0.0.0
-rw-r--r-- 1 root root 16528 Jul 17 17:51 /lib/libctutils.so.0.0.0

# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3.1 20030626 (Debian prerelease)

best regards

Markus Wawersich

> Best regards,
> Tomasz Kojm
> --
> oo ..... zolw@konarski.edu.pl
> (\/)\......... http://www.konarski.edu.pl/~zolw
> \..........._ I nie zapomnij kliknac w brzuszek...
> //\ /\\ <- C. Amboinensis www.pajacyk.pl


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



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