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

From: Costa Alexoglou <costa(at)dbtune(dot)com>
To: hjp-pgsql(at)hjp(dot)at, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Used memory calculation in containers - docker stats and file cache
Date: 2024-11-04 13:35:23
Message-ID: CAJ+5Ff5vEbwBLFw9LyDG2mmL6Ljkj_r-6iGujYFAUQnPkYP_KQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 <https://github.com/hashicorp/nomad/issues/16230>, or
the parent one <https://github.com/moby/moby/issues/10824> that everyone is
linking to this.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2024-11-04 15:18:04 Re: Why not do distinct before SetOp
Previous Message Paul Brindusa 2024-11-04 11:53:41 Re: pg_wal folder high disk usage