From: Andreas Joseph Krogh <andreas@visena.com>
To: W.P. <laurentp@wp.pl>
Cc: pgsql-general@lists.postgresql.org
Subject: Sv: How can I set up Postgres to use given amount of RAM?
Date: Mon, 27 Jun 2022 08:50:42 +0200 (CEST)
Message-ID: <VisenaEmail.e9.dbfaaf5e44ccdcbb.181a3ead8f8@visena.app.internal.visena.net> (raw)
In-Reply-To: <e55db013-f6a8-4efd-2fce-f9f26b1029cc@wp.pl>
References: <e55db013-f6a8-4efd-2fce-f9f26b1029cc@wp.pl>
På søndag 26. juni 2022 kl. 20:40:01, skrev W.P. <laurentp@wp.pl
<mailto:laurentp@wp.pl>>:
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..
The closest thing I can think of is effective_cache_size:
https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZE
<https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFECTIVE-CACHE-SIZE;
--
Andreas Joseph Krogh
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: andreas@visena.com, laurentp@wp.pl
Subject: Re: How can I set up Postgres to use given amount of RAM?
In-Reply-To: <VisenaEmail.e9.dbfaaf5e44ccdcbb.181a3ead8f8@visena.app.internal.visena.net>
References: <e55db013-f6a8-4efd-2fce-f9f26b1029cc@wp.pl> <VisenaEmail.e9.dbfaaf5e44ccdcbb.181a3ead8f8@visena.app.internal.visena.net>
* 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