I have a sidecar container with the following resources:
resources:
limits:
memory: 512Mi
requests:
memory: 64Mi
However, when I run top
, I see this:
- envoy & pilot-agent seem to be using ~ 363MB & 61MB respectively
- used memory at the top is 54.6MB
- running
free -m
gives the following; a seemingly uncorrelated answer
$ free -m
total used free shared buff/cache available
Mem: 385307 47140 315018 292 23148 336021
Swap: 0 0 0
What exactly is going on here, and how much memory are those processes consuming?