frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

SSDs, power loss protection and fsync latency

http://smalldatum.blogspot.com/2026/01/ssds-power-loss-protection-and-fsync.html
68•ingve•1d ago

Comments

jauntywundrkind•1d ago
Very appropriate topic, after yesterday's High-Performance DBMSs with io_uring: When and How to use it. https://news.ycombinator.com/item?id=46517319 https://arxiv.org/abs/2512.04859
mgerdts•23h ago
It seems pointless to issue flush commands when writing to an NVMe drive with a direct IO implementation that functions properly. The NVMe spec says:

> 6.8 Flush command

> …

> If a volatile write cache is not present or not enabled, then Flush commands shall complete successfully and have no effect.

And:

> 5.21.1.6 Volatile Write Cache

> …

> Note: If the controller is able to guarantee that data present in a write cache is written to non-volatile media on loss of power, then that write cache is considered non-volatile and this feature does not apply to that write cache.

ComputerGuru•21h ago
IOCTLs can tell you if write caching is enabled or not. Can they reliably tell you whether the write cache is volatile, though? Many drives with PLPs still report volatile write caches, or at least did when I was testing this a few years back.
wtallis•21h ago
If you know your application will only ever run against enterprise SSDs with power loss protection, then sending flush commands to the drive itself would indeed be pointless no-ops. But it if it's a flush command that has effects somewhere between the application layer and the NVMe drive (eg. if you're not using direct IO) or if there's any possibility of the code being run on a consumer SSD (eg. a developer's laptop) then the flush commands are probably worth including; the performance hit on enterprise drives will be very small.
jmalicki•16h ago
What SSDs are reasonably performant without a volatile write cache? The standards you quote specify why it is necessary to issue flush!
mgerdts•10h ago
Per the definition of volatile write cache in the standard I quoted, pretty much any drive TLC drive in the hyperscalar, datacenter, or enterprise product lineup will have great write performance. They have a DRAM cache that is battery-backed, and as such is not a volatile write cache.

A specific somewhat dated example: Samsung 980 Pro (consumer client), PM9A1 (OEM client), and PM9A3 (datacenter) are very similar drives that have the same PCI ID and are all available as M.2. PM9A3 drives have power loss protection and the others don’t. It has very consistent write latency (on the order of 20 - 50 μs when not exceptionally busy) and very consistent throughput (up to 1.5 GB/s) regardless of how full it is. The same cannot be said of the client drives without PLP but with tricks like TurboWrite (aka pseudo-SLC). When more than 30% of the NAND is erased, the client drives can take writes at 5 GB/s but that rate falls off a cliff and gets wobbly when the pseudo-SLC cache fills.

jmalicki•6h ago
Thanks! Yes, as the sibling noted, if you limit this to PLP drives it makes sense, but that is also a special case. Outside of the latency hit (which is significant in some cases), FLUSH is also nearly free on those though.
daymanstep•15h ago
Did you check that the drives actually honor the flush? Half of drives tested lose FLUSH'd data on power loss.
monsecchris•7h ago
Those are not contradictory

How to Code Claude Code in 200 Lines of Code

https://www.mihaileric.com/The-Emperor-Has-No-Clothes/
269•nutellalover•4h ago•137 comments

Embassy: Modern embedded framework, using Rust and async

https://github.com/embassy-rs/embassy
55•birdculture•1h ago•13 comments

Sopro TTS: A 169M model with zero-shot voice cloning that runs on the CPU

https://github.com/samuel-vitorino/sopro
114•sammyyyyyyy•4h ago•50 comments

Bose has released API docs and opened the API for its EoL SoundTouch speakers

https://arstechnica.com/gadgets/2026/01/bose-open-sources-its-soundtouch-home-theater-smart-speak...
2056•rayrey•9h ago•308 comments

The Unreasonable Effectiveness of the Fourier Transform

https://joshuawise.com/resources/ofdm/
124•voxadam•5h ago•54 comments

The Jeff Dean Facts

https://github.com/LRitzdorf/TheJeffDeanFacts
382•ravenical•11h ago•138 comments

