Hello, While cleaning the System/Machine root types, I wondered what we actually want to store in memory_kB attributes. It looks obvious for Caches and NUMA nodes. But I am not sure about Machines and Systems.
If we have a machine with 2 NUMA nodes, should the machine memory size be the sum the sizes of both NUMA node sizes? Or should it be 0 since the machine has no memory except in NUMA nodes? Same question for a Kerrighed system assembling 2 machines. Then, if we have 1 Misc object grouping some NUMA nodes that are close to each other: Should we store the total memory size of these nodes in the Misc object attribute as well? We have the total memory size in the NUMA node object (below misc) and in the machine object (above misc), why not in Misc too? I am not saying that I want it, I am saying that it's not very consistent. So I wonder if we should just not sum anymore and let the application do the math when it actually needs the sum. A quick helper with get_next_obj_by_type( ... NODE) would work. Or we need to document memory size attributes better: * NUMA node: set of memory that can be accessed with the same access time from other objects * machine: set of cache-coherent memory, can be made of multiple NUMA nodes * system: set of memory that is virtually accessible, but may not be cache-coherent Brice