On 2022-06-02 07:59, Christoph Hellwig wrote:
On Wed, Jun 01, 2022 at 10:19:40PM +0200, Holger Hoffstätte wrote:
Obviously if anybody (Jens, Christoph..?) has an idea what changed this
behaviour and thinks it's a bug I'm more than happy to test a fix,
however for now I'd be happy to understand what's going on.
I just tested fsync on SCSI disk and NVMe SSDs and they make it down
perfectly fine to the driver and device as Synchronize Cache / Flush
commands, including the block device node for a partition.
Everything else would be really horrible for data integrity anyway..
Thanks for confirming. Unfortunately that still doesn't explain
why dirty buffers now keep accumulating, but whatever.
In the meantime I found a much less intrusive solution (hd-idle) that
just monitors /proc/diskstats for selected devices instead of trying
to replace periodic writeback wholesale.
cheers
Holger