the full path to martin farach-colton, william jannen, rob ...€¦ · the full path to full-path...

63
The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin Farach-Colton, William Jannen, Rob Johnson, Donald E. Porter, Jun Yuan

Upload: others

Post on 17-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

The Full Path to Full-Path Indexing

Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin Farach-Colton, William Jannen, Rob Johnson, Donald E. Porter, Jun Yuan

Page 2: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Talk Overview▪ What is full-path indexing and its benefits?

• locality▪ What are the challenges?

• renames▪ How do we overcome them?

• data structure techniques: tree surgery and lifting

Page 3: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Conventional file systems use inodes/

foo

bar

var

A

B

C

D

E

data of D...

...

...data of C

data of A

...data of E

...data of B

disk...

worst case: no relation between the logical and physical locations

Page 4: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Inode file systems show no locality in the worst case/

foo

bar

var

A

B

C

D

E

data of D...

...

...data of C

data of A

...data of E

...data of B

disk...

read all files under /foo

data of D

data of C

data of E

multiple random IOs

Page 5: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Full-path indexing file systems use full-paths▪ Full-path indexing file systems index metadata and

data in key-value stores using full-paths

Page 6: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Full-path indexing file systems use full-paths/

foo

bar

var

A

B

C

D

E

disk

logically related things are physically related

.../A: data/bar/B: data/foo/C: data/foo/var/D: data

.../foo/var/E: data

Page 7: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Full-path file systems ensure locality/

foo

bar

var

A

B

C

D

E

disk

read all files under /foo

one large IO

.../A: data/bar/B: data/foo/C: data/foo/var/D: data

.../foo/var/E: data

/foo/C: data/foo/var/D: data/foo/var/E: data

Page 8: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Scans are fast in full-path file systems

40

ext4 btrfs BetrFS-FPxfs zfs

seco

nds

Time to grep the linux source directory (lower is better)

full-path file systems are 3.3x faster than other file systems

60

20

0

Page 9: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Talk Overview▪ What is full-path indexing and its benefits?

• locality▪ What are the challenges?

• renames▪ How do we overcome them?

• data structure techniques: tree surgery and lifting

Page 10: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Renames are cheap in inode file systems/

foo

bar

var

A

B

C

D

E

data of D...

...

...data of C

data of A

...data of E

...data of B

disk...

rename /foo/var to /bar/var

one pointer swing

Page 11: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Renames are cheap in inode file systems/

foo

bar

var

A

B

C

D

E

data of D...

...

...data of C

data of A

...data of E

...data of B

disk...

rename /foo/var to /bar/var

no change

Page 12: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Renames seem expensive with full-path indexing/

foo

bar

var

A

B

C

D

E

.../A: data/bar/B: data/foo/C: data/foo/var/D: data

.../foo/var/E: data

disk

rename /foo/var to /bar/var

/foo/var/D: data/foo/var/E: data

need to maintain key order

Page 13: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Renames seem expensive with full-path indexing

.../A: data/bar/B: data/foo/C: data

...

/foo/var/D: data/foo/var/E: data

.../A: data/bar/B: data

/foo/C: data...

/bar/var/D: data/bar/var/E: data

1. move kv pairs2. change key prefixes

Expensive when rename size is large

Page 14: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Renaming big files are slow in full-path file systems

Page 15: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Renaming big files are slow in full-path file systems

slow

Page 16: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Renaming big files are slow in full-path file systems

Rename the Linux source directory takes 20 seconds

slow

Page 17: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Inode vs. Full-path indexing

rename locality

inode file systems

full-path file systems

We want to get decent renames with good locality

Page 18: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ In FAST 2016, zoning was introduced to BetrFS▪ Zoning tries to get both locality and fast renames

Zoning tries to solve the rename problem

Page 19: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning Example/

foo

bar

var

A

B

C

D

E

full-path indexing within one zone

indirection between zones zone maintenance cost:a zone is too large: zone splita zone is too small: zone merge

Page 20: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning tries to achieve both fast renames and locality

small zones(inode file systems)

big zones(full-path file systems)

scan cost rename cost

sweet spot

Page 21: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning performance

rename locality other operations

