Matthew Dobson wrote: > Matthew Dobson wrote: >> Matthew Dobson wrote: >> >>> >>> Linus, >>> This series of patches creates a directory-based Topology in >>> sysfs (driverfs). This includes the per-node meminfo patch you >>> wanted, as well as UP/SMP/NUMA topology. >>> There were discussions between myself, Andrew, Rusty, and >>> Patrick, and these are what we agreed on. >>> >>> (1/5) Core sysfs Topology: >>> This patch creates the generic structures that are (will be) >>> embedded in the per-arch structures. Also creates calls to >>> register these generic structures (CPUs, MemBlks, & Nodes). >>> >>> Note that without arch-specific structures in which to embed >>> these structures, and an arch-specific initialization routine, >>> these functions/structures remain unused. >>> >>> (2/5) i386 sysfs Topology >>> This patch creates the i386 specific files/functions/structures >>> to implement driverfs Topology. These structures have the >>> generic CPU/MemBlk/Node structures embedded in them. >>> >>> This patch also creates the arch-specific initialization routine >>> to instantiate the topology. >>> >>> (3/5) per-node (NUMA) meminfo for sysfs Topology >>> This patch adds code to DriverFS Topology to expose per-node >>> memory statistics. >>> This information is exposed via the nodeX/meminfo file. >>> >>> The patch also adds 2 helper functions to gather per-node memory >>> info. >>> >>> (4/5) memblk_online_map >>> This patch creates a memblk_online_map, much like >>> cpu_online_map. It also creates the standard helper functions, >>> ie: memblk_online(), num_online_memblks(), memblk_set_online(), >>> memblk_set_offline(). >>> >>> This is used by driverFS topology to keep track of which memory >>> blocks are in the system and online. >>> >>> (5/5) node_online_map >>> This patch creates a node_online_map, much like cpu_online_map. >>> It also creates the standard helper functions, ie: >>> node_online(), num_online_nodes(), node_set_online(), >>> node_set_offline(). >>> >>> This is used by driverFS topology to keep track of which Nodes >>> are in the system and online. >>> >>> Cheers! >>> >>> -Matt