Is there a way to keep disk caches when hibernating Linux? I understand and agree that dropping them is the best option all-around. But my system is unresponsive after resume and I would like to give a try to keeping that data.
Of course, both hibernating and resuming will be slower, since disk cache data will have to be written to swap and restored. And, of course, I will need more swap space than I do now. But still, I've been looking all over the web and I haven't found any way to set things up like that.
I use pm-utils with uswsusp as backend, but I'm open to suggestions.
hibernate-ram
keeps the caches around, but it requires power to keep alive. – frostschutz Mar 27 '13 at 16:09pcat
or my Python script (but it doesn't just load what was in RAM before, it loads everything, which can be inconveniently large). – Gilles 'SO- stop being evil' Mar 27 '13 at 23:03