All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Performance Analysis: fsync Latency on SSDs With and Without Power Loss Protection

By

ingve

4mo ago· 4 min readenInsight

Summary

This technical article examines the performance impact of fsync operations on SSDs with and without power loss protection. The author documents how calling fsync per-write for files opened with O_DIRECT affects performance, specifically focusing on the innodb_flush_method option in MySQL/InnoDB. Key findings show that SSDs without power loss protection have fast writes but slow fsync operations, while SSDs with power loss protection maintain consistent performance. The article emphasizes that context matters when reporting performance problems, as results can appear bad on servers with slow fsync but acceptable otherwise.

Key quotes

· 5 pulled
For an SSD without power loss protection, writes are fast but fsync is slow.
The secondary point of this post is to provide yet another example where context matters when reporting performance problems.
This post is motivated by results that look bad when run on a server with slow fsync but look OK otherwise.
My goal is to document the impact of the innodb_flush_method option.
This has results to measure the impact of calling fsync (or fdatasync) per-write for files opened with O_DIRECT.
Snippet from the RSS feed
This has results to measure the impact of calling fsync (or fdatasync) per-write for files opened with O_DIRECT. My goal is to document the ...

You might also wanna read