From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How can I set up Postgres to use given amount of RAM?
Date: Sun, 26 Jun 2022 19:39:20 -0400
Message-ID: <f60cb360-57b2-a41e-c8a9-08a65be1f77a@gmail.com> (raw)
In-Reply-To: <e55db013-f6a8-4efd-2fce-f9f26b1029cc@wp.pl>
References: <e55db013-f6a8-4efd-2fce-f9f26b1029cc@wp.pl>
On 6/26/22 14:40, W.P. wrote:
> Question in topic:
>
> "How can I set up Postgres to use given amount of RAM?"
>
> I have now laptop with 8GB of RAM, i can see Linux uses no more than
> 2-3GB.
>
> So my question is how to FORCE PostgreSQL
>
> use let's say 2-4Ghow to B of RAM for caching tablesĀ I run queries on?
>
> As I can see disk actity running queries.
>
>
> W.P..
>
>
>
I would try docker with --memory option. An alternative is to create a
VM with the given amount of memory. If your laptop is memory starved,
then creating a VM is probably not an option. Docker is much cheaper.
Dockerfile is relatively simple to master and you can use Docker to run
almost anything.
Regards
--
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: gogala.mladen@gmail.com
Subject: Re: How can I set up Postgres to use given amount of RAM?
In-Reply-To: <f60cb360-57b2-a41e-c8a9-08a65be1f77a@gmail.com>
References: <e55db013-f6a8-4efd-2fce-f9f26b1029cc@wp.pl> <f60cb360-57b2-a41e-c8a9-08a65be1f77a@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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