postgres open 2014 - a performance characterization of postgres on different storage systems

29
A Performance Characterization of Postgres on Different Storage Systems Dong Ye & Syed Faisal Akber 2014-09-18 1 / 29

Upload: faisal-akber

Post on 27-May-2015

347 views

Category:

Data & Analytics


2 download

DESCRIPTION

Performance is an important factor when considering different storage systems for Postgres. In this talk we will present a detailed performance characteristics on a number of different storage systems. We will compare Fibre Channel SAN, Enterprise NAS, VMware VSAN, and local storage (SSD and SAS disks) behind battery backed RAID. We will look at OLTP and OLAP workloads.

TRANSCRIPT

Page 1: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

A Performance Characterization ofPostgres on Different Storage Systems

Dong Ye & Syed Faisal Akber

2014-09-18

1 / 29

Page 2: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

1 Storage Systems

2 Benchmarks

3 Results

4 Summary

2 / 29

Page 3: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Storage Systems

3 / 29

Page 4: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Storage Systems

Fibre Channel

NFS

Local Storage

VSAN

4 / 29

Page 5: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Fibre Channel

Block level storageconnected by specialfibre optic cables

Uses “Fabric” switchesfor connectivity

Top speed today is 16Gbps

5 / 29

Page 6: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

NFS

Network Attached Storage

Easy to setup

Uses normal network (Ethernet) switches

Storage Arrays now support NFS

New features now available to NFS servers viaArrays

6 / 29

Page 7: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Local Storage

Hard-disk drives andsolid-state drives

Directly attached toservers

Inexpensive

7 / 29

Page 8: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

VSAN

Abstracts and poolsserver-side flash anddisk into shared andreplicated pools

Built within thehypervisor

Latency is minimized byleveraging SSD as writebuffer and read cache

Non-disruptive scaling

8 / 29

Page 9: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Benchmarks

9 / 29

Page 10: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Benchmarks

Benchmark Description and ConfigurationDBT2 OLTP, TPC-C

60 warehouses, clients = # of CPUs,zero delays

DBT3 OLAP, TPC-H10 scale factor, 3 streams

10 / 29

Page 11: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Results

11 / 29

Page 12: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Fibre Channel Testbed

Subsystem SpecificationsStorage EMC VNX 5500 RAID-0 LUNsHypervisor VMware ESXi 5.5 Update 2CPU 32Memory 16 GBFilesystem EXT4Operating System Fedora 20 (3.16.2-200)Database Server PostgreSQL 9.4beta2postgresql.conf shared buffers = 10GB

12 / 29

Page 13: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

13 / 29

Page 14: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Fibre Channel – DBT2

Type ResultVMFS 123674.82 NOTPMRDM/Passthrough 123377.15 NOTPM

14 / 29

Page 15: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

15 / 29

Page 16: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Fibre Channel – DBT3

Type Power Throughput CompositeVMFS 47.89 25.57 34.99RDM/Passthrough 47.02 25.03 34.30

16 / 29

Page 17: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

NFS Testbed

Subsystem SpecificationsStorage NetApp FAS6210Hypervisor VMware ESXi 5.5 Update 2CPU 8Memory 16 GBFilesystem EXT4Operating System Fedora 20 (3.16.2-200)Database Server PostgreSQL 9.4beta2postgresql.conf shared buffers = 10GB

17 / 29

Page 18: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

18 / 29

Page 19: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

NFS – DBT2

Type ResultMount inside VM 47458.26 NOTPMMount by hypervisor 80205.98 NOTPM

19 / 29

Page 20: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

20 / 29

Page 21: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

NFS – DBT3

Type Power Throughput CompositeMount inside VM 143.64 119.52 131.02Mount by hypervisor 86.92 122.73 103.28

21 / 29

Page 22: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Local Storage Testbed

Subsystem SpecificationsRAID Controller HP P410i (1024MB BBWC)Drive Write Cache Disabled from system BIOSDisks under Test 1x 15K-rpm SAS, 1x SSDHypervisor VMware ESXi 5.5 Update 2CPU 8Memory 16 GBFilesystem EXT4Operating System Fedora 20 (3.16.2-200)Database Server PostgreSQL 9.4beta2postgresql.conf shared buffers = 10GB

22 / 29

Page 23: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

23 / 29

Page 24: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Local Storage – DBT2

Type ResultSAS 88955.97 NOTPMSSD 86796.97 NOTPM

24 / 29

Page 25: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

25 / 29

Page 26: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Local Storage – DBT3

Type Power Throughput CompositeSAS 49.25 11.92 24.23SSD 143.63 119.52 131.02

26 / 29

Page 27: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Summary

Storage Systems

Benchmarks

Results

27 / 29

Page 28: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

Questions?

28 / 29

Page 29: Postgres Open 2014 - A Performance Characterization of Postgres on Different Storage Systems

References

PostgreSQL http://www.postgresql.org/

Transacton Processing Performance Council (TPC)http://www.tpc.org/

VMware Virtual SAN (VSAN)http://www.vmware.com/products/virtual-san

Database Test Suitehttp://sourceforge.net/projects/osdldbt/

Virtual Machine File System (VMFS) http://www.vmware.com/products/vsphere/features/vmfs

29 / 29