Re: Used memory calculation in containers - docker stats and file cache - Mailing list pgsql-general

From Costa Alexoglou
Subject Re: Used memory calculation in containers - docker stats and file cache
Date
Msg-id CAJ+5Ff5vEbwBLFw9LyDG2mmL6Ljkj_r-6iGujYFAUQnPkYP_KQ@mail.gmail.com
Whole thread Raw
List pgsql-general
> 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.

pgsql-general by date:

Previous
From: Paul Brindusa
Date:
Subject: Re: pg_wal folder high disk usage
Next
From: Tom Lane
Date:
Subject: Re: Why not do distinct before SetOp