On 09/19/14 17:08, Jinpu Wang wrote:
Thank you very much for quick reply. I tried you test program with:
./discontiguous-io -l 4096 -o 1024 -s -w /dev/sdb
The program just wait there, and strace show it hang at read:
munmap(0x7fb074c10000, 24430) = 0
brk(0) = 0x1896000
brk(0x18b8000) = 0x18b8000
open("/dev/sdb", O_RDONLY) = 3
ioctl(3, BLKSSZGET, 0x6066e0) = 0
fstat(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7fb074c16000
read(0,
ib_srp load with cmd_sg_entries=255, target side use ib_srpt from svn
1 month ago.
Kernel is 3.14.13
lsscsi
[0:0:0:0] disk ATA ST3750528AS CC38 /dev/sda
[1:0:0:0] disk SCST_BIO vol0 310 /dev/sdb
[1:0:0:1] disk SCST_BIO vol1 310 /dev/sdc
Hello Jack,
Did you know that file descriptor 0 corresponds to stdin ? With
command-line option -w the test program reads data from stdin and sends
that data to a SCSI device. I think the test program is waiting for you
to provide input data :-)
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html