2015-04-02 19:30, jerry.lilijun at huawei.com: > From: Lilijun <jerry.lilijun at huawei.com> > > In the function map_all_hugepages(), hugepage memory is truly allocated by > memset(virtaddr, 0, hugepage_sz). Then it costs about 40s to finish the > dpdk memory initialization when 40000 2M hugepages are setup in host os.
Yes it's something we should try to reduce. > In fact we can only write one byte to finish the allocation. Isn't it a security hole? This article speaks about "prezeroing optimizations" in Linux kernel: http://landley.net/writing/memory-faq.txt