问题原文
原帖链接 · Learner · CC BY-SA 4.0
Just as in the title. I was unable to find reliable information about dirty blocks in software RAID, but I heard this term many times.
Is it bad to have many dirty blocks? How to check the amount of dirty blocks? Why are they appearing/being created in the system?
已采纳解答
原帖链接 · shodanshok · CC BY-SA 4.0
You are probably conflating two different concepts:
dirty pages are the modified memory pages which have to be written to stable storage. For example, when you write something under linux (ie:
cp /etc/services /etc/testfile) you do not immediately hit the physical disks; rather, the linux pagecache keep track of which memory areas were dirtied and writes out them later;dirty blocks are the blocks that a mirror leg need to resync from its peer (ie: the other mirror leg). In modern RAID1/mirroring implementation, when a disk temporarily fails out of the array but it is then re-added, it often does not need to completely resync from the other disk; rather, a dirty block tracking mechanism exists to allow selective re-sync of changed areas only.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
