Posix I/O performance penalty on APFS filesystem
Posix I/O performance penalty on APFS filesystem
- Subject: Posix I/O performance penalty on APFS filesystem
- From: Jack Howarth <email@hidden>
- Date: Wed, 13 Sep 2017 10:01:40 -0400
Running the byte unix benchmarks from
https://github.com/kdlucas/byte-unixbench/tree/master/UnixBench on a
WD2500AAJS-00L7A0 hard drive formatted as JHFS and as APFS revealed a
surprising regression in the file copy benchmarks
JHFS
8 CPUs in system; running 1 parallel copy of tests
File Copy 1024 bufsize 2000 maxblocks 412625.5 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 119175.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 789371.8 KBps (30.0 s, 2 samples)
8 CPUs in system; running 8 parallel copies of tests
File Copy 1024 bufsize 2000 maxblocks 323120.6 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 84618.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1028868.0 KBps (30.0 s, 2 samples)
APFS
8 CPUs in system; running 1 parallel copy of tests
File Copy 1024 bufsize 2000 maxblocks 133051.5 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 34786.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 379649.9 KBps (30.0 s, 2 samples)
8 CPUs in system; running 8 parallel copies of tests
File Copy 1024 bufsize 2000 maxblocks 96283.8 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 24641.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 358218.6 KBps (30.0 s, 2 samples)
Another user performed a similar test on a Samsung SSD 840 EVO 500 GB and
saw similar 2-5 fold performance penalties between a Sierra encrypted JHFS
volume and a High Sierra APFS volume on the same drive.
Sierra encrypted JHFS
4 CPUs in system; running 1 parallel copy of tests
File Copy 1024 bufsize 2000 maxblocks 554328.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 164034.3 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1463927.9 KBps (30.0 s, 2 samples)
4 CPUs in system; running 4 parallel copies of tests
File Copy 1024 bufsize 2000 maxblocks 956621.0 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 267242.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2347334.6 KBps (30.0 s, 2 samples)
High Sierra encrypted APFS
4 CPUs in system; running 1 parallel copy of tests
File Copy 1024 bufsize 2000 maxblocks 191039.0 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 52913.8 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 674766.1 KBps (30.0 s, 2 samples)
4 CPUs in system; running 4 parallel copies of tests
File Copy 1024 bufsize 2000 maxblocks 213139.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 52429.9 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 782267.4 KBps (30.0 s, 2 samples)
Is the new APFS support only optimized for the native macOS filesystem
calls and not the general POSIX ones?
Jack
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden