On Wednesday November 9, carlos@xxxxxxxxxxxxxx wrote: > Hi, > > Is intent-logging for raid5 already in mainline or only in -mm? I > looked for it in 2.6.14 and found nothing... raid5 is in 2.6.14. raid6 and raid10 should be in 2.6.16. What did you look for? > > It seems that intent-logging accelerates synchronization by skipping > the blocks that have not changed since the array went out of sync. I'm not sure what you mean by 'went out of sync'. When an array is active and being written to, many stripes could be out-of-sync at any time, as writes have been started, but haven't completed yet. Intent logging record the intent to write somewhere before doing the write, and then clears the intent sometime after the write completes. After a crash, some intents will still be recorded, and only the stripes associated with these risk being out-of-sync, so only those need to be resynced. If you take a device out of an array, and then re-add it "--re-add", then recovery will only recover those blocks that have changed since the device was removed. > I'm > not sure but if this is correct I thought that another way to speed > re-sync would be to not sync the blocks that were written to the array > after it started, since they should be already up to date. Is there a > way to do this? Does intent-logging takes this into account? intent-logging does not try to take this into account. The chuck-size for intent logging is usually quite large. A single write it unlikely to completely update an intent-chuck, so would need to keep track of lots of recent writes to see if any collection of them completely cover any intent-chuck. The effort isn't worth it for the saving. NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html