Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipKea-0004XG-1s for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jan 2020 23:22:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipKeY-0004RT-NA for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jan 2020 23:22:18 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipKeW-0004MP-P2 for pgsql-hackers@lists.postgresql.org; Wed, 08 Jan 2020 23:22:18 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ipKeS-0002Fy-FN for pgsql-hackers@postgresql.org; Wed, 08 Jan 2020 23:22:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id DC4EB695; Wed, 8 Jan 2020 18:22:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 08 Jan 2020 18:22:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=4xhjwbDVdjgGLdY3d5Z+Xmfje/c zvuQyJKqXA09nee0=; b=mBIU2PbKrx7sACzEKUlCB6TKfPM0sTvb6DJdbNDd2IL BiY60J76kGLFLuKWKQjeqgGOLtckN80O4Nzt9859XY/DT6GNd/exSgICv6c1TrQt Cm1Gc+k7tK+G7ApQ2yZQmDW5exEpL4E7dqBYSKF0XiV+bp8b4fv6d30WHo7S0ilO LDvKob/zy62DDLkpQDGXHnz+494U/51799vF+kGLnG7ujwm3KdkMxKBdLs1UrcrU u7NB2bcq5npBZDqS5Ow+zVow9y5wvtq8fhCc2oqqq/h14OOpoeAXKnjRr8ChOmL6 lGnZoLZP4gZQyFklyptWD10hapdyZ0YjOKFakDEYf5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=4xhjwb DVdjgGLdY3d5Z+Xmfje/czvuQyJKqXA09nee0=; b=Ia/2rQ+dZPAt0NhK1kw2p6 Iz5/uRxEuRjm04R0HijTVmTfFJP6+w8WFvuMacH3ml3lDG5ExAY8vdCrsdxd1P0/ qPBS1rnt+mne58Wakq8bxdw2udO6sA2mMADN3EpWbfIsdLrVrlWrBOh6tnOhBMpz R5sZAAJIZEyTWAmrZS4n3dgXbbJqQO7bj8qMUWe7+8hk3z99FF21D5n9aWGeoeiq WzKGNCFeA13qbgTlL1Oc3JpK3tfznRDKK/6rgzWo9OaTbOAdsKRe3T+v3fMvxl/e Gm1A5IEMQ8PK6y137baFH+hM/qGdfIMuIk2xQ3l83udsynYSuy44fDb5QsHVoxDg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdehledgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudejrddvhedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id ED21230602DB; Wed, 8 Jan 2020 18:22:06 -0500 (EST) Date: Wed, 8 Jan 2020 15:22:05 -0800 From: Andres Freund To: Tom Lane Cc: Amit Kapila , Christoph Berg , PostgreSQL Hackers Subject: Re: src/test/recovery regression failure on bionic Message-ID: <20200108232205.vegvaao4t672iuy5@alap3.anarazel.de> References: <20200103110128.GA28967@msg.df7cb.de> <13708.1578059577@sss.pgh.pa.us> <25771.1578249042@sss.pgh.pa.us> <20200106105608.GB18560@msg.df7cb.de> <20200108143825.GF27312@msg.df7cb.de> <5533.1578495857@sss.pgh.pa.us> <1462.1578522666@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1462.1578522666@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-01-08 17:31:06 -0500, Tom Lane wrote: > (1) d20703805's test will clearly fall over if there are more than six > FDs open in the postmaster when set_max_safe_fds is called, because it > sets max_files_per_process = 26 while set_max_safe_fds requires at > least 20 usable FDs to be available. > (4) NetBSD 7.0's cron leaves three extra open FDs in processes that > it spawns. I have not looked into why, but I have experimentally > observed this. For example, lsof on a "sleep" launched from cron > shows > > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME > sleep 7824 tgl cwd VDIR 0,0 512 795201 /home/tgl > sleep 7824 tgl txt VREG 0,0 10431 1613152 /bin/sleep > sleep 7824 tgl txt VREG 0,0 1616564 22726 /lib/libc.so.12.193.1 > sleep 7824 tgl txt VREG 0,0 55295 22747 /lib/libgcc_s.so.1.0 > sleep 7824 tgl txt VREG 0,0 187183 22762 /lib/libm.so.0.11 > sleep 7824 tgl txt VREG 0,0 92195 1499524 /libexec/ld.elf_so > sleep 7824 tgl 0r PIPE 0xfffffe803131eb58 16384 > sleep 7824 tgl 1w PIPE 0xfffffe8007ec4a30 0 ->0xfffffe800cc0d2c0 > sleep 7824 tgl 2w PIPE 0xfffffe8007ec4a30 0 ->0xfffffe800cc0d2c0 > sleep 7824 tgl 7u unknown file system type: 0 > sleep 7824 tgl 8u unknown file system type: 0 > sleep 7824 tgl 9w PIPE 0xfffffe80036c4dc0 0 > > while of course "sleep" launched by hand has only 0/1/2 open. Is it worth having the test close superflous FDs? It'd not be hard to do so via brute force (or even going through /proc/self/fd). Greetings, Andres Freund