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 1rhPJl-00BIsx-KF for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Mar 2024 07:34: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 1rhPJk-00EWAp-1x for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Mar 2024 07:34: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 1rhPJi-00EWAh-RQ for pgsql-hackers@lists.postgresql.org; Tue, 05 Mar 2024 07:34:28 +0000 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rhPJf-002rBQ-8r for pgsql-hackers@lists.postgresql.org; Tue, 05 Mar 2024 07:34:26 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id A8D531140138; Tue, 5 Mar 2024 02:34:20 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 05 Mar 2024 02:34:20 -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=1709624060; x= 1709710460; bh=yPEdTeY8W2mJLkWjsIuobm66l7+Mp5QGXjBbhT4SuXY=; b=E mkdssZ/yl3dv2FTnN6BtIfEgh6UOtKPWuVI9SFIJNmjzU0e+TMiLPiW0MkNLyHyc 4aD79Of0ytmi7qHEQgar6MR4+f7wC2C/QpPnMEK3j8iS/fA6OL/NHfZzXNqlmDpJ LNvdxU6FBOO+xmoFOo8Ky6ji2PMVPHWQOF1R+2BLKfQJFnIov34bWKdvHSfW5hzd cKQbvafqDbn6kPxNG2A0LDNGZeQLkNc/4/1WUP1ljSozIneOi15YwlItKf5eFW7o /2dEvppgwmqt1sUBsgsGC/O5rDIJ3eDxMQmTMM9x9cCoUizh4hpsy9RWmV1Bp9cm dLGu8xgYYB366Q3Vnqjzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrheekgddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomhepkdetlhhv rghrohcujfgvrhhrvghrrgdkuceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdroh hrgheqnecuggftrfgrthhtvghrnheptefhvdfhveehvdduvdffueeugffffeevveegudeh uefftedugeeggeevudeuudevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtg homhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr lhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Mar 2024 02:34:20 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1709624058; bh=azc4+WsLB0NGpmQdzQHElUw75EYItXzkOEuJ4MRYtOo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=lhEM4ivXDdY+3lq0m/uz0rPWQLicKyv2HSZkhhqUZErOdxEZjnerg8+JR5jXmTFCq eHMGWIRHzIuAnfw9DDHilBPtf2ONWmMUpW1ikMUSxKB2SvVU3/JFg9gE2ThR5wIaqB Vs+cOBhflmgBpi8CTqkKY5ULP1KydBgJtMAdGkNbMXbzOFFvUIM3tnIlM3ecTbNy21 JnhU50CLDcCuYEvpRlGB6lq6GMMsCx0nFts87T5NDC9e8Il6YaegZ8MAqxicRJehLf 9f5lPvR58Dk89YW2YH2vrtGfes704Gho47b/jMv6ZPqrALLUDFjORUNVJxP89ezNzE ah4jLHzfKIr0Q== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 428AFCD5; Tue, 5 Mar 2024 08:34:18 +0100 (CET) Date: Tue, 5 Mar 2024 08:34:18 +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: <202403050734.lhm66vradnox@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-05, Hayato Kuroda (Fujitsu) wrote: > Basically sounds good. My concerns are: > > * GetNamedDSMSegment() does not returns a raw pointer to dsm_segment. This means > that it may be difficult to do dsm_unpin_segment on the caller side. Maybe we don't need a "named" DSM segment at all, and instead just use bare dsm segments (dsm_create and friends) or a DSA -- not sure. But see commit 31ae1638ce35, which removed use of a DSA in autovacuum/BRIN. Maybe fixing this is just a matter of reverting that commit. At the time, there was a belief that DSA wasn't supported everywhere so we couldn't use it for autovacuum workitem stuff, but I think our reliance on DSA is now past the critical point. BTW, we should turn BRIN autosummarization to be on by default. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Las mujeres son como hondas: mientras más resistencia tienen, más lejos puedes llegar con ellas" (Jonas Nightingale, Leap of Faith)