Comments on: Fsync Performance on Storage Devices https://www.percona.com/blog/fsync-performance-storage-devices/ Sat, 03 Feb 2024 00:54:24 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Yves Trudeau https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10971464 Wed, 20 Nov 2019 15:38:53 +0000 https://www.percona.com/blog/?p=47299#comment-10971464 When I mention “drive write cache”, it normally means the on disk write cache. Some SATA drives can cheat when the drive cache is enable. As of RAID controller write cache, this is only for the Dell PERC results and there, yes, the cache was set to “write back”.

]]>
By: Yves Trudeau https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10971463 Wed, 20 Nov 2019 14:41:18 +0000 https://www.percona.com/blog/?p=47299#comment-10971463 I used a loop of 1000 so the reported time can be interpreted as ms per event.

]]>
By: Anthony Monthe https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10971461 Wed, 20 Nov 2019 04:52:05 +0000 https://www.percona.com/blog/?p=47299#comment-10971461 Salut Yves,
Very great article.

But I would emit doubts your benchmark methodology.
Your Python script makes the job, but data collection isn’t good.

Here’s the time command’s output:

$ time sleep 1

real 0m1.005s
user 0m0.000s
sys 0m0.003s

Things are given in seconds and you seem to use it as milliseconds.

Furthermore, you time the entire script and Python as an interpreted language has a long startup.
This time depends of Python version, CPU, etc and just add a false overhead to your results.

Otherwise, I really love Python, really really, but its for-loops are slow,
So you may not expect to reach the best perfs from a Python loop.
You could time each I/O, but the whole thing may be affected by Python perfs.

Thank you again for this article

]]>
By: james https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10971448 Mon, 18 Nov 2019 11:49:38 +0000 https://www.percona.com/blog/?p=47299#comment-10971448 Hi Yves, does “drive Write cache enabled” mean “Write Back” in physical RAID please?

]]>
By: Tina Falk https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10970574 Fri, 05 Apr 2019 13:33:55 +0000 https://www.percona.com/blog/?p=47299#comment-10970574 Used fsync.py and it was fantastic– thanks for the post on this code and storage device

]]>
By: Levita Bernardo https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10969956 Thu, 15 Nov 2018 03:11:16 +0000 https://www.percona.com/blog/?p=47299#comment-10969956 You did a great job in here Yves! Thank you for this article.

]]>
By: Eduard Spiridonov https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10969538 Wed, 08 Aug 2018 11:30:26 +0000 https://www.percona.com/blog/?p=47299#comment-10969538 BTW, postgresql has pg_test_fsync utility for years

]]>
By: Timur Solodovnikov https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10968969 Sat, 17 Feb 2018 07:24:30 +0000 https://www.percona.com/blog/?p=47299#comment-10968969 Thanks, very good article.

]]>
By: Jacob https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10968966 Wed, 14 Feb 2018 20:56:48 +0000 https://www.percona.com/blog/?p=47299#comment-10968966 I tested your fsync.py using our SAN HPE 3PAR StoreServ 8400 storage.
It is relatively high level flash-based storage device.
10 000 iterations took 19.303s or 1.903 ms per fsync (~ 518 fsyncs / seconds).

]]>
By: Yves Trudeau https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10968964 Mon, 12 Feb 2018 15:18:16 +0000 https://www.percona.com/blog/?p=47299#comment-10968964 I did some research on my side and you are right, the optane appears to be safe in term of power loss. Quite impressive performance and a a cheap SLOG device.

]]>
By: Franz Hänel https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10968961 Fri, 09 Feb 2018 17:11:58 +0000 https://www.percona.com/blog/?p=47299#comment-10968961 Well, it’s without a volatile cache, so it shouldn’t need power loss protection.
https://www.anandtech.com/show/11953/the-intel-optane-ssd-900p-review/3

]]>
By: Yves Trudeau https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10968960 Fri, 09 Feb 2018 17:01:07 +0000 https://www.percona.com/blog/?p=47299#comment-10968960 Be careful, although the Optane 900P has impressive specs, you’ll find this in the specs: “Enhanced Power Loss Data Protection No”. I wonder if it really persists the data at each fsync or fdatasync. I would be interesting to find out because it would be a very nice SLOG device.

]]>
By: jonathan https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10968956 Thu, 08 Feb 2018 22:11:41 +0000 https://www.percona.com/blog/?p=47299#comment-10968956 Excellent post, Yves.

]]>
By: Franz Hänel https://www.percona.com/blog/fsync-performance-storage-devices/#comment-10968955 Thu, 08 Feb 2018 18:59:13 +0000 https://www.percona.com/blog/?p=47299#comment-10968955 I tested your fsync.py using an Intel Optane SSD (900P 280GB, ext4). It took 0.054s to complete but it appears that some of that time was outside the for-loop. 10 000 iterations took 0.43s or 0.043 ms per fsync (~ 23 250 fsyncs / seconds).

And some ZFS benchmarks… https://www.servethehome.com/exploring-best-zfs-zil-slog-ssd-intel-optane-nand/

]]>