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 1mXlkP-0001MY-3C for pgsql-docs@arkaria.postgresql.org; Tue, 05 Oct 2021 14:48:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXlkN-0008Rz-3H for pgsql-docs@arkaria.postgresql.org; Tue, 05 Oct 2021 14:48: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 1mXlkM-0008Rq-TP for pgsql-docs@lists.postgresql.org; Tue, 05 Oct 2021 14:48:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXlkK-0003KA-9U for pgsql-docs@lists.postgresql.org; Tue, 05 Oct 2021 14:48:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 195Emgej4070815; Tue, 5 Oct 2021 10:48:42 -0400 From: Tom Lane To: sanjeev_adwal@yahoo.co.in cc: pgsql-docs@lists.postgresql.org Subject: Re: Correction to documentation at https://www.postgresql.org/docs/12/kernel-resources.html In-reply-to: <163342695612.12514.13980479819790496744@wrigleys.postgresql.org> References: <163342695612.12514.13980479819790496744@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Tue, 05 Oct 2021 09:42:36 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4070813.1633445322.1@sss.pgh.pa.us> Date: Tue, 05 Oct 2021 10:48:42 -0400 Message-ID: <4070814.1633445322@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form writes: > On https://www.postgresql.org/docs/12/kernel-resources.html, the command to > calculate memory allocated to postgres is not correct. Following is the > command as shown in 18.4.5. Linux Huge Pages. > pmap 4170 | awk '/rw-s/ && /zero/ {print $2}', this command does not return > any results with correct pid. Probably /zero/ needs to be updated with > /anon_hugepage/ The example seems to work as-given for me (testing on a RHEL8 system). It's of course not guaranteed to work on every flavor of Linux. regards, tom lane