5 ms·
The OS doesn't know what data is important; it can only guess. You can know that you want immediate access to data at any time even if you haven't used it in ag
by asiniongnoi 8y ago
The OS doesn't know what data is important; it can only guess. You can know that you want immediate access to data at any time even if you haven't used it in ages.
I doubt that's true in practice, especially on a desktop workload.
- paulmd 8y agoYou can pin files into memory using vmtouch, if you like. Not sure if there is a Windows equivalent. It would be nice if there was a resident manager that watched for certain processes to be launched and then pinned their directories (or certain files) into memory, then unpinned them when they were shut down.
- magnat 8y agoThere already is such service bundled in Windows and enabled by default - PreFetcher (in Windows XP) and SuperFetch (since Vista). It was a bit too aggressive in Vista and caused minutes of HDD churning after booting up.
- rasz 8y agolast time I checked prefetch was disabled when windows detected being booted from SSD.
- vbezhenar 8y agoI'm using Windows with SSD and I saw superfetch process using disk aggressively sometimes. I'm not sure that it's disabled, at least completely disabled.
- rasz 8y agoMS says ''Windows 8 and 10 automatically disables SuperFetch service'' https://channel9.msdn.com/Shows/The-Defrag-Show/Defrag-Disabling-Hibernation-Superfetch-onboard-VGA#time=05m50s https://channel9.msdn.com/Shows/The-Defrag-Show/Defrag-Disab...
- rleigh 8y agoIt can learn. If you take ZFS as an example, it has both MRU (most recently used) and MFU (most frequently used) caches. Thus it can adapt to retaining memory data which is accessed repeatedly as well as data which was just read which might get reused. It's not perfect, but it should do a good job with a sufficiently sized cache.