Thread: Re: Used memory calculation in containers - docker stats and file cache

Re: Used memory calculation in containers - docker stats and file cache

From
Costa Alexoglou
Date:
> I don't know if Docker does anything strange here.

I am not sure if this is docker specific or cgroup comes into play. 
The measurement is implemented in docker CLI, but I would make the assumption
that the eviction is done within the cgroup scope.

> A large file (or many smaller files) which is cached is deleted

The increase pattern is "incremental" until the huge eviction, and this is my question.
Couldn't also the eviction happen incrementally rather than 15GB of file cache evicted on an instant?

> So I'd double check the logs if there are
any errors.

Not any error in the logs, unfortunately (or fortunately).


Seems like this issue, or the parent one that everyone is linking to this.