numam-dpdk/app/test-pmd
Eelco Chaudron 1c036b16c2 app/testpmd: avoid pages being swapped out
Call the mlockall() function, to attempt to lock all of its process
memory into physical RAM, and preventing the kernel from paging any
of its memory to disk.

When using testpmd for performance testing, depending on the code path
taken, we see a couple of page faults in a row. These faults effect
the overall drop-rate of testpmd. On Linux the mlockall() call will
prefault all the pages of testpmd (and the DPDK libraries if linked
dynamically), even without LD_BIND_NOW.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2017-10-10 00:30:16 +01:00
..
cmdline_flow.c ethdev: fix port id type in flow API 2017-10-06 18:38:55 +02:00
cmdline.c ethdev: increase port id range 2017-10-06 18:23:25 +02:00
config.c ethdev: increase port id range 2017-10-06 18:23:25 +02:00
csumonly.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
flowgen.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
icmpecho.c app/testpmd: fix typos 2017-03-10 14:11:56 +01:00
ieee1588fwd.c ethdev: increase port id range 2017-10-06 18:23:25 +02:00
iofwd.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
macfwd.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
macswap.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
Makefile net/xenvirt: remove 2017-10-09 01:11:48 +02:00
parameters.c ethdev: increase port id range 2017-10-06 18:23:25 +02:00
rxonly.c ethdev: increase port id range 2017-10-06 18:23:25 +02:00
testpmd.c app/testpmd: avoid pages being swapped out 2017-10-10 00:30:16 +01:00
testpmd.h ethdev: increase port id range 2017-10-06 18:23:25 +02:00
txonly.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00