Skip to contentSkip to conversation

Background memory scrubbing

DISCUSSION Robert Whitton 3 participants 3 messages Apr 20, 2011 – Apr 25, 2011 Memory management

lore
Share & tools
lore
#0 lore raw
Quoted 13 lines · Clemens Ladisch
Quoted 10 lines
Quoted 4 lines

Unfortunately in common with a large number of hardware platforms background scrubbing isn't supported in the hardware (even though ECC error correction is supported) and thus there is no BIOS option to enable it.

Which hardware platform is this? AFAICT all architectures with ECC (old AMD64, Family 0Fh, Family 10h) also have scrubbing support. If your BIOS is too dumb, just try enabling it directly (bits 0-4 of PCI configuration register 0x58 in function 3 of the CPU's northbridge device, see the BIOS and Kernel's Developer's Guide for details).

Quoted 12 lines

Or even better, if on AMD, you can build the amd64_edac module (CONFIG_EDAC_AMD64) and do

echo > /sys/devices/system/edac/mc/mc/sdram_scrub_rate

where x is the scrubbing bandwidth in bytes/sec and y is the memory controller on the machine, i.e. node.

Signature · 2 lines
Regards/Gruss,
Boris.

Unfortunately that also isn't an option on my platform(s). There surely must be a way for a module to be able to get a mapping for each physical page of memory in the system and to be able to use that mapping to do atomic read/writes to scrub the memory.

#1 lore raw
Quoted 16 lines · Robert Whitton
Quoted 16 lines · Clemens Ladisch
Quoted 10 lines
Quoted 4 lines

Unfortunately in common with a large number of hardware platforms background scrubbing isn't supported in the hardware (even though ECC error correction is supported) and thus there is no BIOS option to enable it.

Which hardware platform is this? AFAICT all architectures with ECC (old AMD64, Family 0Fh, Family 10h) also have scrubbing support. If your BIOS is too dumb, just try enabling it directly (bits 0-4 of PCI configuration register 0x58 in function 3 of the CPU's northbridge device, see the BIOS and Kernel's Developer's Guide for details).

Or even better, if on AMD, you can build the amd64_edac module (CONFIG_EDAC_AMD64) and do

Quoted 6 lines
Quoted 4 lines

echo > /sys/devices/system/edac/mc/mc/sdram_scrub_rate

where x is the scrubbing bandwidth in bytes/sec and y is the memory controller on the machine, i.e. node.

Unfortunately that also isn't an option on my platform(s). There surely must be a way for a module to be able to get a mapping for each physical page of memory in the system and to be able to use that mapping to do atomic read/writes to scrub the memory.

For such questions I've added just the right ML to Cc :).

Signature · 15 lines
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#2 lore raw
Quoted 17 lines · Borislav Petkov
Quoted 16 lines · Robert Whitton
Quoted 16 lines · Clemens Ladisch
Quoted 10 lines
Quoted 4 lines

Unfortunately in common with a large number of hardware platforms background scrubbing isn't supported in the hardware (even though ECC error correction is supported) and thus there is no BIOS option to enable it.

Which hardware platform is this? AFAICT all architectures with ECC (old AMD64, Family 0Fh, Family 10h) also have scrubbing support. If your BIOS is too dumb, just try enabling it directly (bits 0-4 of PCI configuration register 0x58 in function 3 of the CPU's northbridge device, see the BIOS and Kernel's Developer's Guide for details).

Or even better, if on AMD, you can build the amd64_edac module (CONFIG_EDAC_AMD64) and do

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

echo > /sys/devices/system/edac/mc/mc/sdram_scrub_rate

where x is the scrubbing bandwidth in bytes/sec and y is the memory controller on the machine, i.e. node.

Unfortunately that also isn't an option on my platform(s). There surely must be a way for a module to be able to get a mapping for each physical page of memory in the system and to be able to use that mapping to do atomic read/writes to scrub the memory.

For such questions I've added just the right ML to Cc :).

There was a thread back in 2009 cwith the subject "marching through all physical memory in software" that discussed some of the issues of a software background scrub.

Chris

Signature · 12 lines
Chris Friesen
Software Developer
GENBAND
[email protected]
www.genband.com

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>