pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
memory consumption of memory for postgres db container
5+ messages / 3 participants
[nested] [flat]

* memory consumption of memory for postgres db container
@ 2021-09-02 14:35 M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
  2021-09-02 14:59 ` Re: memory consumption of memory for postgres db container Ninad Shah <nshah.postgres@gmail.com>
  2021-09-03 06:52 ` Re: memory consumption of memory for postgres db container Stephan Knauss <pgsql@stephans-server.de>
  0 siblings, 2 replies; 5+ messages in thread

From: M Tarkeshwar Rao @ 2021-09-02 14:35 UTC (permalink / raw)
  To: pgsql-general

Hi all,

We did a stability test for our product, where we continuously inserting data into postgres tables. We did this for three days continuously.
Memory utilization of our Postgres container continuously increasing.

[cid:image001.jpg@01D7A035.D9017060]

Can you please provide us the clue why it is not constant and continuously increasing?

Regards
Tarkeshwar

Attachments:

image001.jpg (image/jpeg, 19.6K) download view image
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: memory consumption of memory for postgres db container
  2021-09-02 14:35 memory consumption of memory for postgres db container M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
@ 2021-09-02 14:59 ` Ninad Shah <nshah.postgres@gmail.com>
  2021-09-02 15:11   ` RE: memory consumption of memory for postgres db container M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Ninad Shah @ 2021-09-02 14:59 UTC (permalink / raw)
  To: M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>; +Cc: pgsql-general

No need to worry. This isn't really a concern.

No operating system releases memory upon using it, but caches it once the
program finishes. This actually saves time as memory blocks can be
allocated in less time than loading new blocks.
However, if it's required to release memory, it can be performed via a few
commands.


Regards,
Ninad Shah

On Thu, 2 Sept 2021 at 20:05, M Tarkeshwar Rao <
m.tarkeshwar.rao@ericsson.com> wrote:

> Hi all,
>
>
>
> We did a stability test for our product, where we continuously inserting
> data into postgres tables. We did this for three days continuously.
>
> Memory utilization of our Postgres container continuously increasing.
>
>
>
>
>
> Can you please provide us the clue why it is not constant and continuously
> increasing?
>
>
>
> Regards
>
> Tarkeshwar
>

Attachments:

image001.jpg (image/jpeg, 19.6K) download view image
^ permalink raw reply [nested|flat] 5+ messages in thread

* RE: memory consumption of memory for postgres db container
  2021-09-02 14:35 memory consumption of memory for postgres db container M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
  2021-09-02 14:59 ` Re: memory consumption of memory for postgres db container Ninad Shah <nshah.postgres@gmail.com>
@ 2021-09-02 15:11   ` M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
  2021-09-02 19:38     ` Re: memory consumption of memory for postgres db container Ninad Shah <nshah.postgres@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: M Tarkeshwar Rao @ 2021-09-02 15:11 UTC (permalink / raw)
  To: Ninad Shah <nshah.postgres@gmail.com>; +Cc: pgsql-general

Can you please suggest few commands?

Regards
Tarkeshwar

From: Ninad Shah <nshah.postgres@gmail.com>
Sent: Thursday, September 2, 2021 8:30 PM
To: M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
Cc: pgsql-general@postgresql.org
Subject: Re: memory consumption of memory for postgres db container

No need to worry. This isn't really a concern.

No operating system releases memory upon using it, but caches it once the program finishes. This actually saves time as memory blocks can be allocated in less time than loading new blocks.
However, if it's required to release memory, it can be performed via a few commands.


Regards,
Ninad Shah

On Thu, 2 Sept 2021 at 20:05, M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com<mailto:m.tarkeshwar.rao@ericsson.com>> wrote:
Hi all,

We did a stability test for our product, where we continuously inserting data into postgres tables. We did this for three days continuously.
Memory utilization of our Postgres container continuously increasing.

[cid:image001.jpg@01D7A03A.E4BE8F00]

Can you please provide us the clue why it is not constant and continuously increasing?

Regards
Tarkeshwar


Attachments:

image001.jpg (image/jpeg, 19.4K) download view image
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: memory consumption of memory for postgres db container
  2021-09-02 14:35 memory consumption of memory for postgres db container M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
  2021-09-02 14:59 ` Re: memory consumption of memory for postgres db container Ninad Shah <nshah.postgres@gmail.com>
  2021-09-02 15:11   ` RE: memory consumption of memory for postgres db container M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
@ 2021-09-02 19:38     ` Ninad Shah <nshah.postgres@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Ninad Shah @ 2021-09-02 19:38 UTC (permalink / raw)
  To: M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>; +Cc: pgsql-general