zoning

Page 22: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning achieves cheap renames

Page 23: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning achieves cheap renames

big files form their own zones, renaming them is cheap

Page 24: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning performance

rename locality other operations

zoning

Page 25: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning has relatively good locality

0

20

40

60

ext4 btrfs BetrFS-FPxfs zfs

seco

nds

Time to grep the linux source directory (lower is better)

BetrFS-Zone

zoning is still 2.2x faster than other file systems, but 33% slower than full-path indexing

Page 26: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning performance

rename locality other operations

zoning

Page 27: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zone maintenance can be expensive

10k zone splits

50% drop

Page 28: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Zoning performance

rename locality other operations

zoning

Zoning is not the answer

Page 29: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Talk Overview▪ What is full-path indexing and its benefits?

• locality▪ What are the challenges?

• renames▪ How do we overcome them?

• data structure techniques: tree surgery and lifting

Page 30: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Moving is expensive in an array/

foo

bar

var

A

B

C

D

E

disk

.../A/bar/B/foo/C/foo/var/D

.../foo/var/E

Moving kv pairs looks hard in an array, but they are stored in a Bε-tree in BetrFS

Page 31: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Bε-trees sometimes allow easy movesCan be viewed as B-trees in this talk

/foo/var/D/foo/var/E

/foo/C

/bar/B

/A

leaves store kv pairs

/bar/B/foo/C

/A

interior nodes store pivots and pointers to children

Page 32: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Bε-trees sometimes allow easy moves

/foo/var/D/foo/var/E

/foo/C

/bar/B

/A

/bar/B/foo/C

/A

/foo/C

move /foo/C to /C

This move can be done by changing pivots and a pointer swing

/foo/var/E

Page 33: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Bε-trees sometimes allow easy moves

/foo/var/D/foo/var/E

/foo/C

/bar/B

/A

/bar/B/foo/C

/A

/foo/C

move /foo/C to /C

This move can be done by changing pivots and a pointer swing

/C

Problem 1: keys are not updated (should be /C)

/foo/var/E

Problem 2: not easy to move /foo/var/E

/C

Page 34: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ Two problems:• need to get an isolated subtree

▪ tree surgery in O(Bε-tree height) IOs• need to update keys

▪ lifting, no additional IO cost▪ The whole solution is called range-rename

A rename can be done by moving a subtree

Page 35: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery slices out an isolated subtree...

...

......

...

......

......

......

......

...

.........

...

.........

...

get a subtree of range (/redmin, /redmax)

completely in range

need to take care of fringe nodes

Page 36: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery slices out an isolated subtree...

...

......

...

......

......

......

......

...

.........

...

.........

...

get a subtree of range (/redmin, /redmax)

1. walk down the tree with min and max key

Page 37: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery slices out an isolated subtree...

...

......

...

......

......

......

......

...

.........

...

.........

...

get a subtree of range (/redmin, /redmax)

1. walk down the tree with min and max key

2. start node splits from leaves

Page 38: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery slices out an isolated subtree...

...

......

...

......

......

......

......

...

......

......

.........

...

get a subtree of range (/redmin, /redmax)

1. walk down the tree with min and max key

2. start node splits from leaves

3. keep splitting until two splits converge

Page 39: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery slices out an isolated subtree...

...

......

...

......

......

......

......

...

......

......

.........

...

get a subtree of range (/redmin, /redmax)

1. walk down the tree with min and max key

2. start node splits from leaves

3. keep splitting until two splits converge

Page 40: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery slices out an isolated subtree...

...

......

...

......

......

......

......

...

......

......

.........

...

get a subtree of range (/redmin, /redmax)

1. walk down the tree with min and max key

2. start node splits from leaves

3. keep splitting until two splits converge

we now have a isolated subtree

Page 41: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ Reasons:• to setup pivots for the source tree• POSIX allows renames to overwrite files

Tree surgery also slices at the destination

Page 42: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery finishes with a pointer swing

......

...

▪ rename /red to /blue

...

......

.........

...

...

......

...

Page 43: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery finishes with a pointer swing

......

...

▪ rename /red to /blue

...

......

