Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBRdm-003tPY-6W for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Nov 2024 04:39:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tBRdj-000v9D-Jr for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Nov 2024 04:39:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBRdj-000v94-9y for pgsql-hackers@lists.postgresql.org; Thu, 14 Nov 2024 04:39:31 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBRdc-001pNk-AZ for pgsql-hackers@postgresql.org; Thu, 14 Nov 2024 04:39:31 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 40CF713802ED; Wed, 13 Nov 2024 23:39:24 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 13 Nov 2024 23:39:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1731559164; x=1731645564; bh=D9vwFjsrOl IcMoFDidUTYPUphDxv9jyhLKlE8qt7xFs=; b=Y1rxSQqhZY0OIhmjDOU+Mq3l5P yJQAxs7fOW2t56gbw2ghYr+6D5RqOChJgHvvkIACZ9QMMETrr4EOJaLG/vYEnhLQ 6fqLniODXSV6+NywuQlP4FPVsBE6HjplptHbhtsZpVwFbkYcWvUlvmCbDGe/uYp8 fV3ZwVpgdY/9rbynvUWFngFUggcT8pagyr8tHfqf5121+63li0H3XqKwVYM/tgFJ V1ZNVXyJQTKZppNWMUk8umhvUcpqPUqQKC1KRLLil2u2BK7yAw39USZreOK2iOZS p8vARisx5y5hNhRRtry8yzbLTq7LsPj02kDuP/Uf6ufhiSPdxPvw73nNnLJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1731559164; x=1731645564; bh=D9vwFjsrOlIcMoFDidUTYPUphDxv9jyhLKl E8qt7xFs=; b=RJNOPTLBY3trQSQkb+gnk5HYib22B+5pIPfjy2+sYR1OV8NckH/ ZCpRR4TgHIKm/dTDqZOFoLiNddTQt7sLHj06CPW86t65VxSb4uDPHbMbvWj013jS AwsWdX3VR2o21k1uLeEJD7BDhOyx3qBIqSELFL+l8HdecNsK8uVfSxoARU7I3oeQ XKWrNNxr6c5rjxYcZ2ereG/bAxwnv9WuBoPjpHfeajFCrHFwcPZmt5QbjdJ9EZ1M FfLMtzNh23RQVP+SqU6WUqRimCoGiYcjLcSE+u7jsEGs3mP1s1C2BsSMR8UVXx+x 1qanb/0CXKUYEgvMc+XGhldasv9vAaxQxDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvddugdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenfghrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhgg tggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoe hmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetteeg vddvveeuieduudevkeffveevtdduleehleelffdtvdegfeegtdejtedtkeenucffohhmrg hinhepphhoshhtghhrrdgvshenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsggprhgtph htthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrrghhihhlrghshigv ugeltdesghhmrghilhdrtghomhdprhgtphhtthhopegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshht ghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Nov 2024 23:39:22 -0500 (EST) Date: Thu, 14 Nov 2024 13:39:14 +0900 From: Michael Paquier To: Rahila Syed Cc: Alvaro Herrera , PostgreSQL-development Subject: Re: Enhancing Memory Context Statistics Reporting Message-ID: References: <202410261414.y3erpkk5hnyn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="I1i5tqJsW8qqyct1" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --I1i5tqJsW8qqyct1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Nov 13, 2024 at 01:00:52PM +0530, Rahila Syed wrote: > I used one DSA area per process to share statistics. Currently, > the size limit for each DSA is 16 MB, which can accommodate > approximately 6,700 MemoryContextInfo structs. Any additional > statistics will spill over to a file. I opted for DSAs over DSMs to > enable memory reuse by freeing segments for subsequent > statistics copies of the same backend, without needing to > recreate DSMs for each request. Already mentioned previously at [1] and echoing with some surrounding arguments, but I'd suggest to keep it simple and just remove entirely the part of the patch where the stats information gets spilled into disk. With more than 6000-ish context information available with a hard limit in place, there should be plenty enough to know what's going on anyway. [1]: https://postgr.es/m/ZxdKx0DywUTAvkEF@paquier.xyz -- Michael --I1i5tqJsW8qqyct1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmc1fvIACgkQnvQgOdby QH20Cg//dXeqlZne6Ll8B39bGrnDkYqtAjnXqA/4t1gHHVm2TdWxQuNLqDuF4X4E Cm3q4EUvVKagawxvZyr/SqQxmdGp3Jgqnaosu3cDpe2XCTOM7frp3Xau+GA2jDoc igy1GjqqpFWuKxWqOX38nfItvsKjzrHbCL3webaoSJIhFwY1ksMwsASnE9vkdTZD Oa2hWdmcMUAEMpIWI24/KbO3WX4nJX6hauen42x1b21fHV3IIRoDd6Ta3FvggYfK FcjVFm09z0ELD85r8jWt8xWwzFhW007MyGdsIwdueNYZRq0Upcw1bL7VdaTLeeqj vuIeUuQ3and9sBRA3XjeMPeyQCtK6xQond3Zd/U+F49NnztE3xQXFkyjURSH7mX1 qrxvcB5a+UQiOxcLFkX3oqXzcGLwinOShgqVwwwk2UKAq3JpY6THhHcuUsUFoabU AAvWJyNhd9oT93nlOZacpenSmDGFrUzIBg7msYAsXb9QzEd9WEmgxUVap/SaAt2E Lg567l1H5kBIwMLOFUFtOBSZ5dnnz1N74FxBYToQO1EhZo9EojCbeH6cufRctfeh JAhnfnthCjDXo5lgPTTDjNwVciBR5KIHTjYPKGt65puQy8G2zed5Q//+nQuW4MuQ 5SgQG+bclhd1VCmHssT/1biEdmRJ2klCfIqHc4Znjt5qEAX7+Bs= =YadO -----END PGP SIGNATURE----- --I1i5tqJsW8qqyct1--