Ancestors

Toot

Written by Jens Axboe on 2024-11-06 at 19:30

Uncached buffered IO is back, after a 5 year hiatus. Simpler and cleaner now. Up to 65-75% improvement, at half the CPU usage on my system. And none of the nonsense of the unpredictability of the page cache. See commit 1 and 3 for read/write perf data.

https://git.kernel.dk/cgit/linux/log/?h=buffered-uncached.2

=> More informations about this toot | More toots from axboe@fosstodon.org

Descendants

Written by Anisse on 2024-11-06 at 19:37

@axboe I haven't been following any of this… why is it much simpler this time around?

=> More informations about this toot | More toots from Aissen@treehouse.systems

Written by Jens Axboe on 2024-11-06 at 19:38

@Aissen Because it's now just using the page cache as the synchronization rather than private pages, which is what the version from 5 years ago did.

Still got a few kinks to iron out, but there's not much to this now.

=> More informations about this toot | More toots from axboe@fosstodon.org

Written by Anisse on 2024-11-06 at 19:51

@axboe interesting! Couldn't this be used to force-drop some highly needed pages (by other processes) from the page cache, forcing a re-read?

=> More informations about this toot | More toots from Aissen@treehouse.systems

Written by Jens Axboe on 2024-11-06 at 19:53

@Aissen Right now it drops everything, but you could just drop the parts you instantiated. Only tricky bit there is read-ahead.

=> More informations about this toot | More toots from axboe@fosstodon.org

Written by Anisse on 2024-11-06 at 19:57

@axboe no, I was thinking as a local attack on performance by a different user, but anyone can do that already with posix_fadvise anyway.

=> More informations about this toot | More toots from Aissen@treehouse.systems

Written by Jens Axboe on 2024-11-06 at 19:58

@Aissen Yeah this is nothing new in that sense, the page cache is per-inode anyway.

=> More informations about this toot | More toots from axboe@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113437666600542220
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
275.698861 milliseconds
Gemini-to-HTML Time
1.393791 milliseconds

This content has been proxied by September (3851b).