Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q7qKJ-0001fp-FJ for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Jun 2023 04:35:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q7qKI-0004pJ-BX for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Jun 2023 04:35:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q7qKI-0004pA-1y for pgsql-hackers@lists.postgresql.org; Sat, 10 Jun 2023 04:35:46 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q7qKF-001LDC-Ag for pgsql-hackers@lists.postgresql.org; Sat, 10 Jun 2023 04:35:45 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 765CE320083A; Sat, 10 Jun 2023 00:35:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 10 Jun 2023 00:35:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1686371740; x=1686458140; bh=fb ms3HgLg3u1ps1mNIuP69oSWxh5OKIUWX9la7fShOE=; b=sM0d9qcUHsZHsFRSTE kvuhFGEm/0k7lXJ43kfe3SCOUg5krtX25RlSnPEh9eXIqNUQ5eKSY27cpRmltj49 Otyr9/bpjW+88hmgOEbO6ZbuZSyn1STeW2w0oPYRUIcgdzoPKzy4JR+UCUOL3hpS ziNp6j+U1euiJazd0/h2KGICgnfUCtShAyalCw+yT46Y/MFh1Ct6N3iuV6As+v+c 7ZiN+e3pxJ2chpX3kOb2g9tTMFRrBffirKK0+K4vJKhtgWR4nzc8oAwM6uYbK2MD uL5TNk/0UMsemUbFA+Audo5imlZYebtgX8DuADdCz4K+XAZmb5ziF9X/0j4wLmJJ ctRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1686371740; x=1686458140; bh=fbms3HgLg3u1p s1mNIuP69oSWxh5OKIUWX9la7fShOE=; b=qo8RDnyTDwZD6cnhApezLJYoIPnJo cVEtApc6YupcC16Fd2gabYeM5tmX0sEA1obMzhdcv3Z4ik6J8XNAcIOWGFbFP46i xhL1RMu+92p+edGFnNEKUeVFMDB94IAA09rZPXGQrncRgeQKgF5e0p3OoSsHzWTr gexvvfSCpiWMPbm16YlZezXMTMhv6a6+D+Dz1ulA+zHRbsJOt0eycZF797km44w4 93xQg/uRGojah4uITDwXBQLInG2B0K5Je6TLIaesrzvbmGbw3o9XRzip8ttozE2n g2K5JnSzWHluqUG9LqjrLb2E8laQHDb5hy4SskM/N1nGCjj3xEAemfisA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtledgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 10 Jun 2023 00:35:39 -0400 (EDT) Date: Fri, 9 Jun 2023 21:35:38 -0700 From: Andres Freund To: Alvaro Herrera Cc: Christoph Berg , Thomas Munro , pgsql-hackers@lists.postgresql.org Subject: Re: could not extend file "base/5/3501" with FileFallocate(): Interrupted system call Message-ID: <20230610043538.2z46xyoaohj4fjnf@awork3.anarazel.de> References: <20230425001623.im5uquriqlk4ayy6@awork3.anarazel.de> <20230606195300.wackhn5qc7nic5l5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606195300.wackhn5qc7nic5l5@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-06-06 21:53:00 +0200, Alvaro Herrera wrote: > On 2023-Apr-24, Andres Freund wrote: > > > A prototype of that approach is attached. I pushed the retry handling into the > > pg_* routines where applicable. I guess we could add pg_* routines for > > FileFallocate(), FilePrewarm() etc as well, but I didn't do that here. > > > > Christoph, could you verify this fixes your issue? > > So, is anyone making progress on this? I don't see anything in the > thread. Thanks for bringing it up again, I had lost track. I now added an open items entry. My gut feeling is that we should go with something quite minimal at this stage. > On adding the missing pg_* wrappers: I think if we don't (and we leave > the retry loops at the File* layer), then the risk is that some external > code would add calls to the underlying File* routines trusting them to > do the retrying, which would then become broken when we move the retry > loops to the pg_* wrappers when we add them. That doesn't seem terribly > serious to me. I'm not too worried about that either. Unless somebody strongly advocates a different path, I plan to push something along the lines of the prototype I had posted. After reading over it a bunch more times, some of the code is a bit finnicky. I wish we had some hack that made syscalls EINTR at a random intervals, just to make it realistic to test these paths... Greetings, Andres Freund