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 1rh3O6-009LHz-09 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2024 08:09:30 +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 1rh3O4-005qMy-EZ for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2024 08:09:28 +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 1rh3O3-005qMq-4s for pgsql-hackers@lists.postgresql.org; Mon, 04 Mar 2024 08:09:28 +0000 Received: from wfout7-smtp.messagingengine.com ([64.147.123.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rh3Nz-002gb7-1r for pgsql-hackers@lists.postgresql.org; Mon, 04 Mar 2024 08:09:26 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id 802FC1C000B8; Mon, 4 Mar 2024 03:09:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 04 Mar 2024 03:09:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709539758; x= 1709626158; bh=CKE2z+u5w90oVQrdYfzK+XE/QZo4VqyiJ1KzxJ11MVQ=; b=f FGjBMq8dMh+cTgWLVZVcm+4OunQwZRdIKLYfz3sP+q88mwydR1anbc4ao69GiBCE OkOB1SC62fvhMd2L3rPzuDtjOjFuiqdVz/GUKhNGupUryUNd/SzxClcCVrq+7F+z tRBBXBOYD/2/ahm0kKj644pB4mxma6xYwO258cg4akLC//uZF34SVlcfdrBIQkrz rRIvt/rQa7lSkWkUet9DEoaC1XB6G/iryXhUcs6GFwN9m4KkfP4CyF5Rl/WeUflA leyQXLvz8HCcs3vPiy05oDxxoWvvWIpbDxDttNQrYq7kz6bFHmjVeWm+RMiwb/PE QUj5LdvLrnb3kKL3K4a6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrheeigdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Mar 2024 03:09:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1709539755; bh=B1yNrp5G43XcRfu121RstQ8P5eoHUgvIYvKdHRcFRGI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=fm0VwrL0rk01jKk6nEATaSGH2cB+NR1ELHsvGemOqRzJo0p9P6vvAEgLFCaeWB9Tr fHgN55PReMBlcJf2dI+f2PBGZjDd4TdzyopmUQBixk+mVaUMNF4RouIEzBMSx+4iuj 8wv5akHxHs6ipRn3ArxcmuPhUaVFE6/KIy9IvtsVeFQwnvWI7nyeNNv64kJ6xhhlMy 8Tnc3iYzDemHIP3kXRa+V03lW21aj0BouSEQ4DWhmBeR6V0O5nQNX9lI/3N9955bug As5OSYSMqZQC6eDtwpQAxX6SPrO3Yx5zf6+vh4lMVm3LKnJqDwedI9JWRgye9LMlbJ EpF1YJqZJgRMw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 2A72BCA3; Mon, 4 Mar 2024 09:09:15 +0100 (CET) Date: Mon, 4 Mar 2024 09:09:15 +0100 From: Alvaro Herrera To: "Hayato Kuroda (Fujitsu)" Cc: "'pgsql-hackers@lists.postgresql.org'" Subject: Re: Some shared memory chunks are allocated even if related processes won't start Message-ID: <202403040809.ovvbwsmerzer@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Mar-04, Hayato Kuroda (Fujitsu) wrote: > Dear hackers, > > While reading codes, I found that ApplyLauncherShmemInit() and > AutoVacuumShmemInit() are always called even if they would not be > launched. Note that there are situations where the autovacuum launcher is started even though autovacuum is nominally turned off, and I suspect your proposal would break that. IIRC this occurs when the Xid or multixact counters cross the max_freeze_age threshold. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Porque Kim no hacía nada, pero, eso sí, con extraordinario éxito" ("Kim", Kipling)