[dpdk-dev] compile error

2017-10-23 Thread liupan1234
Hi All, I met an error when compile dpdk 17.08 with cmdline: make config T=x86_64-native-linuxapp-gcc && make EXTRA_CFLAGS="-fPIC" && make install an error: bad value (native) for -march= switch do you know why? my gcc version is 4.8.5

[dpdk-dev] shared memory statistic

2017-12-14 Thread liupan1234
Hi all, I have an urgent question: 1) when an app runs, how to get the really memory it used in real time? for example, it use -m param to specify 1G memory, but it only used 500 MB, how to get this info 2) When several apps runs with shared memory: shm 0, is there any method to get the memo

[dpdk-dev] how to iterator all malloc_elem of a malloc_heap

2017-12-16 Thread liupan1234
Hi All, struct malloc_heap { rte_spinlock_t lock; LIST_HEAD(, malloc_elem) free_head[RTE_HEAP_NUM_FREELISTS]; unsigned alloc_count; size_t total_size; } __rte_cache_aligned; I found there are free list of one malloc heap, it there any way to get used list? I wan