[root@localhost dpdk-19.11]# cat /sys/devices/system/node/node*/hugepages/hugepages-2048kB/nr_hugepages 0 0 0 0 [root@localhost dpdk-19.11]# cat /sys/devices/system/node/node*/hugepages/hugepages-524288kB/nr_hugepages 64 64 64 64 [root@localhost dpdk-19.11]#
Breakpoint 1, main (argc=4, argv=0xfffffffff518) at /data1/dpdk-19.11/demo/memzone/main.c:45 45 mz = rte_memzone_reserve("memzone", sizeof(int)*2, (gdb) s rte_memzone_reserve (name=0xba6358 "memzone", len=8, socket_id=-1, flags=0) at /data1/dpdk-19.11/lib/librte_eal/common/eal_common_memzone.c:240 240 return rte_memzone_reserve_thread_safe(name, len, socket_id, (gdb) s rte_memzone_reserve_thread_safe (name=0xba6358 "memzone", len=8, socket_id=-1, flags=0, align=128, bound=0) at /data1/dpdk-19.11/lib/librte_eal/common/eal_common_memzone.c:192 192 const struct rte_memzone *mz = NULL; (gdb) list 187 static const struct rte_memzone * 188 rte_memzone_reserve_thread_safe(const char *name, size_t len, int socket_id, 189 unsigned int flags, unsigned int align, unsigned int bound) 190 { 191 struct rte_mem_config *mcfg; 192 const struct rte_memzone *mz = NULL; 193 194 /* get pointer to global configuration */ 195 mcfg = rte_eal_get_configuration()->mem_config; 196 (gdb) n 195 mcfg = rte_eal_get_configuration()->mem_config; (gdb) p *mcfg Cannot access memory at address 0xfffffffff380 (gdb) n 197 rte_rwlock_write_lock(&mcfg->mlock); (gdb) p *mcfg $1 = {magic = 19820526, version = 319488099, nchannel = 0, nrank = 0, mlock = {cnt = 0}, qlock = {cnt = 0}, mplock = {cnt = 0}, tlock = {locked = 0}, memory_hotplug_lock = {cnt = 0}, memzones = { name = "memzone", '