BSDCan2010 - Final Release
BSDCan 2010
The Technical BSD Conference
Speakers | |
---|---|
Kirk McKusick |
Schedule | |
---|---|
Day | Talks - 2 - 2010-05-14 |
Room | DMS 1160 |
Start time | 15:00 |
Duration | 01:00 |
Info | |
ID | 195 |
Event type | Lecture |
Track | Hacking |
Language used for presentation | English |
Journaled Soft-Updates
Adding "journaling lite'' to soft updates and its incorporation into the FreeBSD fast filesystem
Because soft updates prevent most inconsistencies, the journaling need only deal with tracking those inconsistencies that soft updates fails to address. Specifically, the journal contains the information needed to recover the block and inode resources that have been freed but whose freed status failed to make it to disk before a system failure. After a crash, a variant of the venerable fsck program runs through the journal to identify and free the lost resources. Only if a corruption of the log is detected is it necessary to run background fsck. The journal is tiny, 16Mb is usually enough independent of filesystem size. Although journal processing needs to be done before restarting, the processing time is typically just a few seconds and in the worst case a minute. It is not necessary to build a new filesystem to use soft-updates journalling. The addition or deletion of soft-updates journaling to existing FreeBSD fast filesystems is done using the tunefs program.