Re: make test fails (Kernel 2.6.12.3)
"Peter T. Breuer" <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
"Also sprach Robert Scussel:" > Does anyone have issues getting make test to pass all the tests? Not me. > enbd-2.4.32 compiled against 2.6.12.3 smp kernel fails consistently on > test 2: > > error reading block 100: Input/output error.nbd-test 6884: <# 243> dor This is a fundamental failure. Your device is probably not enabled. Read nbdinfo! For comparison, here is "make test" run on kernel 2.6.12.3 SMP (which I just happen to be running on my laptop right now). betty:/usr/oboe/ptb/lang/c/nbd/nbd-2.4.32% sudo make test ... /dev/nda has 1048576 bytes in 1024 blocks of 1024 bytes each flushing buffers..done writing....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done test 1 success: 0 incorrect blocks flushing buffers..done enbd-client 4627: client (-1) opened device /dev/nda flushing buffers..done reading....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done test 2 success: 0 incorrect blocks flushing buffers..done flushing buffers..done writing....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done test 3 success: 0 incorrect blocks flushing buffers..done flushing buffers..done reading....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done test 4 success: 0 incorrect blocks flushing buffers..done flushing buffers..done seeking and writing....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done flushing buffers..nbd/hash 4632: hash saturation reached at 2337 entries nbd/hash 4632: hash hiwater set at 2337/2337 nbd/hash 4632: hash lowater set at 2104/2337 done reading and checking....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%.... (1000KB written in 0.006828s, 143.023213 MB/s, 292911.540715 seeks/s) (1000KB read in 0.004498s, 217.110382 MB/s)done test 5 success: 0 incorrect blocks flushing buffers..done enbd-server 4634: <#1765> do_srv_ioctl server returns error reply (-22) for ioctl type 0x4004ab01 ioctl 1 (write direct) testing write illegal ..success (fail Invalid argument) ioctl 1 (write direct) testing write 0x2399e580 ..success ioctl 2 (read indirect) testing read 0x2399e580 ..success enbd-server 4633: <#1765> do_srv_ioctl server returns error reply (-22) for ioctl type 0xc004ab12 ioctl 3 (write + read indirect) testing illegal ..success (fail Invalid argument) ioctl 3 (write + read indirect) testing w/r 0x63f30e49 ..success (wrote 0x63f30e49 read 0x9c0cf1b6 expected 0x9c0cf1b6) ioctl 4 (large read indirect) testing ..success ioctl 5 (large write + read indirect) testing ..success echo done done betty:/usr/oboe/ptb/lang/c/nbd/nbd-2.4.32% and /proc/nbdinfo reads: betty:/usr/oboe/ptb/lang/c/nbd/nbd-2.4.32% cat /proc/nbdinfo Device a: Open [a] State: verify, rw, enabled, last error 0, lives 0, bp 0 [a] Queued: +0R/0W curr (check 0R/0W) +159R/159W max [a] Buffersize: 262144 (sectors=512, blocks=256) [a] Blocksize: 1024 (log=10) [a] Size: 8192KB [a] Blocks: 8192 [a] Sockets: 4 (*) (+) (+) (+) [a] Requested: 3.2009K (654) (767) (1011) (844) 224R/2.982KW max 1 [a] Despatched: 3.1996K (654) (767) (1011) (844) 224R/2.981KW md5 36W (0 eq, 36 ne, 0 dn) [a] Errored: 1 (0) (0) (0) (1) 1+0 [a] Pending: 0 (0) (0) (0) (0) 0R/0W+0R/0W [a] B/s now: 0 (0R+0W) [a] B/s ave: 30.0K (2.00KR+27.0KW) [a] B/s max: 127K (36.0KR+121KW) [a] Spectrum: 99%1 [a] Kthreads: 0 (0 waiting/0 running/1 max) [a] Cthreads: 4 (+) (+) (+) (+) [a] Cpids: 4 (4637) (4638) (4639) (4640) Device b-p: Closed betty:/usr/oboe/ptb/lang/c/nbd/nbd-2.4.32% betty:/usr/oboe/ptb/lang/c/nbd/nbd-2.4.32% uname -a Linux betty.it.uc3m.es 2.6.12.3-SMP #2 SMP Fri Jul 29 22:02:12 CEST 2005 i686 GNU/Linux Yu are doing something fundamentally wrong, but I don't know what! Nothing really convinces me that you have compiled the kernel modules properly (i.e., typed "make" :-(). Convince me! Peter