Re: [dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-03 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Friday, April 3, 2020 6:09 PM > > On Fri, 3 Apr 2020 14:29:06 +0100 > Ferruh Yigit wrote: > > > > + socket_stats.heap_totalsz_bytes / 1.0e6, > > > + socket_stats.heap_allocsz_bytes /

Re: [dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-03 Thread Stephen Hemminger
On Fri, 3 Apr 2020 14:29:06 +0100 Ferruh Yigit wrote: > > + socket_stats.heap_totalsz_bytes / 1.0e6, > > + socket_stats.heap_allocsz_bytes / 1.0e6, > > + (double)socket_stats.heap_allocsz_bytes * 100 / > > + (double)socket_st

Re: [dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-03 Thread Stephen Hemminger
On Fri, 3 Apr 2020 14:29:06 +0100 Ferruh Yigit wrote: > > + int64_t total = 0; > > + int64_t alloc = 0; > > + int64_t free = 0; Should be unsigned (ie uint64_t)

Re: [dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-03 Thread Ferruh Yigit
On 4/3/2020 7:53 AM, Xueming Li wrote: > Introduce new command to dump memory statistics of each socket, > summary, also show changes since last call. > > Usage: > dump_socket > > Signed-off-by: Xueming Li > --- > app/test-pmd/cmdline.c | 52 > +

[dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-02 Thread Xueming Li
Introduce new command to dump memory statistics of each socket, summary, also show changes since last call. Usage: dump_socket Signed-off-by: Xueming Li --- app/test-pmd/cmdline.c | 52 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 6

[dpdk-dev] [PATCH v1] app/testpmd: add memory dump command

2020-04-02 Thread Xueming Li
v0: initial version v1: update user guide Xueming Li (1): app/testpmd: add memory dump command app/test-pmd/cmdline.c | 52 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 6 2 files changed, 58 insertions(+) -- 1.8.3.1