Richard D. James aka Aphex Twin speaks to Tatsuya Takahashi

https://web.archive.org/web/20180719052026/http://item.warp.net/interview/aphex-twin-speaks-to-ta...
49•lelandfe•3h ago•13 comments

Google AI Studio is now sponsoring Tailwind CSS

https://twitter.com/OfficialLoganK/status/2009339263251566902
407•qwertyforce•5h ago•143 comments

AI coding assistants are getting worse?

https://spectrum.ieee.org/ai-coding-degrades
206•voxadam•9h ago•314 comments

Fixing a Buffer Overflow in Unix v4 Like It's 1973

https://sigma-star.at/blog/2025/12/unix-v4-buffer-overflow/
75•vzaliva•6h ago•19 comments

Show HN: macOS menu bar app to track Claude usage in real time

https://github.com/richhickson/claudecodeusage
70•RichHickson•6h ago•31 comments

Pole of Inaccessibility

https://en.wikipedia.org/wiki/Pole_of_inaccessibility
17•benbreen•5d ago•7 comments

Mux (YC W16) is hiring a platform engineer that cares about (internal) DX

https://www.mux.com/jobs
1•mmcclure•3h ago

Show HN: A geofence-based social network app 6 years in development

https://www.localvideoapp.com
28•Adrian-ChatLocl•3h ago•11 comments

Ushikuvirus: Newly discovered virus may offer clues to the origin of eukaryotes

https://www.tus.ac.jp/en/mediarelations/archive/20251219_9539.html
57•rustoo•20h ago•13 comments

Iran Protest Map

https://pouyaii.github.io/Iran/
131•breppp•2h ago•83 comments

Digital Red Queen: Adversarial Program Evolution in Core War with LLMs

https://sakana.ai/drq/
90•hardmaru•8h ago•7 comments

Learning to Play Tic-Tac-Toe with Jax

https://joe-antognini.github.io/ml/jax-tic-tac-toe
29•antognini•4d ago•4 comments

Lights and Shadows (2020)

https://ciechanow.ski/lights-and-shadows/
219•kg•6d ago•30 comments

PgX – Debug Postgres performance in the context of your application code

https://docs.base14.io/blog/introducing-pgx/
15•rshetty•1d ago•4 comments

I used Lego to design a farm for people who are blind – like me

https://www.bbc.co.uk/news/articles/c4g4zlyqnr0o
96•ColinWright•3d ago•33 comments

Support for the TSO memory model on Arm CPUs (2024)

https://lwn.net/Articles/970907/
20•weinzierl•3h ago•15 comments

He was called a 'terrorist sympathizer.' Now his AI company is valued at $3B

https://sfstandard.com/2026/01/07/called-terrorist-sympathizer-now-ai-company-valued-3b/
60•newusertoday•6h ago•41 comments

Dell admits consumers don't care about AI PCs

https://www.pcgamer.com/hardware/dells-ces-2026-chat-was-the-most-pleasingly-un-ai-briefing-ive-h...
382•mossTechnician•1d ago•276 comments

IBM AI ('Bob') Downloads and Executes Malware

https://www.promptarmor.com/resources/ibm-ai-(-bob-)-downloads-and-executes-malware
226•takira•6h ago•105 comments

Making Magic Leap past Nvidia's secure bootchain and breaking Tesla Autopilots

https://fahrplan.events.ccc.de/congress/2025/fahrplan/event/making-the-magic-leap-past-nvidia-s-s...
21•rguiscard•1w ago•8 comments

Intellectual Junkyards

https://www.forester-notes.org/QHXS/index.xml
33•ysangkok•3d ago•10 comments

Task-free intelligence testing of LLMs

https://www.marble.onl/posts/tapping/index.html
32•amarble•4h ago•9 comments

Iran Goes Into IPv6 Blackout

https://radar.cloudflare.com/routing/ir
381•honeycrispy•8h ago•285 comments

Texas court blocks Samsung from tracking TV viewing, then vacates order

https://www.bleepingcomputer.com/news/security/texas-court-blocks-samsung-from-tracking-tv-viewin...
56•speckx•3h ago•22 comments