diff options
author | Jason Wang <jasowang@redhat.com> | 2016-06-01 01:56:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-07 14:46:11 -0700 |
commit | 8241a1e466cd56e6c10472cac9c1ad4e54bc65db (patch) | |
tree | 974e57de809b0262a7a131a9494a4d8dfec33b3e /mm/nommu.c | |
parent | aaa76724d7ece87eb5f66e02fac9da036dd20667 (diff) | |
download | linux-8241a1e466cd56e6c10472cac9c1ad4e54bc65db.tar.bz2 |
vhost_net: stop polling socket during rx processing
We don't stop rx polling socket during rx processing, this will lead
unnecessary wakeups from under layer net devices (E.g
sock_def_readable() form tun). Rx will be slowed down in this
way. This patch avoids this by stop polling socket during rx
processing. A small drawback is that this introduces some overheads in
light load case because of the extra start/stop polling, but single
netperf TCP_RR does not notice any change. In a super heavy load case,
e.g using pktgen to inject packet to guest, we get about ~8.8%
improvement on pps:
before: ~1240000 pkt/s
after: ~1350000 pkt/s
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/nommu.c')
0 files changed, 0 insertions, 0 deletions