OpenSolaris NFS TM Performance Alain van Hoof February 3, 2010 - - PowerPoint PPT Presentation

opensolaris nfs
SMART_READER_LITE
LIVE PREVIEW

OpenSolaris NFS TM Performance Alain van Hoof February 3, 2010 - - PowerPoint PPT Presentation

OpenSolaris NFS TM Performance Alain van Hoof February 3, 2010 Research Question \begin{quotation} How can the performance bottlenecks be monitored and identified on an OpenSolaris OS NFS server. What are realistic load simulations and


slide-1
SLIDE 1

OpenSolaris NFS Performance

Alain van Hoof February 3, 2010

TM

slide-2
SLIDE 2

\begin{quotation}

How can the performance bottlenecks be monitored and identified on an OpenSolaris OS NFS server. What are realistic load simulations and create a base-line.

\end{quotation}

Research Question

2

slide-3
SLIDE 3

Server OpenSolaris Client Linux Physical Devices ZFS FileSystem NFS Server TCP/IP TCP/IP NFS Client ZIL L2ARC VFS Layer

NFS layer and ......

3

slide-4
SLIDE 4

Inspecting the layers

Server OpenSolaris Client Linux Physical Devices ZFS FileSystem NFS Server TCP/IP TCP/IP NFS Client ZIL L2ARC VFS Layer nfsstat -c netstat tcpdump/wireshark netstat nfsstat -s zilstat arcstat zpool iostat iostat Dtrace Probes mib:ip:ip_ nfsv3:nfssrv:rfs3_ fbt:zfs:arc_ fbt:zfs:zil_lwb_write io:genunix::start fsstat fsinfo:genunix:fop_

4

slide-5
SLIDE 5

Physical Disk ZFS FileSystem NFSv3 Server TCP/IP ZIL ARC VFS Layer

nfsv3:nfssrv:rfs3_read:op-read-start nfsv3:nfssrv:rfs3_write:op-write-start mib:ip:ip_input:ipIfStatsHCInReceives mib:ip:ip_xmit:ipIfStatsHCOutTransmits fsinfo:genunix:fop_write:write fsinfo:genunix:fop_read:read fbt:zfs:zfs_write:entry fbt:zfs:zfs_read:entry fbt:zfs:arc_write:entry fbt:zfs:arc_read:entry fbt:zfs:zil_lwb_write_start:entry io:genunix::start

Write Read

Ard Awr Brd Bwr Crd Cwr Drd Dwr E Frd Fwr G

Dtrace Probes

5

slide-6
SLIDE 6

Benchmarking

Marcro benchmarks real-world workload Trace benchmarks replay recorded real-world scenario Micro benchmarks

  • ne or two operations

6

slide-7
SLIDE 7

Filebench

Macro benchmark Supported by SUN fileserver: SPECsfs workload

IOzone

Micro benchmark A benchmark UvA-IC is familiar with Random Read/Write

TM 7

slide-8
SLIDE 8

Auto-pilot

Automate the running of benchmarks Avoid user errors (typo’s) Automatic mount and unmount filesystems Calculate confidence level and run more test to be more confident

8

slide-9
SLIDE 9

Test Setup

TestClient VMware 01 LoadClient 01 NFS Server Server Metrics Log LoadClient 02 auto-pilot IOzone VMware 02 LoadClient 03 LoadClient 04 filebench Test Results autopilot filebench autopilot filebench autopilot filebench autopilot filebench

9

slide-10
SLIDE 10

Benchmark & loadgeneration

Run benchmark on TestClient while load is generated on LoadClients Real-world benchmark is also real-world load generator

10

slide-11
SLIDE 11

Meanwhile on the NFS server

12 Dtrace probes are logged during testing Output: Every 10 seconds Probes triggered/second

11

slide-12
SLIDE 12

Preliminary Test

A simple test to learn about behavior of the Dtrace probe “Accidentally” Identified NFS bottle-neck Changed number of NFS daemons Positive result

12

slide-13
SLIDE 13

200 400 600 800 1000 Time Awr/32 Bwr Cwr Dwr E G/10

Before After Dtrace write probes

13

slide-14
SLIDE 14

Results of Test

Filebench and IOzone show performance loss when load increases Filebench more close to “user experience” IOzone tests are not within the confidence interval (95%) after 30 runs

14

slide-15
SLIDE 15

5 10 15 20 25 30 35 40 0 1 2 3 4 8 16 MB/s Load filebench

15

slide-16
SLIDE 16

5 10 15 20 25 30 35 40 0 1 2 3 4 8 16 MB/s Load IOzone Random Write

16

slide-17
SLIDE 17

200 400 600 800 1000 1200 1400 Probes / Second Time Awr/32 Bwr Cwr Dwr E G/10

ZIL write probe

17

slide-18
SLIDE 18

18

Time

ZIL write probe

slide-19
SLIDE 19

ZFS and ZIL

ZFS ZIL Synchronous Write Asynchronous Write

All NFS writes are Synchronous and pass the ZIL

19

slide-20
SLIDE 20

Improve performance

Place ZIL on fast device Solid State Disk (SSD) Well known practice

20

slide-21
SLIDE 21

Results - ZIL on SSD

Filebench and IOzone show performance increase When the load increases performance decreases IOzone tests are not within the confidence interval (95%) after 30 runs

21

slide-22
SLIDE 22

10 20 30 40 50 60 0 1 2 3 4 8 16 MB/s Load filebench ZIL on SSD

filebench normal ZIL

22

slide-23
SLIDE 23

200 400 600 800 1000 1200 1400 Probes / Second Time Awr/32 Bwr Cwr Dwr E G/10

ZIL write probe Dtrace write Probes

23

slide-24
SLIDE 24

Conclusion

Using Dtrace probes, performance bottlenecks

  • n the server can be identified, and a baseline

can be created. A realistic load can be generated using the filebench - fileserver personality Filebench test created a confident baseline (unlike IOzone)

24

slide-25
SLIDE 25

Questions?

Thanks to: Jeroen Roodhart Auke Folkerts

25