> 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]