On 24/01/2020 13:19, Jan Panteltje wrote:
> OK, found this link
> https://www.howtoforge.com/tutorial/linux-swappiness/
>
> Yes, cool,
> On my system it is set to 60, but WHY THEN is it filling almost the whole
memory
> with cache?
Because cache is NOT SWAP
Linux allocates anything it has spare to cache.
Every time you read the disk it goes into the cache. If it doesn't get
accessed for a while it gets overwritten by some other disk stuff. If
you write to disk it goes into cache. Only if it runs out of cache will
it actually write to the disk.
--
"The most difficult subjects can be explained to the most slow witted
man if he has not formed any idea of them already; but the simplest
thing cannot be made clear to the most intelligent man if he is firmly
persuaded that he knows already, without a shadow of doubt, what is laid
before him."
- Leo Tolstoy
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|