3 ms·
There's also profile-sync-daemon [0] that moves browser profiles into a ramdisk to save writing to/from the SSD all the time. I think a copy-on-write filesyste
by ThatPlayer 11y ago
There's also profile-sync-daemon [0] that moves browser profiles into a ramdisk to save writing to/from the SSD all the time.
I think a copy-on-write filesystem like btrfs would be better on SSDs because they do not change written data but rather write to a new area on the drive, requiring less erases on the SSD's side.
There's also F2FS (Flash-Friendly File System) which has been in the Linux kernel for a while now that specifically targets flash based drives.
Though I agree that most of these optimizations do not seem necessary on modern SSDs.
[0] https://github.com/graysky2/profile-sync-daemon https://github.com/graysky2/profile-sync-daemon
- baruch 11y agoI would argue that preferring to reuse the same space of the SSD instead of using new space as you propose (cow, et al.) is the better approach. This way you don't need to use trim that much and the SSD will anyway write it into a different place. It should be noted that while an SSD can't write before erasing it will actually not even attempt that. The SSD maintains a mapping from LBA to physical flash chip and offset and will write to a completely different place. It will then mark the old location as unused and erase it when it can spare some time and power.
- rcthompson 11y agoI'm pretty sure that the SSD performs wear leveling regardless of whether you're overwriting an existing file or creating a new copy. Just because you're logically rewriting the contents of a file doesn't mean the SSD will store the new contents in the same physical location.
- baruch 11y agoF2FS is for direct NAND access, if you do it over an SSD that already has an FTL (flash translation layer) you'll gain nothing and only cost extra writes.
- ThatPlayer 11y agoI can't say I'm too familiar with it, but this article says F2FS specifically targets the flash translation layer. https://lwn.net/Articles/518988/ https://lwn.net/Articles/518988/