Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752198AbZIAEx5 (ORCPT ); Tue, 1 Sep 2009 00:53:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751105AbZIAEx5 (ORCPT ); Tue, 1 Sep 2009 00:53:57 -0400 Received: from wa-out-1112.google.com ([209.85.146.181]:29560 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091AbZIAEx4 (ORCPT ); Tue, 1 Sep 2009 00:53:56 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=uQz+JF4hdGQZQIO1WE8p76X8S68Mvkta8fwhQKRVaZqiz+VktSrJBesi+QtguE0k34 kGAInaZ/rI0VA1uvBae0vCZpyKwcovcC7RPtC3hwVnSJhtZzDUPXbovw5HZP2ddY7ips 2+2Sbi6DF6w8Azw0IzGJ57XZRiM3Z9qvLep8A= Date: Tue, 1 Sep 2009 13:53:21 +0900 From: Minchan Kim To: Andrew Morton Cc: linux-mm , lkml , KAMEZAWA Hiroyuki , KOSAKI Motohiro Subject: [PATCH mmotm] Fix NUMA accounting in numastat.txt Message-Id: <20090901135321.f0da4715.minchan.kim@barrios-desktop> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.16.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2012 Lines: 62 In Documentation/numastat.txt, it confused me. For example, there are nodes [0,1] in system. barrios:~$ cat /proc/zoneinfo | egrep 'numa|zone' Node 0, zone DMA numa_hit 33226 numa_miss 1739 numa_foreign 27978 .. .. Node 1, zone DMA numa_hit 307 numa_miss 46900 numa_foreign 0 1) In node 0, NUMA_MISS means it wanted to allocate page in node 1 but ended up with page in node 0 2) In node 0, NUMA_FOREIGN means it wanted to allocate page in node 0 but ended up with page from Node 1. But now, numastat explains it oppositely about (MISS, FOREIGN). Let's fix up with viewpoint of zone. Signed-off-by: Minchan Kim --- Documentation/numastat.txt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/numastat.txt b/Documentation/numastat.txt index 80133ac..9fcc9a6 100644 --- a/Documentation/numastat.txt +++ b/Documentation/numastat.txt @@ -7,10 +7,10 @@ All units are pages. Hugepages have separate counters. numa_hit A process wanted to allocate memory from this node, and succeeded. -numa_miss A process wanted to allocate memory from this node, - but ended up with memory from another. -numa_foreign A process wanted to allocate on another node, - but ended up with memory from this one. +numa_miss A process wanted to allocate memory from another node, + but ended up with memory from this node. +numa_foreign A process wanted to allocate on this node, + but ended up with memory from another one. local_node A process ran on this node and got memory from it. other_node A process ran on this node and got memory from another node. interleave_hit Interleaving wanted to allocate from this node -- 1.5.4.3 -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/