Hi Dmitry,
Excuse my late reply.
My system is configured with 1G huge page size upon boot and then later on I issue `sysctl -w vm.nr_hugepages=700`
It appears that the swapping was caused by some daemon that decided to start up and allocate quite some memory. I no longer observe this effect.
I included a FlameGraph (recorded with perf) from program startup that does a memory allocation for 500 GB (MBUFS + priv data): mempool allocation with 218'531'468 MBUFs.
Most time is spent in mmap and in memsets.
Let me know what you think and perhaps if there are ways to improve the loading time.