Skip to content

Commit 5cfa61d

Browse files
committed
btrfs-progs: docs: update memory related problems
Inspired by https://www.reddit.com/r/btrfs/comments/1bkdewb/btrfs_errors_in_dmesg/ . [ci skip] Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 2c99d80 commit 5cfa61d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Documentation/ch-hardware-considerations.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,21 @@ have been demonstrated (*rowhammer*) achieving specific bits to be flipped.
118118
While these were targeted, this shows that a series of reads or writes can
119119
affect unrelated parts of memory.
120120

121+
Block group profiles with redundancy (like RAID1) will not protect against
122+
memory errors as the blocks are first stored in memory before they are written
123+
to the devices from the same source.
124+
125+
A filesystem mounted read-only will not affect the underlying block device in
126+
almost 100% (with highly unlikely exceptions). The exception is a tree-log that
127+
needs to be replayed during mount (and before the read-only mount takes place),
128+
working memory is needed for that and that can be affected by bit flips.
129+
There's a theoretical case where bit flip changes the filesystem status from
130+
read-only to read-write.
131+
121132
Further reading:
122133

123134
* https://en.wikipedia.org/wiki/Row_hammer
135+
* memory overclocking, XMP, potential risks
124136

125137
What to do:
126138

@@ -129,6 +141,9 @@ What to do:
129141
* memory errors may appear as filesystem going read-only due to "pre write"
130142
check, that verify meta data before they get written but fail some basic
131143
consistency checks
144+
* newly built systems should be tested before being put to production use,
145+
ideally start a IO/CPU load that will be run on such system later; namely
146+
systems that will utilize overclocking or special performance features
132147

133148
Direct memory access (DMA)
134149
^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)