Re: [PATCH] EDAC: Expose node link in sysfs if CONFIG_NUMA
From: Yajun Deng
Date: Tue May 16 2023 - 07:59:18 EST
May 16, 2023 7:19 PM, "Borislav Petkov" <bp@xxxxxxxxx> wrote:
> On Tue, May 16, 2023 at 11:07:11AM +0000, Yajun Deng wrote:
>
>> It will help users to confirm which MC belongs to which node if there
>> are multiple MCs. Therefore, we can also know how many dimm on each
>> node.
>
> There are physical nodes, logical nodes, NUMA nodes, interleaving
> between nodes...
>
Node is the NUMA node, We get the numa id by calling dev_to_node().
> Is there any practical use case and need behind this?
>
Some dimm may not be recognized when boot, we want to find it.
The '/sys/devices/system/node/node0/meminfo' would show the memory on
node0.
If we have '/sys/devices/system/node/node0/mc0', by comparing the number
of dimm and MemTotal in meminfo. It is easy to know that the dimm didn't
recognized whether it belonged to this NUMA node or not.
> --
> Regards/Gruss,
> Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette