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 1lrENT-0002G2-Ft for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 06:41:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrENR-0004An-C9 for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 06:41:17 +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 1lrENR-0004Ae-2Z for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 06:41:17 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lrENN-0007rD-8z for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 06:41:16 +0000 Received: by mail-wr1-x434.google.com with SMTP id o3so850603wri.8 for ; Wed, 09 Jun 2021 23:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=wdLmN5OEGebWiyAoPv+Qqd9iKkYnDx4caiUfSQTiCBs=; b=B68wWqhkIfpdi2/6iIjffIo4NJyB40ZiCD/ayYDBgDbbvpZPBOel6aj/y6R2Az01aG YdQVdvNetHyuohJbVZnXHc7rKpOPmDx+teHQyNcCtIYYCzkaT++erl62pi685ao/37Ua FMwVItqZJfuKPQgX6xDwwSmKRqr9uJcmMBuHrPVrBA5oQd5LIveSJ1RVnilahEacobDL qcM5CIyQBCu6CyF7wVjJK9cMTaYUMPedG8xlc7laMe4npBDAcCp9ciaOao09nyIjSK/6 gLteXbKPVUkLRSCdTk07VUjXq+m+DxdVjlaH9ngj8ExtPg1nEKP0cjl9uLgAEM3Y/vSY Yyeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=wdLmN5OEGebWiyAoPv+Qqd9iKkYnDx4caiUfSQTiCBs=; b=Q+01T7LhwsTURoDhUWBn6G7cq4kddV7tKGa03XrjjRoQcgYUtGETAIWat+K4VALGpC Tf5ISzR/Td4GgWRiYSqaaJPS/llRiFcDmKMvNheWeMkxt1cRt6SOBUPzhtIHCr7cKpIW 2d1PGbKdMOOgXVOb8v56xXGmFAk2ORSD0CMbnEpFyNGC84wW1UCieQmSMXV9QpeOySDL BFPucbZbneCAE+TftRxFe5HLCNMANMJlTU4ZzGJauhHMfTj+B7TxGOy9R/xJrObqUGXp kLQW/OZyZxvonxsduxAmzDZWPmPv74rOq3PZmfeIaVgAwB35y1W4ipeYuIjYuLzxu3ti cRHw== X-Gm-Message-State: AOAM532AJVE++CnRstEsEDDHJy5p32Zs2voncAd9uePNfq+BybRbWcMF CWWUwr23uvTw3IcL3bLZrQmH4mWFMj4= X-Google-Smtp-Source: ABdhPJyy0wFzh8Ig0UY00e5yawcpp8svn/GQ36UHJY6XSzVnkBpzppYGupywUxbyItMVQETVGiz+qw== X-Received: by 2002:a5d:4dd0:: with SMTP id f16mr3530828wru.192.1623307272179; Wed, 09 Jun 2021 23:41:12 -0700 (PDT) Received: from smtpclient.apple ([61.5.153.49]) by smtp.gmail.com with ESMTPSA id v18sm2494505wrb.10.2021.06.09.23.41.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 23:41:11 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Haseeb Khan Mime-Version: 1.0 (1.0) Subject: Re: Page File Size Reached Critical Threshold PostgreSQL V13 Date: Thu, 10 Jun 2021 11:41:09 +0500 Message-Id: <9B6997F1-1E68-41BD-9AB1-E7508CCB48B2@gmail.com> References: <20210610042853.GB16435@telsasoft.com> Cc: pgsql-performance@lists.postgresql.org In-Reply-To: <20210610042853.GB16435@telsasoft.com> To: Justin Pryzby X-Mailer: iPhone Mail (18F72) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Justin,=20 You mean, So should I request for to increase the System Ram from 32 Gb to 6= 4 Gb and keep the same parameter setting.Is it ? =20 Br, Haseeb Ahmad=20 >=20 > On 10-Jun-2021, at 9:28 AM, Justin Pryzby wrote: >=20 > =EF=BB=BFOn Thu, Jun 10, 2021 at 05:45:45AM +0500, Haseeb Khan wrote: >> We have installed PostgreSQL V13 on window=E2=80=99s server 2016, where w= e kept the Ram of the Server is 32 GB and disk size is 270 GB.Later we faced= some performance issues regarding the database, after deep dive into it we c= ame up and increased the Shared buffer size to 16 Gb. After the changed I am= not sure we are facing that Page file Size reached to critical threshold. C= urrently the Page File size is 9504MB. >=20 > Hi, >=20 > How large is your DB ? (Or the "active set" of the DB, if parts of it are= > accessed infrequently). >=20 > What was the original performance issue that led you to increase shared_bu= ffers ? >=20 > You've set shared_buffers to half of your RAM, which may be a "worst case"= > setting, since everything that's read into shared_buffers must first be re= ad > into the OS cache. So it may be that many blocks are cached twice, rather= than > relying on a smaller shared_buffers only for the "hottest" blocks, and the= > larger OS cache for everything else. >=20 > There are exceptions to the guideline - for example, if your DB is 23 GB i= n > size, it might make sense to have the entire thing in 24GB OF shared_buffe= rs. > But most DB don't need to fit in shared_buffers, and you shouldn't make th= at a > goal, unless you can measure a performance benefit. >=20 > --=20 > Justin