Hi everyone,
While running benchmarks on an OpenBao (Vault) cluster, I noticed an interesting memory behavior:
-
Initially, most of the memory was reported as cache (e.g., 7 GiB cache, ~200 MiB RSS).
-
After ~5 days of running, a large portion of that memory now also shows in RSS (5gb in RSS and 7GB in cache)
From what I understand, Linux uses free RAM for page cache, and applications like Vault/OpenBao will fault pages back into RSS when accessed again.
My questions:
-
Is this expected behavior for Vault/OpenBao’s storage engines (raft)?
-
Does Vault itself trigger compactions or maintenance tasks that could explain the shift from cache to RSS?
-
Are there recommended ways to tune or monitor this (RSS vs Cache) so I can set appropriate memory requests/limits in Kubernetes?
Any guidance or similar experiences would be super helpful ![]()