netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Performance regression with virtio_net
@ 2017-07-30 22:25 Euan Kemp
  2017-07-31 13:26 ` Michael S. Tsirkin
  0 siblings, 1 reply; 10+ messages in thread
From: Euan Kemp @ 2017-07-30 22:25 UTC (permalink / raw)
  To: mst, seth.forshee; +Cc: netdev

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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Performance regression with virtio_net
@ 2017-07-27 17:09 Seth Forshee
  2017-07-27 20:38 ` Michael S. Tsirkin
  0 siblings, 1 reply; 10+ messages in thread
From: Seth Forshee @ 2017-07-27 17:09 UTC (permalink / raw)
  To: Michael S. Tsirkin, Jason Wang; +Cc: virtualization, netdev

I'm seeing a performance regression with virtio_net that looks to have
started in 4.12-rc1. I only see it in one context though, downloading
snap packages from the Ubuntu snap store. For example:

 https://api.snapcraft.io/api/v1/snaps/download/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_1797.snap

which redirects to Internap's CDN. Normally this downloads in a few
seconds at ~10 MB/s, but with 4.12 and 4.13 it takes minutes with a rate
of ~150 KB/s. Everything else I've tried downloads as normal speeds.

I bisected this to 680557cf79f8 "virtio_net: rework mergeable buffer
handling". If I revert this on top of 4.13-rc2 (along with other changes
needed to successfully revert it) speeds return to normal.

Thanks,
Seth

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-07-31 18:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).