All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Yufei Ren <renyufei83@gmail.com>
Cc: fio@vger.kernel.org, "Yufei Ren(Y!)" <renyufei83@yahoo.com.cn>
Subject: Re: [PATCH] fix net engine client read server write bug
Date: Mon, 19 Dec 2011 08:56:15 +0100	[thread overview]
Message-ID: <4EEEEE1F.6010204@kernel.dk> (raw)
In-Reply-To: <CAG5pYQeVKT=90W0U3GEcC58TXPHNvjp=GoyfmV7SiO6KWeeoDg@mail.gmail.com>

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


      reply	other threads:[~2011-12-19  7:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 20:40 [PATCH] fix net engine client read server write bug Yufei Ren
2011-12-19  7:56 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEEEE1F.6010204@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=renyufei83@gmail.com \
    --cc=renyufei83@yahoo.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.