3 ms·
Am I missing something or is this pure filesystem cache? What happens instead if you configure an SSD as your swap device? Wouldn't the OS then be able to use t
by Nate75Sanders 16y ago
Am I missing something or is this pure filesystem cache? What happens instead if you configure an SSD as your swap device? Wouldn't the OS then be able to use the SSD more generally as a piece of the memory hierarchy?
- bensummers 16y agoThis is only for ZFS. However, ZFS also does block devices, so in a typical deployment swap would be on a ZFS zvol. I'm not sure how effective this would be, though. If you want to 'extend' the amount of RAM you have, it would be far better to mmap() a file rather than hope that everything works as you expect with swap.
- deleted 16y ago[deleted]
- CJefferson 16y agoIf the OS used the SSD as a swap device, it would still try to write the data back to the underlying drive within a reasonable period of time, which isn't necessary for SSD.
- Nate75Sanders 16y agoUnless I'm mistaken, you're still thinking of file writes. I'm talking about using your SSD as "slow RAM". Your statement is true, but it doesn't account for the use of SSD as something that could be used for very large ephemeral data structures.
- eru 16y agoBut that wouldn't be too much of a problem. Actually it's a good idea, so that you can shovel in different data, in case those get hot.
- wmf 16y agoThis is a great idea, too bad it's chained to an obscure OS: http://leaf.dragonflybsd.org/cgi/web-man?command=swapcache http://leaf.dragonflybsd.org/cgi/web-man?command=swapcache