Top Banner
Hardware Acceleration for RAID5/6, Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017
27

Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Apr 12, 2018

Download

Documents

vunguyet
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Hardware Acceleration for RAID5/6,

Deduplication & Security for

parallel workloadsVikas Aggarwal

Storage Developer Conference Bangalore 2017

Page 2: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Team Members

• Venkatesh Bolla

• Achyutha Krishna

• Anil Reddy

Responsibilities: Storage software acceleration on OCTEON TX.

Page 3: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Outline

• RAID 5/6

• Deduplication

• Security

• Open Source Storage Applications

• OCTEON TX Acceleration blocks

• Accelerated Data Flow

• Observations

Page 4: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Offloading CPU intensive

operations• RAID6

• XOR

• Galois Field Multiplication

• Deduplication

• Fingerprint Generation

• Fingerprint Lookup

• Security

• Encryption/Decryption of Data Blocks

Page 5: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Open Source Storage Software

Offload Case Studies

RAID DEDUPLICATION SECURITY

MD RAID DM Dedup ecryptfs

DM RAID OpenZFS DM Crypt

btrFS btrFS

OpenDedup

Page 6: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Linux MD RAID

• Implements the following:

• RAID 0, 1, 5, 6

• MDRAID can offload following to hardware using

async_tx Linux offload infrastructure:

• memcpy

• XOR

• Galois Field Arithmetic

• Current Offload benefits the following RAID variants:

• RAID 5, 6

Page 7: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Linux DM-dedup

• Implements the following:

• 4KB block fingerprint

• Fingerprint to PBN(Physical block number) lookup

• LBN to PBN(Physical block number) lookup

• DM Dedup(modified) can offload following to hardware:

• Fingerprint (Digest using MD5, SHA1, SHA2)

• Fingerprint and LBN lookup.

• Current Offload benefits the following:

• Lookups.

Page 8: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Linux eCryptfs

• In-kernel standalone implementation.

• Security gets inherited into incremental backups.

• Cryptographic metadata is stored along with encrypted file.

• Supports Linux cryptographic ciphers.

• Utilizes Linux crypto framework

• eCryptfs can offload following to hardware

• AES CBC

• DES3 CBC

• AES XTS

• Offload benefits: Encryption, Decryption.

Page 9: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members
Page 10: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

RAID Architecture

Page 11: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Linux MDRAID Offload

Page 12: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members
Page 13: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Dmdedup Architecture

Page 14: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

DmDedup WRITE OffloadData

Chunk

Compute HASH

DISK

Hash->PBN

DDF Offload Block

LBN->PBN LBN->PBN

Dup WR Uniq WR

dmdedup

codedmdedup

code

Yes No

Page 15: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

DmDedup READ Offload

Compute LBN

DATA

LBN->PBN

DDF Offload Block

Miss Hit

DISK

END

dmdedup

code

Sector

Page 16: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members
Page 17: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Storage Security Offload

Page 18: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members
Page 19: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Accelerations Integrated

Page 20: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Accelerations Integrated

Page 21: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

0

5

10

15

20

25

30

35

0 4 8 16 24

OCTEON TX-raid-offload(cpu savings) No. disks/raid6 grp

RAID offload relative CPU savingsOCTEON TX

%cpu idle

Page 22: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

0

1

2

3

4

5

6

0GB 40GB 80GB 160GB 200GB

x86_64 OCTEON TX OCTEON TX-offload

Dmdedup offload Ingest rateOCTEON TX

throughput

5xGain

Page 23: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

0

1

2

3

4

5

6

0 40GB 80GB 160GB 200GB

x86_64 OCTEON TX OCTEON TX-offload

Dmdedup fio WRITE offload latencyOCTEON TX

5xReduction

Page 24: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Ecryptfs

0

10

20

30

40

50

60

70

80

90

100

0 1 4 8 16 32 48

OCTEON TX OCTEON TX-offload No. threads

OCTEON TX

%cpu used

Page 25: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Dedup + RAID6,

eCryptFS+RAID6

0

10

20

30

40

50

60

70

80

90

50GB, 4Tx5GB 50GB, 8Tx2GB 100GB, 16Tx2GB

OCTEON TX OCTEON TX-offload

OCTEON TX

%cpu idle

OCTEONTX

throughput

Fio WRITE

Page 26: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Status

• Status of Work – Preliminary performance results. More

in future summits.

• Upstream the drivers.

• Other Platforms:

• DPDK+SPDK

• ODP

Page 27: Hardware Acceleration for RAID5/6, Deduplication & … · Deduplication & Security for parallel workloads Vikas Aggarwal Storage Developer Conference Bangalore 2017. Team Members

Vikas Aggarwal

[email protected]

Q & A