Re:Disk I/O bottlenecks in GitHub Actions
by levkk on Friday March 28, 2025 @04:37PM
(#43509605)
Pretty sure kernel doesn't have to fsync on close. In fact, you don't want it to, otherwise you're limiting the performance of your page cache. So fsync on install for dpkg makes perfect sense.
[ Parent
| on HN ]
Re:Disk I/O bottlenecks in GitHub Actions
by Brian_K_White on Friday March 28, 2025 @04:46PM
(#43509667)
I didn't say it synced. The file is simply "written" and available at that point.
It makes no sense to trust that fsync() does what it promises but not that close() does what it promises. close() promises that when close() returns, the data is stored and some other process may open() and find all of it verbatim. And that's all you care about or have any business caring about unless you are the kernel yourself.
I would like to introduce you to a few case studies on bugzilla:
https://wiki.debian.org/Teams/Dpkg/FAQ#Q:_Why_is_dpkg_so_slo...