Kernel page cache footprint keeps growing #10008
-
Setup
Memory ConsumptionThe strange thing is that there is no Queue nor is there any traffic, but the memory consumption rises until the pod gets killed by the OOM.
Research Done
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
@Kraego this is not a memory leak. This is almost certainly due to the fact that some Kubernetes versions count kernel page cache as pod' memory footprint, which is incorrect because the page cache is managed by the kernel and no the application. Any environment that use streams will observe more and more memory used by kernel page cache over time, There is #7362 and at least a couple more discussions that go into a lot of detail about how to inspect effective kernel page cache. |
Beta Was this translation helpful? Give feedback.

@Kraego this is not a memory leak. This is almost certainly due to the fact that some Kubernetes versions count kernel page cache as pod' memory footprint, which is incorrect because the page cache is managed by the kernel and no the application.
Any environment that use streams will observe more and more memory used by kernel page cache over time,
and the kernel clears it when it sees fit.
There is #7362 and at least a couple more discussions that go into a lot of detail about how to inspect effective kernel page cache.