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 1lrCJS-0005OU-Js for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 04:29:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrCJQ-0000hm-7A for pgsql-performance@arkaria.postgresql.org; Thu, 10 Jun 2021 04:29:00 +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 1lrCJP-0000he-QZ for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 04:28:59 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lrCJN-0006mD-8A for pgsql-performance@lists.postgresql.org; Thu, 10 Jun 2021 04:28:59 +0000 Received: by mail-il1-x12a.google.com with SMTP id b9so567115ilr.2 for ; Wed, 09 Jun 2021 21:28:56 -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=2frFdnQXq9Ry4vu2uHiRoOrn8y+79c7zlLOUjwMG/e0=; b=CK50I6+DF9B6cH9ueiGUPIQMj1yY2T3EzW44lRudeicm7q3TAAVuF9h74IcUxSsoCO n3Uxl22Yex1lSUt09NrKerJKvZ82NhJQxX2/P9XYbSByldy9mKIXzMTfaeHs7tOWGDb9 9Os9/bDaXT+9zR9NO+1xUVCwZXqeIJz4bhhejpRSNEbGivPk/LvXFqb/KuxhUmlg4MF5 3zlKWQxqeoXb4A9Ros16F5JR1mA5UO99UT0ddoRrJsEnoch1QCXSVVc3kdVNWVaYGR5C V08e9TF6E7SII3zdw+6lFKLjgYwxZqJyF7+jpUBf1NE9a0dUyZcaYipHAAfeqFo8rGGS CuRg== 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=2frFdnQXq9Ry4vu2uHiRoOrn8y+79c7zlLOUjwMG/e0=; b=g2v4hfQgJAn4ESzW3CnQ8ADjWmzAhmFpTI2OYYGvCdd557jGmwxYuJbCCNbOX7Ednh Q+2e+kRelNIJcZdtz6XFAflpkppjDHYLL493CF538XyAk8Zytoj96RPyITAaUOYdabKB fCaqiSpYVCTw8KVR9xlx0RCniw5NoDHZdN8/yZ87Cmx1Msv3dqGzf+jodG8o1I+6wF9C M/tA4qltye8vbJzvwaUR0RtUkj8K/S2jPh4V3BH5+crtcUBQlaVRlO5OFOOc1AFAwShJ g92/NgrdHY30TVjObRc9T3lNU36rZl+Oi6YClXE4yfvBtZJ/PV9ZbdIRj20hkqwnZ7iH d8fg== X-Gm-Message-State: AOAM531vD3pYM2MHNlButFIJKjcVch3u53RXZQz9+9Rki88NJQKFI5my p2SGY96gAMSrjIox6KPAEAuuvw== X-Google-Smtp-Source: ABdhPJxfRLcN3jZqtngbCGnvvUOvrjqdW9YjEtuAsGPJcHW4iiDW0Np9NtuTEt5JGwbN3kOKmqJesQ== X-Received: by 2002:a92:50b:: with SMTP id q11mr2434390ile.119.1623299335458; Wed, 09 Jun 2021 21:28:55 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id v3sm1070154ilh.74.2021.06.09.21.28.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jun 2021 21:28:55 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id EF72C800A4B; Wed, 9 Jun 2021 23:28:53 -0500 (CDT) Date: Wed, 9 Jun 2021 23:28:53 -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: <20210610042853.GB16435@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 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. Hi, 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. -- Justin