lkml.org 
[lkml]   [2008]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] vmallocinfo: Add NUMA informations
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

\
 
 \ /
  Last update: 2008-06-04 17:37    [from the cache]
©2003-2011 Jasper Spaans