3 ms·
> […] while the Linux kernel team advised the only real solution was for Postgres to move to direct I/O (DIO) instead, something that is still ongoing work? Or
by throw0101a 5y ago
> […] while the Linux kernel team advised the only real solution was for Postgres to move to direct I/O (DIO) instead, something that is still ongoing work?
Or the Linux folks could have done what McKusick did on FreeBSD back in 1999:
> Don't throw away the buffer contents on a fatal write error; just mark the buffer as still being dirty. This isn't a perfect solution, but throwing away the buffer contents will often result in filesystem corruption and this solution will at least correctly deal with transient errors.
* https://github.com/freebsd/freebsd-src/commit/e4e8fec98ae986357cdc208b04557dba55a59266 https://github.com/freebsd/freebsd-src/commit/e4e8fec98ae986...