4 ms·
Pardon my ignorance, but can't you just increase the size of the pagefile to consume the ssd and then increase the disk cache? this way the OS can handle memory
by aaronblohowiak 17y ago
Pardon my ignorance, but can't you just increase the size of the pagefile to consume the ssd and then increase the disk cache? this way the OS can handle memory management as it pleases..
- wmf 17y agoMost OSes don't swap their disk cache, since they assume that reading a page from swap is no faster than reading it from the filesystem.
- pmjordan 17y agoCorrect. Moreover, disk caches in memory don't persist across reboots, which means the first access since OS startup is ALWAYS slow. You also can't return from an fsync() if writes have only been written to non-persistent cache. A persistent cache therefore can help even if you have oodles of RAM. Moreso if you don't.