[dpdk-dev] [PATCH v1] app/testpmd: add memory dump command
Stephen Hemminger
stephen at networkplumber.org
Fri Apr 3 18:08:52 CEST 2020
On Fri, 3 Apr 2020 14:29:06 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:
> > + socket_stats.heap_totalsz_bytes / 1.0e6,
> > + socket_stats.heap_allocsz_bytes / 1.0e6,
> > + (double)socket_stats.heap_allocsz_bytes * 100 /
> > + (double)socket_stats.heap_totalsz_bytes,
> > + socket_stats.heap_freesz_bytes / 1.0e6,
> > + socket_stats.alloc_count,
> > + socket_stats.free_count);
>
> This gives an output like [1], can you please divide to (1024*1024) to convert
> byte to Mb, than it can give more clear numbers.
Agree, the standard is to use 1024*1024 for memory megabytes.
And 1000*1000 for bytes in networking.
More information about the dev
mailing list