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 1lrGTc-0007uG-36 for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 08:55: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 1lrGTb-0001PB-1G for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 08:55:47 +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 1lrGTa-0001NF-Kt for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 08:55:46 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lrGTX-0000dK-QF for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 08:55:46 +0000 Received: by mail-io1-xd2d.google.com with SMTP id k22so26018060ioa.9 for ; Thu, 10 Jun 2021 01:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=NMSq+CYd5kiNKqGkAkWjs3h6MQOhgtWJ9XDhyeqNshw=; b=HPDJdA27prRI3Zg7nQr6AYpRHlUw0TNsMVrZB4IbEDzVMvo4HRnim+ajuu3UF5Daq1 S9pTM/J6/iq5bLc29uPmjwj3K6i/AXeKVhqUmLuMikNbuzdSBLuInOSM1DUv5A7TlYBu NIoYSv/SPvzbZAuh/IrdAnTDQnoPxI+rFZ+z4QfFm/HGNa/CSaS8C0uzigJdlRSt2Vqz V6L3VcKapi3KPsit6QymRkjmzrr3seYx6MrhlEaOIhb+5nadjZwqTUz0c0fLRk5GJ9O3 BPjU78Df7mYV9hHjPu5MZ2meipsEG0A5rtbIbdwIWY5WG+fiRaxE10LzfmFrFKKJfr7u Dv5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=NMSq+CYd5kiNKqGkAkWjs3h6MQOhgtWJ9XDhyeqNshw=; b=s0J9hfakah58fSouHmDoI0sek2TLl24+gCROZaCFFNbbqQ67I+u++ltjNKB9BLey3T C3hJ0dROitxU6hOVH45CNxuTco4/6YiyaRcuJxYleezBhKcIwb1XS9vh4tNwCXmWfIBC pygOeHbl8HDI3fYckBUp/iQFlxIOyUJIDQfMw4jQp8zEZDc19C/x2W9J5ZvQIKisIyud vqnR8+CfTBzE5tHyu75SEqGimklJ65yTOA6uQ3/gMPO/KoNJHhJi4T+BanBBKQ77szFL Cmj/yjkVj/p92qsXBBbB7beB+4IHnoz6lj/3b7+2t3LfnnE3w1pdmyMOvfm5SsccnHvW 6Tkg== X-Gm-Message-State: AOAM531wQP1F4Yj+oaZQp3tD6jvhK9ttVCGp6HZveX2C/retQ2MUQ/o4 GlmiByRAJb3BeoLbUkFVrMvRpw== X-Google-Smtp-Source: ABdhPJxS4g4Rz0/9BR7qHGzZDqyvU3q/p8mEUyL4rrylp1CYYi16TkzKTLbgaGg4PnbRvLLCVevVgw== X-Received: by 2002:a05:6638:1029:: with SMTP id n9mr3709958jan.48.1623315342025; Thu, 10 Jun 2021 01:55:42 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id z16sm1368106ilp.73.2021.06.10.01.55.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jun 2021 01:55:41 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 334AD800AE5; Thu, 10 Jun 2021 03:55:40 -0500 (CDT) Date: Thu, 10 Jun 2021 03:55:40 -0500 From: Justin Pryzby To: Haseeb Khan Cc: pgsql-performance@lists.postgresql.org Subject: Re: Page File Size Reached Critical Threshold PostgreSQL V13 Message-ID: <20210610085539.GC16435@telsasoft.com> References: <20210610042853.GB16435@telsasoft.com> <9B6997F1-1E68-41BD-9AB1-E7508CCB48B2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9B6997F1-1E68-41BD-9AB1-E7508CCB48B2@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jun 10, 2021 at 11:41:09AM +0500, Haseeb Khan wrote: > You mean, So should I request for to increase the System Ram from 32 Gb to 64 Gb and keep the same parameter setting.Is it ? No - I don't know how large your DB is, or the other question that I asked. So I can't possibly make a suggestion to add RAM. But I do know that "half" is the worst possible setting for many databases. I suggest to provide some more information, and we can try to suggest a better configuration. https://wiki.postgresql.org/wiki/Slow_Query_Questions On 10-Jun-2021, at 9:28 AM, Justin Pryzby wrote: > > On Thu, Jun 10, 2021 at 05:45:45AM +0500, Haseeb Khan wrote: > >> We have installed PostgreSQL V13 on window’s server 2016, where we 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 came 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. Currently the Page File size is 9504MB. > > > > How large is your DB ? (Or the "active set" of the DB, if parts of it are > > accessed infrequently). > > > > What was the original performance issue that led you to increase shared_buffers ? > > > > 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 read > > 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. > > > > There are exceptions to the guideline - for example, if your DB is 23 GB in > > size, it might make sense to have the entire thing in 24GB OF shared_buffers. > > But most DB don't need to fit in shared_buffers, and you shouldn't make that a > > goal, unless you can measure a performance benefit.