- Examples of Portworx performance as measured by fio
Portworx operates typically within less than 3% overhead of the underlying storage hardware.
Note that Portworx recommends the following:
- Minimum resources per server:
- 4 CPU cores
- 4 GB RAM
- Recommended resources per server:
- 12 CPU cores
- 16 GB RAM
- 128 GB Storage
- 10 GB Ethernet NIC
Examples of Portworx performance as measured by fio
The following graphs show the results of running fio against the underlying baremetal hardware and comparing it to the performance of a Portworx volume that used the underlying hardware for storage provisioning. The graphs show the overhead, or delta, between running the same test on the raw volume and on a PX volume.
In this example, the following Intel server was used: Intel® Wildcat Pass R2312WTTYS 2U from PCSD - Product Collaboration Systems Division
- Intel® Wildcat Pass R2312WTTYS 2U
- 2U rack mountable server
- 2x Intel® Xeon® processors E5-2650 v3 (25M Cache, 2.30 GHz)
- 500GB SATA 6Gb/s 7200 RPM 2.5” hard drive
- 120GB Intel® DC S3500 series (Wolfsville) SAS 6Gb/s 2.5” SSD
- supports up to 12x 3.5” hot-swap drives and 2x 2.5” hot-swap drives
- 4x 8GB 2133MHz PC4-17000 ECC RDIMM
- Matrox G200e (Emulex) On-Board Video
- It also has an Intel® ethernet controller i350 1Gbe dual-port on-board and IPMI 2.0
- Docker version 1.12
- Centos 7.1
- PX-Enterprise v1.0.8
Random read performance overhead
Random write performance overhead
- Step 1: Before installing PX, benchmark all the disk drives using hdparm or dd. This is the upper bound of all measurements from here on.
- Step 2: Install PX and get a baseline run. Stop PX and mount the disk drive(s) on a mountpoint on the host. Run Fio benchmark using this mountpoint as the target.
- Step 3: Verify results. Make sure the IOs are hitting the disk by taking a snapshot of /proc/diskstats before and after the run. Make sure there are no reads when running write test and vice versa. Compare with results from Step1.
- Step 4: Start PX, create and attach a device. Run Fio benchmark with the same options as the baseline using the attached PX device as target.
- Step 5: Verify results, repeat Step3. Also compare with results from Step2.
Note the following Results:
- Total runtime.
- Throughput: iops/sec * blocksize.
- Latency (Completion time per request): 90/95th percentile clat.
* ioengine: Linux native asynchronous IO engine (libaio). * blocksize: This is the Block size used for each IO operation and varies from application to application. * readwrite: IO pattern (read/write sequential/random). * size: This is the dataset size. Ideally should be greater than the size of host cache to avoid any caching effects. * direct: Set to true for non-buffered IO. This implies files are opened with O_DIRECT flag which results in IOs bypassing host cache. * iodepth: This is the number of outstanding/queued IO requests in the system. A higher number typically means greater concurrecy and better resource utilization. * end_fsync: This causes flushing of dirty data to disk at the end of test. The flush time is included in the measurement.
Additional factors to consider when running a write test:
- Do not overwrite. Reusing the same target in repeated tests will end up measuring overwrites instead of appending writes.
- Do not include any verify options. Verification will introduce reads in the test.
[root@pdc1-intel4 ~]# fio --blocksize=64k --filename=/dev/pxd/pxd49883014792311202 --ioengine=libaio --readwrite=write --size=102400M --name=test --direct=1 --iodepth=128 --end_fsync=1
Additional Factors to consider when running a read test:
- Every read test should be preceeded by a dataset population step.
- Before starting the test make sure the cache is purged, to prevent cache reads.
- Use the option “–readonly” to direct fio to perform read on existing dataset.
[root@pdc1-intel4 ~]# fio --blocksize=64k --filename=/dev/pxd/pxd49883014792311202 --ioengine=libaio --readwrite=read --size=102400M --name=test --direct=1 --iodepth=128 --readonly
Note: With basic FIO benchmarking the goal is to find the max capacity of the system. To achieve that refrain from introducing any limiting constraints. For example introducing “fsync” after every write IO, is not meant to push system to maximum resource utilization. While it’s valid test, it does not return a correct measurement of the system’s sustained IO rate capabilities. Note that this does not mean we are (incorrectly) measuring memory writes. All writes generated by the test must hit the disk before the test completion. The goal is to measure sustained IO rate in a steady state. This means ideally we should exclude ramp-up and teardown time from the measurement interval. Edit this page