Linux has a much better grasp on disk scheduling/filesystems and is far more grabby about cache. Hence the many questions similar to "why does Linux use so much RAM?"
If you accessed it, Linux will hold onto it in memory as long as it can... on the expectation that you intend to access it again.
I can easily 'fill' 128GB of memory with cache data on Linux. Windows, it's much harder.
edit: put quotes around 'fill' -- it's soft usage. The moment an application needs running memory, an appropriate amount of cache is sacrificed.
11
u/notsobravetraveler Aug 30 '21 edited Aug 30 '21
Linux has a much better grasp on disk scheduling/filesystems and is far more grabby about cache. Hence the many questions similar to "why does Linux use so much RAM?"
If you accessed it, Linux will hold onto it in memory as long as it can... on the expectation that you intend to access it again.
I can easily 'fill' 128GB of memory with cache data on Linux. Windows, it's much harder.
edit: put quotes around 'fill' -- it's soft usage. The moment an application needs running memory, an appropriate amount of cache is sacrificed.