Re: Network block device seems to be blocked

From: Kentaro Oda (ken@mickey.ai.kyutech.ac.jp)
Date: Fri Apr 28 2000 - 03:47:27 EST


----- Original Message -----
From: "Pavel Machek" <pavel@suse.cz>
To: "Kentaro Oda" <ken@mickey.ai.kyutech.ac.jp>
Cc: <linux-kernel@vger.rutgers.edu>
Sent: Friday, April 28, 2000 5:15 PM
Subject: Re: Network block device seems to be blocked

> Hi!
>
> > Network block device appears to be blocked when I copy the many
> > files on exported filesystem. Like this.
 .....
> > The following is a result of netstat when blocking is occured.
> > Proto Recv-Q Send-Q Local Address Foreign Address
State
> > tcp 0 126 matrix.mickey.ai:telnet cosmo.mickey.ai.ky:4874
> > ESTABLISHED
> > tcp 0 0 matrix.mickey.ai:telnet cosmo.mickey.ai.ky:4872
> > ESTABLISHED
> > tcp 0 0 matrix.mickey.ai:telnet cosmo.mickey.ai.ky:4889
> > ESTABLISHED
> > tcp 51084 54020 matrix.mickey.ai.k:1039 cosmo.mickey.ai.ky:3000
> > ESTABLISHED
>
> You could try to ps -auxl on both client and server. You could enable
> debugging in server and see what is going on.
> Pavel

nbd server output of ps aux
ken@cb99:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1020 96 ? S 13:12 0:09 init [2]
root 2 0.0 0.0 0 0 ? SW 13:12 0:00 [kflushd]
root 3 0.0 0.0 0 0 ? SW 13:12 0:00 [kupdate]
root 4 0.0 0.0 0 0 ? SW 13:12 0:00 [kpiod]
root 5 0.0 0.0 0 0 ? SW 13:12 0:00 [kswapd]
daemon 74 0.0 0.0 1132 84 ? S 13:16 0:00 /sbin/portmap
root 80 0.0 0.0 0 0 ? SW 13:16 0:00 [rpciod]
root 122 0.0 0.2 1352 260 ? S 13:16 0:00 /sbin/syslogd
root 124 0.0 0.3 1312 356 ? S 13:16 0:00 /sbin/klogd
root 129 0.0 0.0 1056 76 ? S 13:16 0:00
/sbin/rpc.statd
root 131 0.0 0.0 0 0 ? SW 13:16 0:00 [lockd]
root 138 0.0 0.0 1300 72 ? S 13:16 0:00
/usr/sbin/inetd
root 144 0.0 0.0 1352 84 ? S 13:16 0:00 /usr/sbin/lpd
root 154 0.0 0.1 988 96 ? S 13:16 0:00
/sbin/modclean
root 159 0.0 0.3 2224 328 ? S 13:16 0:00
/usr/local/apache/bin/httpd
nobody 162 0.0 0.3 2368 352 ? S 13:16 0:00
/usr/local/apache/bin/httpd
nobody 163 0.0 0.3 2336 352 ? S 13:16 0:00
/usr/local/apache/bin/httpd
nobody 164 0.0 0.9 2380 944 ? S 13:16 0:00
/usr/local/apache/bin/httpd
nobody 165 0.0 0.3 2368 352 ? S 13:16 0:00
/usr/local/apache/bin/httpd
nobody 166 0.0 0.3 2336 332 ? S 13:16 0:00
/usr/local/apache/bin/httpd
root 170 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 171 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 172 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 173 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 174 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 175 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 176 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 177 0.0 0.0 0 0 ? SW 13:16 0:00 [nfsd]
root 179 0.0 0.0 1060 88 ? S 13:16 0:00
/usr/sbin/rpc.mountd
root 183 0.0 0.4 1676 460 ? S 13:16 0:01
/usr/sbin/nmbd -D
root 185 0.0 0.3 7344 292 ? S 13:16 0:00
/usr/sbin/smbd -D
root 190 0.0 1.6 1556 1548 ? SL 13:16 0:00
/usr/sbin/ntpd
daemon 196 0.0 0.0 1140 80 ? S 13:16 0:00 /usr/sbin/atd
root 199 0.0 0.2 1168 220 ? S 13:16 0:00
/usr/sbin/cron
root 202 0.0 0.0 1004 64 tty1 S 13:16 0:00 /sbin/getty
38400 tty1
root 203 0.0 0.0 1004 64 tty2 S 13:16 0:00 /sbin/getty
38400 tty2
root 204 0.0 0.0 1004 64 tty3 S 13:16 0:00 /sbin/getty
38400 tty3
root 205 0.0 0.0 1004 64 tty4 S 13:16 0:00 /sbin/getty
38400 tty4
root 206 0.0 0.0 1004 64 tty5 S 13:16 0:00 /sbin/getty
38400 tty5
root 207 0.0 0.0 1004 64 tty6 S 13:16 0:00 /sbin/getty
38400 tty6
archive 227 1.2 1.0 7728 988 ? S 13:20 3:14
/usr/sbin/smbd -D
root 230 0.0 0.4 7688 464 ? S 13:20 0:00
/usr/sbin/smbd -D
nobody 239 0.0 0.3 2236 300 ? S 13:21 0:00
/usr/local/apache/bin/httpd
nobody 240 0.0 0.9 2272 908 ? S 13:21 0:00
/usr/local/apache/bin/httpd
nobody 241 0.0 0.9 2360 896 ? S 13:21 0:00
/usr/local/apache/bin/httpd
root 254 0.0 0.1 1188 116 ? S 13:27 0:00 in.telnetd:
dumpty.mickey.ai.kyutech.a
katsumi 255 0.0 0.3 2004 324 pts/0 S 13:27 0:00 -bash
nobody 268 0.0 0.3 2260 320 ? S 13:41 0:00
/usr/local/apache/bin/httpd
root 359 0.0 0.4 7588 424 ? S 17:13 0:00
/usr/sbin/smbd -D
nobody 360 0.3 0.5 7664 560 ? S 17:15 0:04
/usr/sbin/smbd -D
root 363 2.4 0.1 1188 164 ? S 17:19 0:27 in.telnetd:
cosmo.mickey.ai.kyutech.ac
ken 364 0.0 0.3 1980 296 pts/1 S 17:19 0:00 -bash
root 401 0.0 0.1 1188 136 ? S 17:24 0:00 in.telnetd:
cosmo.mickey.ai.kyutech.ac
ken 402 0.0 0.6 1968 600 pts/2 S 17:24 0:00 -bash
ken 408 12.5 0.1 1032 148 pts/1 S 17:33 0:38
/home/ken/nbd/nbd-server 3000 raw.raw
root 410 0.0 0.3 7584 332 ? S 17:36 0:00
/usr/sbin/smbd -D
ken 421 0.0 1.0 2652 988 pts/2 R 17:38 0:00 ps aux
ken@cb99:~$

nbd-server's output
.....................
RITE from 233877504 (456792) len 4096, wr: net->buf, *buf->exp, @+3234:
*WRITE from 233881600
(456800) len 4096, wr: net->buf, *buf->exp, @+3235: *WRITE from 233885696
(456808) len 4096, w
r: net->buf, *buf->exp, @+3236: *WRITE from 233889792 (456816) len 4096, wr:
net->buf, *buf->e
xp, @+3237: *WRITE from 233893888 (456824) len 4096, wr: net->buf,
*buf->exp, @+3238: *WRITE f
rom 233897984 (456832) len 4096, wr: net->buf, *buf->exp, @+3239: *WRITE
from 233902080 (45684
0) len 4096, wr: net->buf, *buf->exp, @+3240: *WRITE from 233906176 (456848)
len 4096, wr: net
->buf, *buf->exp, @+3241: *READ from 148459520 (289960) len 4096, exp->buf,
buf->net, +OK!
 ..................
3264: *READ from 148553728 (290144) len 4096, exp->buf, @buf->net, +OK!
3265: *READ from 148557824 (290152) len 4096, exp->buf, @buf->net, +OK!
3266: *READ from 148561920 (290160) len 4096, exp->buf, @buf->net, +
<---- blocked here --->

netstat output of nbd server
ken@cb99:~$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 cb99.mickey:netbios-ssn mickey166.mickey.a:1408
ESTABLISHED
tcp 56272 59368 cb99.mickey.ai.kyu:3000 matrix.mickey.ai.k:1029
ESTABLISHED
tcp 0 126 cb99.mickey.ai.k:telnet cosmo.mickey.ai.ky:1431
ESTABLISHED
tcp 0 0 cb99.mickey.ai.k:telnet cosmo.mickey.ai.ky:1410
ESTABLISHED
tcp 0 419 cb99.mickey:netbios-ssn 131.206.18.75:1243
ESTABLISHED
tcp 0 0 cb99.mickey:netbios-ssn cosmo.mickey.ai.ky:1359
ESTABLISHED
tcp 0 0 cb99.mickey.ai.k:telnet dumpty.mickey.ai.k:1341
ESTABLISHED
tcp 0 0 cb99.mickey:netbios-ssn dumpty.mickey.ai.k:1340
ESTABLISHED
tcp 0 41 cb99.mickey:netbios-ssn motokun.mickey.ai.:2127
ESTABLISHED

