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 1mlG5I-0000mt-NA for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Nov 2021 19:50:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mlG5H-0008Lk-Mv for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Nov 2021 19:50:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlG5G-0007yV-NH for pgsql-hackers@lists.postgresql.org; Thu, 11 Nov 2021 19:50:07 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlG5E-0002fb-B9 for pgsql-hackers@postgresql.org; Thu, 11 Nov 2021 19:50:05 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 505703202380; Thu, 11 Nov 2021 14:50:02 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 11 Nov 2021 14:50:02 -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=k+emAy7UvBOaN+WPuNRtpVeFg7j MvdtzJz9ju6Rwe7k=; b=t4Z50yjBCXQ5Sh4Kv8iooDvlV9rDARmlDir5NCVc0sM NJpI6PLQmej/h9CYnC0w3GRnFdinMsts1YWlGX57M+jl5FEZ65ruEoI+FswKiRCm wkrJwwK004CL/4NsRp6Agt/gUmNwHsj2Su5F0KOpTxNVYzvAfTZMnixzJJXD9xGT itlCNxkXe8T+4uQrX3u0Q5GxAwgIBqaRd8PjCY7Kd2ecb7/kMaUkd+jcN7F6B7j2 tsFCP1ivrXcOEN9N84+8M6sOMEh2qnoc757UV5WS/3u0wSIpU02URz6aqyyIUuUG nQUw8x2MiXuDp++6qQpmhq/jxIdVwMxz8a9gXLk4b1w== 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=k+emAy 7UvBOaN+WPuNRtpVeFg7jMvdtzJz9ju6Rwe7k=; b=UfqCeFVl4t6wUtWNBJZDiV JiW8yD+GabggKle2hLyvk6I0WvSwqWZIgKn1ksp2Qtf8WhP8jKI10AfT/k+o7pvC Y+uqd0vhVED+nzaAyfKzFERcToj5eLLpd5uBrGVniekWer1orSAme+dSISW2MOSH mhDh6QeFGu7bbUUOJfYZfvDyUOU95grEXG0woB1wPMSM5kTipA9QKi/Rivo/6ui1 rarCbTb1VldczFpWlnchbfI9nLQSML8HU5eq73iJ9qauQllWX6EK+c3UJmgjioDT IditwyHBXHTV/8WbOy85lvVrD+ceXObbJEsmKzEdQJ0TJuaM3ZiOGuI0X7VDJ1SQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrvddugdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedukefhkeelueegveetheelffffjeegleeuudelfeefuedtleffueejfffh ueffudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 Nov 2021 14:50:01 -0500 (EST) Date: Thu, 11 Nov 2021 11:50:00 -0800 From: Andres Freund To: Robert Haas Cc: Thomas Munro , pgsql-hackers Subject: Re: Interrupts vs signals Message-ID: <20211111195000.v5fmy5yvtqcbvo55@alap3.anarazel.de> References: <20211020192748.dguzfnnd4hzh7e5v@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2021-11-11 09:06:01 -0500, Robert Haas wrote: > On Thu, Nov 11, 2021 at 12:27 AM Thomas Munro wrote: > > > Depending on how you implement them, one difference could be whether / when > > > "slow" system calls (recv, poll, etc) are interrupted. > > > > Hopefully by now all such waits are implemented with latch.c facilities? > > Do read(), write(), etc. count? Because we certainly have raw calls to > those functions in lots of places. They can count, but only when used for network sockets or pipes ("slow devices" or whatever the posix language is). Disk IO doesn't count as that. So I don't think it'd be a huge issue. Greetings, Andres Freund