diff options
author | Eric Dumazet <[email protected]> | 2023-01-20 18:11:36 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-23 21:24:29 -0800 |
commit | 057fb03160a88925877548979ab4ab7f9223e118 (patch) | |
tree | 7b7b4554316362fb15ad6adb90013a87833f254a /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 32e54254bab86529f6adcfd7fec6fae29a6ed4ff (diff) |
selftests: net: tcp_mmap: populate pages in send path
In commit 72653ae5303c ("selftests: net: tcp_mmap:
Use huge pages in send path") I made a change to use hugepages
for the buffer used by the client (tx path)
Today, I understood that the cause for poor zerocopy
performance was that after a mmap() for a 512KB memory
zone, kernel uses a single zeropage, mapped 128 times.
This was really the reason for poor tx path performance
in zero copy mode, because this zero page refcount is
under high pressure, especially when TCP ACK packets
are processed on another cpu.
We need either to force a COW on all the memory range,
or use MAP_POPULATE so that a zero page is not abused.
Signed-off-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions