netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* performance bug in virtio net xdp
@ 2020-05-06  8:08 Michael S. Tsirkin
  2020-05-06  8:37 ` Jason Wang
  2020-05-06  8:37 ` Jesper Dangaard Brouer
  0 siblings, 2 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2020-05-06  8:08 UTC (permalink / raw)
  To: Jason Wang
  Cc: virtualization, netdev, linux-kernel, bpf, Jesper Dangaard Brouer,
	Eugenio Perez Martin

So for mergeable bufs, we use ewma machinery to guess the correct buffer
size. If we don't guess correctly, XDP has to do aggressive copies.

Problem is, xdp paths do not update the ewma at all, except
sometimes with XDP_PASS. So whatever we happen to have
before we attach XDP, will mostly stay around.

The fix is probably to update ewma unconditionally.

-- 
MST


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

end of thread, other threads:[~2020-05-06 11:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-06  8:08 performance bug in virtio net xdp Michael S. Tsirkin
2020-05-06  8:37 ` Jason Wang
2020-05-06 11:57   ` Michael S. Tsirkin
2020-05-06  8:37 ` Jesper Dangaard Brouer
2020-05-06 11:57   ` Michael S. Tsirkin

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).