|
|
Subscribe / Log in / New account

Write-stream IDs

Write-stream IDs

Posted Apr 10, 2015 10:16 UTC (Fri) by amonnet (guest, #54852)
Parent article: Write-stream IDs

Great, let's wait all userspace make (correct) use of this (linux only) feature !!

or

Assume that programmers have already made their homework, putting different kind of files in different directory (think log, cache, data, run files ...). If they have not, they will not do it now for you with this obscure feature.

Dirname is your stream id !

+++


to post comments

Write-stream IDs

Posted Apr 10, 2015 15:23 UTC (Fri) by flussence (guest, #85566) [Link]

Presumably this is something intended for high-level APIs like GTK/Qt, where the toolkit takes care of all the OS-specific details. (They've hopefully gotten better at that job ever since the mass panic where ext4 started eating people's config files...)

I don't like the idea of automatic heuristics based on assumed filesystem usage, but I *would* use a way to declare usage patterns per directory; for example, marking /var/tmp or /home/*/.cache/ as expendable, and then having those behave like a disk-backed tmpfs where only memory pressure or unmounting can trigger writeback.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds