linux_dsm_epyc7002/drivers/vhost
Jason Wang e4dab1e6ea vhost_net: mitigate page reference counting during page frag refill
We do a get_page() which involves a atomic operation. This patch tries
to mitigate a per packet atomic operation by maintaining a reference
bias which is initially USHRT_MAX. Each time a page is got, instead of
calling get_page() we decrease the bias and when we find it's time to
use a new page we will decrease the bias at one time through
__page_cache_drain_cache().

Testpmd(virtio_user + vhost_net) + XDP_DROP on TAP shows about 1.6%
improvement.

Before: 4.63Mpps
After:  4.71Mpps

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-17 12:00:42 -08:00
..
Kconfig
Kconfig.vringh
Makefile
net.c vhost_net: mitigate page reference counting during page frag refill 2018-11-17 12:00:42 -08:00
scsi.c
test.c
test.h
vhost.c vhost: Fix Spectre V1 vulnerability 2018-10-31 12:39:15 -07:00
vhost.h
vringh.c
vsock.c