4 ms·
He made the two vms with different amounts of ram: the small one has 256M and the big one has 1G. That's what the OS is supposed to do, fille a large portion o
by trotsky 13y ago
He made the two vms with different amounts of ram: the small one has 256M and the big one has 1G.
That's what the OS is supposed to do, fille a large portion of the unused and available memory with disk cache.
My ubuntu install uses almost 8 gigs in cache, what a pig!
BTW - if he installed open-vm-tools with the balloon driver it would recover all that disk cache ram as soon as the hypervisor was under any amount of memory pressure.
- gillianseed 13y agoAgreed, keeping programs (once they've been exited) and data in cache is a good thing as it means that you don't have to read them from disk again in subsequent runs/accesses. And given that a cache is a mirror of existing data (as opposed to buffers which are temporary storage space), the cache can be instantly flushed by the system if you need that ram for anything else. This means that it's good if the memory resources the operating system needs to function are low, since it then has more memory for caching. This flies in the face of the often heard comment -'it doesn't matter if operating system X is a ram hog, I want my memory to be used'. I also want my memory to be used, but by the applications I run, not the base operating system. If the operating system is lean, the more memory is available to the applications you launch, aswell as the system being able to keep as much data as possible cached to prevent slow disk reads.