.........

...

...

......

...

Page 44: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tree surgery completes in O(Bε-tree height) IOs...

...

......

...

......

......

......

......

...

.........

...

.........

...

most data: not touched

each subtree slicing go through two root-to-leaf path

Page 45: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ Revert the IO cost to O(subtree size)

▪ Solution: lifting to convert Bε-trees to lifted Bε-trees• prefix updates are free

Updating all keys in the subtree is expensive

Page 46: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Lifting lifts the common prefix of two pivots

/redmax

/orange/redmin

/yellow/red/v/red/e

/red/d/red/c

/red/x/red/w

/red/z/red/y

/red/b/red/a

......

...

......

Common_prefix(/redmin, /redmax) = /red

all keys in the subtree must have prefix /red, there is no need to store that

lift /red

Page 47: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Lifting lifts the common prefix of two pivots

/redmax

/orange/redmin

/yellow/v/e

/d/c

/x/w

/z/y

/b/a

......

...

......

lift /red

Search for /red/z

/red lifted, search for /z

/red lifted, search for /z

/red lifted, search for /z

Page 48: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Lifting lifts the common prefix of two pivots

/redmax

/orange/redmin

/yellow/v/e

/d/c

/x/w

/z/y

/b/a

......

...

......

lift /red

/bluemax

/aqua/bluemin

/orange

lift /blue

Page 49: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Lifting lifts the common prefix of two pivots

/blue/v/blue/e

/blue/d/blue/c

/blue/x/blue/w

/blue/z/blue/y

/blue/b/blue/a

......

...

......

/bluemax

/aqua/bluemin

/orange

lift /blue

all keys in the subtree are updated automatically after the pointer swing

Page 50: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ Lifting happens at all times▪ Cost of other operations:

• collect lifted parts along the root-to-leaf path• no additional IO

▪ Cost of maintaining key lifting• key lifting can only change in node splits/merges• no additional IO

Lifting does not introduce additional IOs

Page 51: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ Range-rename performs tree surgery• O(Bε-tree height) IOs

▪ Key/value pairs are stored in lifted Bε-trees• keys are updated after tree surgery without cost

Range-rename completes in O(Bε-tree height) IOs

Page 52: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Evaluation

other operations rename applications

range-rename

Page 53: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ Dell optilex destop• 4-core 3.4 GHz i7, 4 GB RAM• 7200 RPM 500 GB Seagate Barrcuda

Experimental Setup

Page 54: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Tokubench

no cliff

Range-rename doesn’t charge other operations as much as zoning

Page 55: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Evaluation

other operations rename applications

range-rename

Page 56: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Rename Throughput

Page 57: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Rename Throughput

In normal cases, range-rename can rename as fast as other file systems

Page 58: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Evaluation

other operations rename applications

range-rename

Page 59: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

IMAP benchmark

ext4 btrfs BetrFS-Zonexfs zfs BetrFS-RR

The throughput of 4 threads operating on the dovecot server (higher is better)

0

50

100

150

ops/

s

BetrFS-RR is 12% faster than BetrFS-Zone

Page 60: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

rsync benchmark

ext4 btrfs BetrFS-Zonexfs zfs BetrFS-RR0

20

40

MB

/s

The throughput of rsync to copy the linux directory (higher is better)

BetrFS-RR is 13% faster than BetrFS-Zone

BetrFS-RR is faster than BetrFS-Zone in application benchmarks

Page 61: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Evaluation

other operations rename applications

range-rename

Page 62: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

Evaluation

other operations rename applications

range-rename

● Lower taxes on non-rename operations○ A few regressions

● Worst case rename costs: logarithmic in size● Additional opportunities for range rename

in paper

Page 63: The Full Path to Martin Farach-Colton, William Jannen, Rob ...€¦ · The Full Path to Full-Path Indexing Yang Zhan, Alex Conway, Yizheng Jiao, Eric Knorr, Michael A. Bender, Martin

▪ BetrFS with range-rename• maintain full-path indexing• decent rename performance• no tradeoff: locality, rename and other operations

Conclusion

Web: betrfs.orgCode: https://github.com/oscarlab/betrfs

Email: [email protected]