re-added lkml cc
Tim Hockin wrote:
> Take another example: ECC. I'd love to spit out ECC messages in a
> standard way. I've got some code in devel to do better ECC handling. But
> you have to spit out the CPU and the address, at least, and possibly more.
Well, time for /sys/devices/memory/memory<n>/. That would perhaps also
be suitable for numa which want to know which memory module is near
which cpu. So you could have symbolic links in /sys/devices/cpu/cpu<n>
to the corresponding memory modules.
Jan
Jan wrote:
> Well, time for /sys/devices/memory/memory<n>/. That would perhaps also
> be suitable for numa which want to know which memory module is near
> which cpu.
Don't we already have something like that. On an SN2 near me at this
time, running 2.6.9-rc1-mm4:
# pwd
/sys/devices/system/node/node0
# ls -lt cpu? | cut -c33-
0 Sep 15 00:50 cpu0 -> ../../../../devices/system/cpu/cpu0
0 Sep 15 00:50 cpu1 -> ../../../../devices/system/cpu/cpu1
This tells me that CPUs 0 and 1 are on node 0.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.650.933.1373
Paul Jackson wrote:
> Jan wrote:
>
>>Well, time for /sys/devices/memory/memory<n>/. That would perhaps also
>>be suitable for numa which want to know which memory module is near
>>which cpu.
>
>
> Don't we already have something like that. On an SN2 near me at this
> time, running 2.6.9-rc1-mm4:
>
> # pwd
> /sys/devices/system/node/node0
>
> # ls -lt cpu? | cut -c33-
> 0 Sep 15 00:50 cpu0 -> ../../../../devices/system/cpu/cpu0
> 0 Sep 15 00:50 cpu1 -> ../../../../devices/system/cpu/cpu1
>
> This tells me that CPUs 0 and 1 are on node 0.
And how do you know which memory modules are near cpu0 and 1 ?
Is there already a devices/system/memory/ thing which also gets linked
from the node0 directory?
(Sorry, no SN2 to check handy ;-) )
Jan
Jan wrote:
> And how do you know which memory modules are near cpu0 and 1 ?
So far as the current code is concerned, "memory" and "node" are synonyms.
Notice for example the files such as:
/sys/devices/system/node/node0/meminfo
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.650.933.1373