Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhI2J-0007kw-KX for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Aug 2017 16:16:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dhI2J-0002g9-6v for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Aug 2017 16:16:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dhI2H-0002cI-Pr for pgsql-hackers@postgresql.org; Mon, 14 Aug 2017 16:16:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dhI2E-0002oZ-KW for pgsql-hackers@postgresql.org; Mon, 14 Aug 2017 16:16:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v7EGG50c009715; Mon, 14 Aug 2017 12:16:05 -0400 From: Tom Lane To: Robert Haas cc: Alvaro Herrera , Andres Freund , Thomas Munro , Dilip Kumar , Pg Hackers Subject: Re: shared memory based stat collector (was: Sharing record typmods between backends) In-reply-to: References: <20170814005656.d5tvz464qkmz66tq@alap3.anarazel.de> <32138.1502675970@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 14 Aug 2017 11:46:10 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9713.1502727365.1@sss.pgh.pa.us> Date: Mon, 14 Aug 2017 12:16:05 -0400 Message-ID: <9714.1502727365@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Sun, Aug 13, 2017 at 9:59 PM, Tom Lane wrote: >> In principle we could keep the existing mechanism as a fallback. >> Whether that's worth the trouble is debatable. The current code >> in initdb believes that every platform has some type of DSM support >> (see choose_dsm_implementation). Nobody's complained about that, >> and it certainly works on every buildfarm animal. So for all we know, >> dynamic_shared_memory_type = none is broken already. > Actually, now that you mention it, I think it *is* broken already, or > more to the point, if you configure that value, the autovacuum > launcher hangs up, because of the AutovacuumWorkItem stuff that Alvaro > added. When I just tested it, the AV launcher somehow ended up > waiting for AutovacuumLock and I had to SIGQUIT the server to shut it > down. Hmm, shouldn't that be an open item for v10? > ... If somebody has a system where no other form of shared > memory, works dynamic_shared_memory_type = mmap is still a thing, so > the use case for "none" seems very thin indeed. I'd vote for just > ripping it out in v11. Just FYI, the only values being reported by buildfarm animals are "posix", "sysv", and "windows". So while mmap may be a thing, it's an untested thing. dsm_type | critters_reporting -----------+-------------------- posix | 69 sysv | 13 windows\r | 10 (3 rows) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers