Journaling vs. Soft Updates Chris Stein Harvard University June - - PowerPoint PPT Presentation

journaling vs soft updates
SMART_READER_LITE
LIVE PREVIEW

Journaling vs. Soft Updates Chris Stein Harvard University June - - PowerPoint PPT Presentation

Journaling vs. Soft Updates Chris Stein Harvard University June 21, 2000 joint work with Margo Seltzer , Greg Ganger * , Kirk McKusick , Keith Smith , and Craig Soules * Harvard University , * Carnegie Mellon University ,


slide-1
SLIDE 1

Journaling vs. Soft Updates

joint work with Margo Seltzer†, Greg Ganger*, Kirk McKusick ‡, Keith Smith†, and Craig Soules*

Chris Stein Harvard University June 21, 2000

† Harvard University, *Carnegie Mellon University, ‡Author and Consultant

slide-2
SLIDE 2

Talk Outline

  • The Problem:

– Meta-data consistency in file systems

  • Two solutions:

– Journaling and Soft Updates

  • Evaluation
  • Conclusions
slide-3
SLIDE 3

Meta-Data Update Problem

  • The file system meta-data contains inodes, directory

blocks, and allocation bitmaps with interdependencies that must be cared for during disk updates.

Directory block

motd

Block containing Inode 51

51

Memory Disk write

Disk inode 51 pointing to Top Secret File

slide-4
SLIDE 4

Approaches to Meta-Data Management

  • Synchronous Writes

– FFS

  • Ordered Writes

– Soft Updates

  • Logged Writes

– Journaling

slide-5
SLIDE 5

Properties of Meta-Data Ops

  • Integrity:

– The file system is always recoverable.

  • Durability:

– Updates are persistent once the call returns.

  • Atomicity:

– No partial meta-data operations are visible after recovery.

slide-6
SLIDE 6

Soft Updates Overview

  • Implementation:

– Delayed meta-data writes. – Kernel maintains dependency information and uses it to order writes.

  • Properties:

– Meta-data operations are not durable or atomic. – Looser guarantees than FFS about when updates will reach disk. – No recovery necessary after a crash.

slide-7
SLIDE 7

Journaling Overview

  • Implementation:

– Log logical meta-data operations. – Write meta-data in-place asynchronously. – Write-ahead logging (WAL) protocol guarantees recoverability.

  • Properties:

– Log is scanned for recovery. – Meta-data operations are atomic. – Durability can be toggled on/off.

slide-8
SLIDE 8

Feature Comparison

may be impossible

FFS-async

immediate

X Soft Updates

log-based (seconds)

X X Async Journaling

log-based (seconds)

X X X Sync Journaling

fsck disk scan (minutes)

X X FFS Recovery

Integrity Durability Atomicity

slide-9
SLIDE 9

Experimental Setup

  • Software:

– Modified FreeBSD kernel. Taken from the current tree on Jan. 26th, 2000. – 2 journaling file system implementations (LFFS-WAFS, LFFS-file).

  • Hardware:

– 500 MHz Xeon Pentium III – 512 MB RAM – 3 x 9GB 10,000 RPM Seagate Cheetahs

slide-10
SLIDE 10

Microbenchmarks

  • Create, Write, Read, Delete.
  • Results

– Read/write performance identical for all systems. – All async systems have similar create throughput. – Soft Updates has great delete performance due to its ability to background work.

slide-11
SLIDE 11

Macrobenchmarks

  • SSH-build

– Unpacks, configures, and builds ssh.

  • NetNews

– Simulates the work of a news server.

  • SDET

– Emulates user interactive software development workload.

  • PostMark

– Designed to model the workload seen by ISPs under heavy

  • load. Combination of e-mail, news, and e-commerce

transactions.

slide-12
SLIDE 12

NetNews

  • Simulates the work of a news server.
  • Tremendous load, both in terms of the

amount of data and the number of meta-data

  • perations.
slide-13
SLIDE 13

NetNews: Results

0.2 0.4 0.6 0.8 1 1.2

Throughput Relative to FFS-async Soft Updates Journaling FFS

slide-14
SLIDE 14

PostMark

  • Designed to model the workload seen by

ISPs under heavy load.

  • Simulates a combination of e-mail, news, and

e-commerce transactions.

  • Different results for small and large file sets.
slide-15
SLIDE 15

PostMark: Results

0.2 0.4 0.6 0.8 1 1.2

Throughput Relative to FFS-async Soft Updates Journaling FFS

slide-16
SLIDE 16

Conclusions

  • Durability is expensive, integrity need

not be.

  • Configuration changes can have a

significant impact on performance, with no change in features.