You may checkout using "free -m" and may see how much memory is cache.

If you are using RHEL, you may clear cache using below commands.

sync; echo 1 > /proc/sys/vm/drop_caches; sync

Though this is going to release some memory from the cache, it may fill up
the cache again.


Regards,
Ninad Shah

On Thu, 2 Sept 2021 at 20:41, M Tarkeshwar Rao <
m.tarkeshwar.rao@ericsson.com> wrote:

> Can you please suggest few commands?
>
>
>
> Regards
>
> Tarkeshwar
>
>
>
> *From:* Ninad Shah <nshah.postgres@gmail.com>
> *Sent:* Thursday, September 2, 2021 8:30 PM
> *To:* M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
> *Cc:* pgsql-general@postgresql.org
> *Subject:* Re: memory consumption of memory for postgres db container
>
>
>
> No need to worry. This isn't really a concern.
>
>
>
> No operating system releases memory upon using it, but caches it once the
> program finishes. This actually saves time as memory blocks can be
> allocated in less time than loading new blocks.
>
> However, if it's required to release memory, it can be performed via a few
> commands.
>
>
>
>
>
> Regards,
>
> Ninad Shah
>
>
>
> On Thu, 2 Sept 2021 at 20:05, M Tarkeshwar Rao <
> m.tarkeshwar.rao@ericsson.com> wrote:
>
> Hi all,
>
>
>
> We did a stability test for our product, where we continuously inserting
> data into postgres tables. We did this for three days continuously.
>
> Memory utilization of our Postgres container continuously increasing.
>
>
>
>
>
> Can you please provide us the clue why it is not constant and continuously
> increasing?
>
>
>
> Regards
>
> Tarkeshwar
>
>

Attachments:

image001.jpg (image/jpeg, 19.4K) download view image
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: memory consumption of memory for postgres db container
  2021-09-02 14:35 memory consumption of memory for postgres db container M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
@ 2021-09-03 06:52 ` Stephan Knauss <pgsql@stephans-server.de>
  1 sibling, 0 replies; 5+ messages in thread

From: Stephan Knauss @ 2021-09-03 06:52 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 02.09.2021 16:35, M Tarkeshwar Rao wrote:
>
> We did a stability test for our product, where we continuously 
> inserting data into postgres tables. We did this for three days 
> continuously.
>
> Memory utilization of our Postgres container continuously increasing.
>
I am not certain whether it is related, but you might want to check. I 
had a similar issue where the anonymous memory was sort of leaking with 
a rate of 2 GiB per hour.

it was resolved by doing a "set jit=off". You can see the full thread 
including some hints on how to check where memory is allocated here:

https://www.postgresql.org/message-id/flat/9f73e655-14b8-feaf-bd66-c0f506224b9e%40stephans-server.de

Stephan







^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2021-09-03 06:52 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 14:35 memory consumption of memory for postgres db container M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
2021-09-02 14:59 ` Ninad Shah <nshah.postgres@gmail.com>
2021-09-02 15:11   ` M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
2021-09-02 19:38     ` Ninad Shah <nshah.postgres@gmail.com>
2021-09-03 06:52 ` Stephan Knauss <pgsql@stephans-server.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox