From: Seth Forshee <seth.forshee@canonical.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Euan Kemp <euan.kemp@coreos.com>, netdev@vger.kernel.org
Subject: Re: Performance regression with virtio_net
Date: Mon, 31 Jul 2017 09:29:34 -0500 [thread overview]
Message-ID: <20170731142934.wcn22fyvjcqyauda@ubuntu-xps13> (raw)
In-Reply-To: <20170731161903-mutt-send-email-mst@kernel.org>
On Mon, Jul 31, 2017 at 04:26:08PM +0300, Michael S. Tsirkin wrote:
> On Sun, Jul 30, 2017 at 03:25:52PM -0700, Euan Kemp wrote:
> > I've also observed this performance regression.
> >
> > The minimal fix for me is removing the two
> > > if (unlikely(len > (unsigned long)ctx))
> > checks added in 680557c.
> >
> > After digging a little more, the reason that check can fail appears to
> > be that add_recvbuf_mergeable sometimes includes a hole at the end,
> > which is included in len but not ctx.
> >
> > I'd send a patch removing those conditions, but I'm not certain
> > whether "truesize" in receive_mergeable should also be changed back to
> > be the max of len/ctx, or should remain as-is.
> >
> > - Euan
>
> Thanks a lot for looking into it!
>
> I kept this around unchanged from
> ab7db91705e95ed1bba1304388936fccfa58c992. That commit had an internal
> reason not to account for that space: not enough bits to do it. No
> longer true so let's account for length exactly. I'll send a proper
> patch after a bit of testing, would appreciate reports reports of
> whether this helps very much.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This fixes the issue for me, downloads are faster and rx_length_errors
does not show any errors.
Tested-by: Seth Forshee <seth.forshee@canonical.com>
Thanks!
Seth
next prev parent reply other threads:[~2017-07-31 14:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 22:25 Performance regression with virtio_net Euan Kemp
2017-07-31 13:26 ` Michael S. Tsirkin
2017-07-31 14:29 ` Seth Forshee [this message]
2017-07-31 18:38 ` Euan Kemp
2017-07-31 18:50 ` Michael S. Tsirkin
-- strict thread matches above, loose matches on Subject: below --
2017-07-27 17:09 Seth Forshee
2017-07-27 20:38 ` Michael S. Tsirkin
2017-07-27 21:14 ` Seth Forshee
2017-07-27 21:30 ` Michael S. Tsirkin
2017-07-28 13:12 ` Seth Forshee
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=20170731142934.wcn22fyvjcqyauda@ubuntu-xps13 \
--to=seth.forshee@canonical.com \
--cc=euan.kemp@coreos.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
/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