nbd client output of ps aux

ken@matrix:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.7 1020 464 ? S 02:14 0:00 init [2]
root 2 0.6 0.0 0 0 ? SW 02:14 0:12 [kswapd]
root 3 0.3 0.0 0 0 ? SW 02:14 0:07 [kflushd]
root 4 0.0 0.0 0 0 ? DW 02:14 0:00 [kupdate]
daemon 75 0.0 0.6 1128 420 ? S 02:14 0:00 /sbin/portmap
root 126 0.0 0.9 1352 600 ? S 02:14 0:00 /sbin/syslogd
root 128 0.0 1.3 1500 856 ? S 02:14 0:00 /sbin/klogd
root 133 0.0 0.8 1056 540 ? S 02:14 0:00
/sbin/rpc.statd
root 140 0.0 0.8 1300 548 ? S 02:14 0:00
/usr/sbin/inetd
root 146 0.0 0.8 1352 560 ? S 02:14 0:00 /usr/sbin/lpd
root 152 0.0 0.5 988 328 ? S 02:14 0:00
/sbin/modclean
root 158 0.0 1.3 1668 820 ? S 02:14 0:00
/usr/sbin/nmbd -D
daemon 163 0.0 0.8 1140 544 ? S 02:14 0:00 /usr/sbin/atd
root 166 0.0 0.9 1168 572 ? S 02:14 0:00
/usr/sbin/cron
root 169 0.0 0.7 1004 444 tty1 S 02:14 0:00 /sbin/getty
38400
root 170 0.0 0.7 1004 444 tty2 S 02:14 0:00 /sbin/getty
38400
root 171 0.0 0.7 1004 444 tty3 S 02:14 0:00 /sbin/getty
38400
root 172 0.0 0.7 1004 444 tty4 S 02:14 0:00 /sbin/getty
38400
root 173 0.0 0.7 1004 444 tty5 S 02:14 0:00 /sbin/getty
38400
root 174 0.0 0.7 1004 444 tty6 S 02:14 0:00 /sbin/getty
38400
telnetd 175 0.0 0.9 1188 620 ? S 02:29 0:00 in.telnetd:
ken 176 0.0 1.8 1964 1168 pts/0 S 02:29 0:00 -bash
root 178 0.0 1.9 1980 1200 pts/0 S 02:29 0:00 bash
telnetd 198 0.0 0.9 1188 620 ? S 02:35 0:00 in.telnetd:
ken 199 0.0 1.8 1964 1168 pts/1 S 02:35 0:00 -bash
root 210 0.9 0.8 1108 532 pts/0 D 02:40 0:03 ./nbd-client
cb99
telnetd 212 0.0 0.9 1188 620 ? S 02:41 0:00 in.telnetd:
ken 213 0.0 1.8 1964 1164 pts/2 S 02:41 0:00 -bash
root 214 0.0 1.9 1980 1196 pts/2 S 02:41 0:00 bash
root 227 0.3 0.6 1056 408 pts/2 D 02:43 0:00 cp -a usr
usr2
ken 243 0.0 2.0 2964 1260 pts/1 R 02:46 0:00 ps aux
ken@matrix:~$

nbd client's output of netstat
matrix:/# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 matrix.mickey.ai:telnet cosmo.mickey.ai.ky:1427
ESTABLISHED
tcp 0 0 matrix.mickey.ai:telnet cosmo.mickey.ai.ky:1433
ESTABLISHED
tcp 0 126 matrix.mickey.ai:telnet cosmo.mickey.ai.ky:1438
ESTABLISHED
tcp 52184 53576 matrix.mickey.ai.k:1029 cb99.mickey.ai.kyu:3000
ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 3 [ ] STREAM CONNECTED 313 /dev/log
unix 3 [ ] STREAM CONNECTED 312
unix 3 [ ] STREAM CONNECTED 126 /dev/log
unix 3 [ ] STREAM CONNECTED 125

nbd server machine running with kernel 2.2.14
nbd client machine running with kernel 2.3.99pre9

Is other additional informations necessary?

Kentaro Oda

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:14 EST