[dpdk-dev] [PATCH v2] mem: accelerate dpdk program startup by reuse page from page cache

2018-11-09 Thread jianmingfan
--- fix coding style of the previous patch During procless startup, dpdk invokes clear_hugedir() to unlink all hugepage files under /dev/hugepages. Then in map_all_hugepages(), it invokes mmap to allocate and zero all the huge pages as configured in /sys/kernel/mm/hugepages/xxx/nr_hugepages. This

[dpdk-dev] [PATCH] mem: accelerate dpdk program startup by reuse page from page cache

2018-11-08 Thread jianmingfan
During procless startup, dpdk invokes clear_hugedir() to unlink all hugepage files under /dev/hugepages. Then in map_all_hugepages(), it invokes mmap to allocate and zero all the huge pages as configured in /sys/kernel/mm/hugepages/xxx/nr_hugepages. This cause startup process extreamly slow