pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedHow can I set up Postgres to use given amount of RAM?
3+ messages / 3 participants
[nested] [flat]
* How can I set up Postgres to use given amount of RAM?
@ 2022-06-26 18:40 W.P. <laurentp@wp.pl>
0 siblings, 2 replies; 3+ messages in thread
From: W.P. @ 2022-06-26 18:40 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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..
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: How can I set up Postgres to use given amount of RAM?
@ 2022-06-26 22:49 Zahid Rahman <zahidr1000@gmail.com>
parent: W.P. <laurentp@wp.pl>
1 sibling, 0 replies; 3+ messages in thread
From: Zahid Rahman @ 2022-06-26 22:49 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
https://severalnines.com/database-blog/architecture-and-tuning-memory-postgresql-databases
On Sun, 26 Jun 2022, 11:40 pm W.P., <laurentp@wp.pl> 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..
>
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: How can I set up Postgres to use given amount of RAM?
@ 2022-06-26 23:39 Mladen Gogala <gogala.mladen@gmail.com>
parent: W.P. <laurentp@wp.pl>
1 sibling, 0 replies; 3+ messages in thread
From: Mladen Gogala @ 2022-06-26 23:39 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-06-26 23:39 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 18:40 How can I set up Postgres to use given amount of RAM? W.P. <laurentp@wp.pl>
2022-06-26 22:49 ` Zahid Rahman <zahidr1000@gmail.com>
2022-06-26 23:39 ` Mladen Gogala <gogala.mladen@gmail.com>
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