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 1uT6x6-00HaFN-GC for pgsql-general@arkaria.postgresql.org; Sat, 21 Jun 2025 22:44:48 +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 1uT6x3-009iaz-Dd for pgsql-general@arkaria.postgresql.org; Sat, 21 Jun 2025 22:44:46 +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 1uT6x3-009iaq-2f for pgsql-general@lists.postgresql.org; Sat, 21 Jun 2025 22:44:45 +0000 Received: from relay16.mail.gandi.net ([2001:4b98:dc4:8::236]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uT6wz-003NgB-2R for pgsql-general@lists.postgresql.org; Sat, 21 Jun 2025 22:44:44 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id D58A643893; Sat, 21 Jun 2025 22:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1750545878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NQh/zzGSD6TJNvQs7Ue8YgFFmRq8tYIk5dU+ph4YDeU=; b=S0fJEHtyz1xtK7bxeSYO7rcbt1K7RYFiFq2DP+gmxeXs9k+cMUXcrCsS9ZlDp5ih7XKJsM QLf1zhuqbjIY4U3S2OBZZ1vSkFdROoFpV8jzLR7l+rmt+VLuqtyLFXLaHnVFedEUxdFWXd MxhSeZEqYNUcvcvfrdJB7sI7+WyGEiuDZa5SYUhjHHRIFRldZe3pNl/Ar7hVsCpFgqsUxV sZ8QoScKbu2ua0aIH9i5fzN0OCa7R2q+JTRT/gBpTtM3aYHjEEjtgfRn97IuoUdkkK8jWd A4hUGlIrOQ3tQt9aofXw7dijmPS13rCGi0r7io2WreITqgi5C6fas4PBy0V+jQ== Message-ID: <61bb2e7f-9c29-4c3f-a316-60780ce5512a@vondra.me> Date: Sun, 22 Jun 2025 00:44:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PostgreSQL 17.5 - could not map dynamic shared memory segment To: =?UTF-8?B?QWxlxaEgWmVsZW7DvQ==?= , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgdduvdehudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomhepvfhomhgrshcugghonhgurhgruceothhomhgrshesvhhonhgurhgrrdhmvgeqnecuggftrfgrthhtvghrnhepkeffvddugeetfeeileffteekleffgefghfeuffefhfelkeeltefhfeeigefgffeknecukfhppeekiedrgeelrddvfedtrddvtdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeeirdegledrvdeftddrvddtiedphhgvlhhopegluddtrddufeejrddtrddvngdpmhgrihhlfhhrohhmpehtohhmrghssehvohhnughrrgdrmhgvpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepiigvlhgvnhihrdgrlhgvshesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/21/25 23:09, Aleš Zelený wrote: > Hello, > ... > > The application benefits from parallel queries, so despite the first > temptation to disable parallel queries (based on log entries correlation > only, but is that the root cause?) I did not want to disable parallel > queries, if there is another workaround/solution/fix available. > > Thanks for any hints on how to provide more information if needed, as > well as for fix/workaround advice. > Could it be that you simply ran out of memory, or perhaps hit the overcommit? What does sysctl say? sysctl vm.overcommit_memory And what's CommitLimit/Committed_AS in /proc/meminfo? IIRC the shmem is counted against the limit, and if the system does not have significant swap, it's not uncommon to hit that (esp. with overcommit_memory=2). regards -- Tomas Vondra