From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 966E0A0562; Fri, 3 Apr 2020 18:08:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 767771C1EE; Fri, 3 Apr 2020 18:08:58 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id DAADC1C1DE for ; Fri, 3 Apr 2020 18:08:56 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id c138so3701065pfc.0 for ; Fri, 03 Apr 2020 09:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0zPA7Q5wsjlQCIOKCRoYKMZrPL23f8VXfLeT7/1F300=; b=U/ERq2IrtPzrqj3rt6cUdp2MFQYUVdtjxFmjeDJdCKAy8wUpPvLKb2UzrgON+kzuZS ZgS3OLqKsSDbcKnnr67Dec2s6B1vtYCEt7KtF5SYMoSmlxSQdoG9CFBPJrwfzrotkFhf +bdS9q25kt9yrwk0NcoJP7ju9aEkEY7tNKIoo65IgsD+SG1EDQkAB8brDPWcvrwZnY7A 7+hvhp+v6HtglTVhkg4hjvGbjIwZK8DZh9Bf1//ShuRdfrO3ROal8AqA14g2axtkHjkQ mejZuGAEyIOxcSk4PmckunIMPhNUxWHYc3wXFDfHkE5Ykv5WhZ57EJNRO6ZwDvyuWT+v TZwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0zPA7Q5wsjlQCIOKCRoYKMZrPL23f8VXfLeT7/1F300=; b=Sj3Z7b1kSXK0o/kmevzmajAgPJ6K6hp3tFhp8g2C/VnjQH00OxQFq6UH/st+TixPah 6h3IL5L3emA5vQMHwKikAi0lf+Y/pG4YC6eGu6gaWMH+2LF24e/7jPIvAtOjG+nsR9zz DlMbiv1ARZypRwp9zivSlSwpSHrXef4Uz6PgYoMuE4qpGcR0xNIUkrWdgGiTMvehOvjp VhNEfEB4b+b92nbjIb+fTLDwDOKn5fmxtsstR4HmxHtmWIq65Zu63MvmckRp4D3yBj59 +AUqfSEHWEaa4rF58TeXQX66HQAWoNVne7/Wop/MZ7TxlYfWUnI2qhbrG4ysN5ikh/c9 h8QQ== X-Gm-Message-State: AGi0PuYwTvLTtsKgBJ8Ki3PHVUbsPy6zFn5jFt3zY6seGcGaNmc6JfBp 4p0uX3RvzwxG46c4e5BRgmR4cg== X-Google-Smtp-Source: APiQypLKJYrlmae6LByy6nKIAg3o7Dz0giOXgiJ+0T5IDAl0YNM2/d/IOvJRCfNkC3S+F1ezpz932A== X-Received: by 2002:a62:760e:: with SMTP id r14mr9006058pfc.51.1585930136090; Fri, 03 Apr 2020 09:08:56 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id w205sm6053288pfc.75.2020.04.03.09.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 09:08:55 -0700 (PDT) Date: Fri, 3 Apr 2020 09:08:52 -0700 From: Stephen Hemminger To: Ferruh Yigit Cc: Xueming Li , Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , Anatoly Burakov , dev@dpdk.org, Asaf Penso Message-ID: <20200403090852.29db0d1b@hermes.lan> In-Reply-To: <9b130a91-7d0d-ba3d-a521-64829e34a28c@intel.com> References: <1585832629-4959-1-git-send-email-xuemingl@mellanox.com> <1585896791-2736-2-git-send-email-xuemingl@mellanox.com> <9b130a91-7d0d-ba3d-a521-64829e34a28c@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1] app/testpmd: add memory dump command X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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_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.