|
|
|
|
|
by lstodd
986 days ago
|
|
The whole point is that pagecache does not cause any swap hits. Oh my god, it's 2023 and we're still discussing this idea from 1970s. Is that so hard to grasp? No, stuff gets evicted from the cache long before you hit the swap, which is by the way measured by page swap-out/in rate and not by how much swap space is used, which is by itself a totally useless metric. |
|
No...?
I'm looking at a machine right now that has 3.7GB not swapped out and 1.2GB swapped out. Meanwhile the page cache has 26GB in it.
Swapping can happen regardless of how big your page cache is. And how much you want swap to be used depends on use case. Sometimes you want to tune it up or down. In general the system will be good about dropping cache first, but it's not a guarantee.
> measured by page swap-out/in rate and not by how much swap space is used
Eh? I mean, the data got there somewhere. The rate was nonzero at some point despite a huge page cache.
And usually when you want to specifically talk about the swap-out/in rate being too high, the term is "thrashing".