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 1txD0s-004lLr-Ie for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 22:44:50 +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 1txD0q-00B4XS-PT for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 22:44:48 +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 1txD0q-00B4O9-74 for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 22:44:48 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1txD0n-001AGD-1h for pgsql-hackers@postgresql.org; Tue, 25 Mar 2025 22:44:47 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-3018e2d042bso7595065a91.2 for ; Tue, 25 Mar 2025 15:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1742942683; x=1743547483; darn=postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=l4pa8b9ilTWJXpYscACrGRDOflkCJj2hzYs3OIZnze4=; b=PRiy7ylLBAitrQK6krGUJ/ihp4n/LrMKTRzjgHdrF7Tz65EO5UQKlrOhpA4ZRORTfy bTcq3kt5DlBVL/xQtTpBll8n1DdvKrAzAOfA1QKyo4ABjTi8MijcOyhy2bkLeUhTkAnQ 4b7Lfo7e29VrEXxVvdwAlVxVtbCqGhxYSSh7Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742942683; x=1743547483; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l4pa8b9ilTWJXpYscACrGRDOflkCJj2hzYs3OIZnze4=; b=qnF0uR3cdXRwbGLHKw92Pd1WSvhcoNMZ6gvS+CWVLB9RMX3bfQm1VXnTjx+aoUO7db u1pr69eTd9S9VxGHju/uRI+agAz1vpge6eSh2hsTIFjxujwQIKPyQ2piXX38Qonua9Ef WXaD0wXk1z3o6XhfO27LLomX7IKbgzGVCNE1vkL1sxpAFKv45BhO6uCBtxZFGWnBFrMe akYsgUA49IscZy/0YenCkzLsG2dUe31QWG26H4C0e6X1j8p3s2ZQBD6dh468CjU86NUM uIW+v9qK0pZ2GeAkdkNXKd7yEbFHLzQ0L3gKpyqz2hw3vL4yc7VCB59U4UizrWqliiDJ oiRw== X-Forwarded-Encrypted: i=1; AJvYcCVrI4Btxp1Bz//0idR+aCA0Mv3vPC9imUvhTlHJF39KT2oagiUpzjjEveEPuK73Y16ft+VjiUBrwvqAjojy@postgresql.org X-Gm-Message-State: AOJu0YzlkREDoBl+zkUkBII8IIp63ppYM1DQb79Ca/0WDxwisRdnJAt/ 02J6WuQXOsEM2RC0aTKZDzTLPTXedwFGTpwqkOnMXQ+C/TBh/9WAj9APUrRWbQ== X-Gm-Gg: ASbGnctjDArICLAKZjFPsDrZJ2fKYtRvF4Pvnz463QveSDnTKOsUOWBqbTumwF2M1ZD vFPpr4S078zPomFyyyjZLk5PnAh3OkUV9lNO7zLFH8IfsGL+4YcYoSvaisJRAlwgdw5M+kKDATZ qfXFDCydDjw7Bq1b49uD7CaFLNXbxc5+3PGXjN78xh3tHXuOngEbi4Vd2SZk1YZFh8tPpU9KDrC 2fZm42YS2k3IlQIA+lMWOs1NgAR1R0kE8bp2RiJhHkrqU8EqwrfGlxzoucaVHym4fbsd9z41v89 2h6yoPWEa3XTCO6KTD/ALUvH4NOUPhA+e/UG9i7fkQ== X-Google-Smtp-Source: AGHT+IGl3HRBycvT/x4Xiul4k9SIUBhmrNnt/CtKGDFpzNU6eHF289CgsrpG7QEKpQ8HHrdm/ZhcRQ== X-Received: by 2002:a17:90b:4c06:b0:2fe:8f9f:e5f0 with SMTP id 98e67ed59e1d1-3030fea2eacmr24372919a91.19.1742942683021; Tue, 25 Mar 2025 15:44:43 -0700 (PDT) Received: from google.com ([2601:647:5600:80d0::31cd]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-301bf61b34dsm15066099a91.30.2025.03.25.15.44.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2025 15:44:42 -0700 (PDT) Date: Tue, 25 Mar 2025 15:44:40 -0700 From: Noah Misch To: Andres Freund Cc: Thomas Munro , Antonin Houska , pgsql-hackers@postgresql.org, Heikki Linnakangas , Robert Haas , Jakub Wartak , Jelte Fennema-Nio Subject: Re: AIO v2.5 Message-ID: <20250325224440.0f.nmisch@google.com> References: <20250325004537.17.nmisch@google.com> <20250325133321.54.nmisch@google.com> <20250325155808.f7.nmisch@google.com> <5ons2rtmwarqqhhexb3dnqulw5rjgwgoct57vpdau4rujlrffj@3fls6d2mkiwc> <20250325193956.57.nmisch@google.com> <20250325201850.55.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 25, 2025 at 04:56:53PM -0400, Andres Freund wrote: > The repeated-iteration approach taken in pgaio_closing_fd() isn't the > prettiest, but it's hard to to imagine that ever being a noticeable. Yep. I've reviewed the fixup code, and it looks all good. > This survives a testrun where I use your torture patch and where I force all > IOs to use ASYNC. Previously that did not get very far. I also did verify > that, if I allow a small number of FDs, we do not wrongly wait for all IOs. I, too, see the test diffs gone.