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 1lTTrK-0005OZ-Cl for pgsql-admin@arkaria.postgresql.org; Mon, 05 Apr 2021 18:21:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTTrJ-0003yv-5L for pgsql-admin@arkaria.postgresql.org; Mon, 05 Apr 2021 18:21:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTTrI-0003yn-TI for pgsql-admin@lists.postgresql.org; Mon, 05 Apr 2021 18:21:56 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTTrF-0006sv-B5 for pgsql-admin@postgresql.org; Mon, 05 Apr 2021 18:21:55 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 8BE0B25723252 for ; Mon, 5 Apr 2021 11:21:51 -0700 (MST) Date: Mon, 5 Apr 2021 11:21:51 -0700 (MST) From: DrakoRod To: pgsql-admin@postgresql.org Message-ID: <1617646911570-0.post@n3.nabble.com> Subject: How to calculate how too much memory ram need a PostgreSQL Server? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi folks!! I support a PostgreSQL database it grew from 100 to 300 GB in couple months= , I we need tuning all OS parameters (is a virtual enviroment). Currently the configuration is the follow: Virtual Machine Ubuntu 18.04 12 CPUS 8 GB in RAM 400 in Disk Cl=C3=BAster database size 320 GB Some queries have times too differents, the same query sometimes it execute in 8 10 seconds sometimes in 12 15 minutes, many querys make joins between 40, 50 millions rows. I know some factors like relation between entities affect times, but in general I suspect the mainly problem si resources in OS. I suspect is a lack to memory ram but we need justify the change in OS RAM, so, How to calculate how too much memory ram need a PostgreSQL Server? Too need know how because the database size continue grows. Best Regards DrakoRod ----- Dame un poco de fe, eso me bastar=C3=A1. Wolfgres - Postgres Enterprise=20 -- Sent from: https://www.postgresql-archive.org/PostgreSQL-admin-f2076596.htm= l