Re: [RFC] Linux memory error handling

From: Russ Anderson
Date: Mon Jun 20 2005 - 16:00:38 EST

Dave Hansen wrote:
> On Wed, 2005-06-15 at 16:27 -0500, Russ Anderson wrote:
> > How about /sys/devices/system/memory/dimmX with links in
> > /sys/devices/system/node/nodeX/ ? Does that sound better?
> Much better than /proc :)
> However, we're already using /sys/devices/system/memory/ for memory
> hotplug to represent Linux's view of memory, and which physical
> addresses it is currently using. I've thought about this before, and I
> think that we may want to have /sys/.../memory/hardware for the DIMM
> information and memory/logical for the memory hotplug controls.

Is there a standard for how to name hardware entries in
/sys/devices/system (or sysfs in general)? Seems like this
same general issue would apply to other hardware components,
cpus, nodes, etc.

> One other minor thing. You might want to think about referring to the
> pieces of memory as things other than DIMMs. On ppc64, for instance,
> the hypervisor hands off memory in sections called LMBs (logical memory
> blocks), and they're not directly related to any hardware DIMM. The
> same things will show up in other virtualized environments.

If we're talking about specific hardware entries, it seems like they
should be called what they are. If we're talking about abstractions,
a more abstract name seems in order. One of my concerns is mapping
failures back to hardware components, hence my bias for component names.
Would having /sys/.../memory/LMB on ppc64 to correspond to
/sys/.../memory/DIMM be a problem? RAM would be an alternative,
but that could be confused with /sys/block/ram. :-)

In general, I'm more concerned with getting the necessary functionality
in than what the specific entries are called, so I'll go along with
the consensus.

Russ Anderson, OS RAS/Partitioning Project Lead
SGI - Silicon Graphics Inc rja@xxxxxxx
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at