]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: net: tcp_mmap: Use huge pages in receive path
authorEric Dumazet <edumazet@google.com>
Thu, 20 Aug 2020 17:11:18 +0000 (10:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 23:14:53 +0000 (16:14 -0700)
commit64014366cf90dc87d5df39319e626b33e9f285db
tree3f43cd2e8b31e71ea928e603bf87a27c0da90797
parent658d945f9f8db717eecaa9f1a7dc3d88cb4c3325
selftests: net: tcp_mmap: Use huge pages in receive path

One down side of using TCP rx zerocopy is one extra TLB miss
per page after the mapping operation.

While if the application is using hugepages, the non zerocopy
recvmsg() will not have to pay these TLB costs.

This patch allows server side to use huge pages for
the non zero copy case, to allow fair comparisons when
both solutions use optimal conditions.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Arjun Roy <arjunroy@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tcp_mmap.c