From: Randy Dunlap <randy.dunlap@oracle.com>
To: Eric Dumazet <dada1@cosmosbay.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
kosaki.motohiro@jp.fujitsu.com, clameter@sgi.com,
nickpiggin@yahoo.com.au, hugh@veritas.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vmallocinfo: Add NUMA informations
Date: Wed, 4 Jun 2008 08:33:18 -0700 [thread overview]
Message-ID: <20080604083318.792fc5ba.randy.dunlap@oracle.com> (raw)
In-Reply-To: <4846AE30.8000302@cosmosbay.com>
On Wed, 04 Jun 2008 17:01:04 +0200 Eric Dumazet wrote:
> Here is an updated patch.
>
> It now allocates the array in vmalloc_open().
> If this allocation fails, we just proceed and dont provide NUMA information.
>
> I included missing documentation for /proc/vmallocinfo as well.
>
>
> [PATCH] vmallocinfo: Add NUMA informations
>
> Christoph recently added /proc/vmallocinfo file to get information about vmalloc allocations.
>
> This patch adds NUMA specific information, giving number of pages allocated on each memory node.
>
> This should help to check that vmalloc() is able to respect NUMA policies.
>
> Example of output on a four nodes machine (one cpu per node)
>
> 1) network hash tables are evenly spreaded on four nodes (OK)
> (Same point for inodes and dentries hash tables)
> 2) iptables tables (x_tables) are correctly allocated on each cpu node (OK).
> 3) sys_swapon() allocates its memory from one node only.
> 4) each loaded module is using memory on one node.
>
> Sysadmins could tune their setup to change points 3) and 4) if necessary.
>
> grep "pages=" /proc/vmallocinfo
> [snip]
>
> Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
> ---
> Documentation/filesystems/proc.txt | 44 +++++++++++++++++++++++++++
> fs/proc/proc_misc.c | 15 +++++++--
> mm/vmalloc.c | 20 ++++++++++++
> 3 files changed, 77 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
> index dbc3c6a..b707d9a 100644
> --- a/Documentation/filesystems/proc.txt
> +++ b/Documentation/filesystems/proc.txt
> @@ -296,6 +296,7 @@ Table 1-4: Kernel info in /proc
> uptime System uptime
> version Kernel version
> video bttv info of video resources (2.4)
> + vmallocinfo Show vmalloced areas
> ..............................................................................
>
> You can, for example, check which interrupts are currently in use and what
> @@ -550,6 +551,49 @@ VmallocTotal: total size of vmalloc memory area
> VmallocUsed: amount of vmalloc area which is used
> VmallocChunk: largest contigious block of vmalloc area which is free
>
> +..............................................................................
> +
> +vmallocinfo:
> +
> +Provides information about vmalloced/vmaped areas. One line per area,
> +containing the virtual address range of the area, size in bytes,
> +caller information of the creator, and optional informations depending
s/informations/information/
> +on the kind of area :
> +
> + pages=nr number of pages
> + phys=addr if a physical address was specified
> + ioremap I/O mapping (ioremap() and friends)
> + vmalloc vmalloc() area
> + vmap vmap()ed pages
> + user VM_USERMAP area
> + vpages buffer for pages pointers was vmalloced (huge area)
> + N<node>=nr (Only on NUMA kernels)
> + Number of pages allocated on memory node <node>
---
~Randy
next prev parent reply other threads:[~2008-06-04 15:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-02 6:54 [PATCH] vmallocinfo: Add NUMA informations Eric Dumazet
2008-06-02 7:09 ` KOSAKI Motohiro
2008-06-03 3:37 ` Eric Dumazet
2008-06-03 4:35 ` KOSAKI Motohiro
2008-06-09 14:14 ` Christoph Lameter
2008-06-03 21:40 ` Andrew Morton
2008-06-04 15:01 ` Eric Dumazet
2008-06-04 15:33 ` Randy Dunlap [this message]
2008-06-09 14:19 ` Christoph Lameter
2008-06-09 14:16 ` Christoph Lameter
2008-06-09 21:05 ` Andrew Morton
2008-06-09 21:12 ` Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080604083318.792fc5ba.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=dada1@cosmosbay.com \
--cc=hugh@veritas.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox