Re: [PATCH] fix net engine client read server write bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2011-12-16 21:40, Yufei Ren wrote:
> The net engine was updated with specific 'listen' parameter which used
> for identifying whether it is a tcp server, instead of previous
> 'rw=read' side must be the server. This let fio support bi-direction
> net io test. fio_netio_open_file() has to follow this
> principle. Otherwise, the following tcp client 'rw=read' and tcp
> server 'rw=write' case doesn't work.
> 
> [global]
> ioengine=net
> port=8888
> protocol=tcp
> bs=4k
> size=10g
> 
> [server]
> listen
> rw=write
> 
> [client]
> hostname=localhost
> startdelay=1
> rw=read
> 
> BTW, examples/netio needs 'listen' and 'hostname' adjusted.

Thanks, applied. There's also a bug wrt the unix socket handling, it'll
segfault without host/filename now. Will fix that up in a following
patch.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux