Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5ia7-0000mL-Po for pgsql-general@arkaria.postgresql.org; Mon, 27 Jun 2022 06:50:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o5ia6-0003fu-I6 for pgsql-general@arkaria.postgresql.org; Mon, 27 Jun 2022 06:50:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5ia6-0003fl-3N for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 06:50:46 +0000 Received: from outbound.visena.net ([46.226.12.34]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5ia3-0004xa-Kn for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 06:50:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=visena.com; s=20141101.wh; h=Content-Type:MIME-Version:Subject:References:In-Reply-To: Message-ID:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5qbl2vnnU6SgVmD1O3gRGJTlNoyZc1GKKuREiSS1QFg=; b=NQ89kWFWAgROAwsq8WLDn4su0q H80MuER+z0ZgkQqTGI1jVdYksgnC+Ztmno1vW2gDsXJvUPYiYgCS6BauOAJyXaa91pDZbWksgR6ry rIf1eqIfmrjGbQLdLd1VUYifWx18XZcKnUy5xyQB1DpM1Kume5dL2mH844O82HjeDSxE=; Received: from batch01.services.internal.visena.net ([10.3.0.103]) by outbound.visena.net with utf8esmtp (Exim 4.93) (envelope-from ) id 1o5ia2-00Gg3L-Ir; Mon, 27 Jun 2022 08:50:42 +0200 Date: Mon, 27 Jun 2022 08:50:42 +0200 (CEST) From: Andreas Joseph Krogh To: "W.P." Cc: pgsql-general@lists.postgresql.org Message-ID: In-Reply-To: References: Subject: Sv: How can I set up Postgres to use given amount of RAM? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_56560_757972067.1656312642505" X-Mailer: Visena Mail 3.2.105 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_56560_757972067.1656312642505 Content-Type: multipart/related; boundary="----=_Part_56561_1896312504.1656312642505" ------=_Part_56561_1896312504.1656312642505 Content-Type: multipart/alternative; boundary="----=_Part_56562_1898023306.1656312642521" ------=_Part_56562_1898023306.1656312642521 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable P=C3=A5 s=C3=B8ndag 26. juni 2022 kl. 20:40:01, skrev W.P. >: 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:=20 https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-EFFEC= TIVE-CACHE-SIZE =20 -- Andreas Joseph Krogh ------=_Part_56562_1898023306.1656312642521 Content-Type: text/html;charset=UTF-8 Content-Transfer-Encoding: quoted-printable
P=C3=A5= s=C3=B8ndag 26. juni 2022 kl. 20:40:01, skrev W.P. <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-4Gho= w to B of RAM for caching tables=C2=A0 I run queries on?

As I can se= e disk actity running queries.


W.P..

The closest thing I can think of is effective_cache_size:= https://www.postgresql.org/docs/current/runtim= e-config-query.html#GUC-EFFECTIVE-CACHE-SIZE

=C2=A0

=C2=A0

--
Andreas Joseph Kr= ogh
=C2=A0
------=_Part_56562_1898023306.1656312642521-- ------=_Part_56561_1896312504.1656312642505-- ------=_Part_56560_757972067.1656312642505--