From: Steve Whitehouse <steve@gw.chygwyn.com>
To: marcelo@conectiva.com.br (Marcelo Tosatti)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Zerocopy NBD
Date: Wed, 30 May 2001 18:15:30 +0100 (BST) [thread overview]
Message-ID: <200105301715.SAA21607@gw.chygwyn.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0105301208140.5110-100000@freak.distro.conectiva> from "Marcelo Tosatti" at May 30, 2001 12:08:56 PM
Hi,
>
> On Wed, 30 May 2001, Steve Whitehouse wrote:
> >
[info about NBD patch deleted]
> >
> Cool.
>
> Are you seeing performance improvements with the patch ?
>
Yes, but my testing is not in anyway complete yet. The only network device
I have which is supported by zerocopy is loopback and there appear to be
problems with deadlocks when using NBD over loopback. So what I did was to
modify the NBD server (the userland one from Pavel Machek's web site)
so that it didn't actually do any disk I/O. It still copied the data from
the network into a buffer on write and it returns zeroed buffers on read
(not that thats important as only the write patch is affected in the patch).
I could then test using dd which is a bit artificial in that it creates
large requests giving probably much more data per NBD request than would
be usual under a filesystem load and hence also better with the zerocopy
patch. A timed dd with 100000 blocks of 1k spent 1.2 secs of system time
to do the write with NBD in 2.4.5 and 0.8 secs with my patch.
Also it may well be possible to adjust the network stack's memory management
to give better performance. I upped the values in tcp_[r|w]mem but I've
not checked what different vaules would do to those figures.
I want to do some more testing though in case I've made an error somewhere
in the method. I'd be particularly interested to hear from someone who
has any results for real hardware. If I have time I'll look into whether
the eepro100 or SysKonnect GigE cards could be made to support zerocopy
as they are the ones I have here,
Steve.
next prev parent reply other threads:[~2001-05-30 17:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-30 16:39 Steve Whitehouse
2001-05-30 15:08 ` Marcelo Tosatti
2001-05-30 17:15 ` Steve Whitehouse [this message]
2001-05-30 16:02 ` Marcelo Tosatti
2001-05-30 16:40 ` Jens Axboe
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=200105301715.SAA21607@gw.chygwyn.com \
--to=steve@gw.chygwyn.com \
--cc=Steve@ChyGwyn.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®