Idea: What if there was an OS interface to mark memory regions as &quot;throwaway&quot;? Throwaway in the sense that it&#x27;s less costly to recalculate than to recall it from swap. So the OS would throw such memory regions instead of swapping out and signal the process about it to recalculate it if needed.<p>I don&#x27;t usually bump into heavy swap usage except when I wake my laptop from hibernate. I tend to close browsers before hibernating because it&#x27;s faster to just resume the last session from a cold start then load from swap.