Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2483169rwb; Mon, 7 Nov 2022 13:58:18 -0800 (PST) X-Google-Smtp-Source: AMsMyM7bL1kI8YhDVF+V2SRfUuZgK4ZhcoF8r1R9+Wl7P8E0SS/qf8n3Jvl7Fl+ftlBNwbVpOJXD X-Received: by 2002:a17:90a:7301:b0:213:8a08:2f18 with SMTP id m1-20020a17090a730100b002138a082f18mr54751928pjk.50.1667858297984; Mon, 07 Nov 2022 13:58:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667858297; cv=none; d=google.com; s=arc-20160816; b=IiHlDEp92sxSBykI764N/1KDO0Cb+McvSnATUnsJ5DQJW4XCHC/dlAgiZXCK26Ax9N qTAQTMq84WfcqrnJIXDloKri2fmS2tnGM3ZoFEPJF4q9tc1OMZJbtGHPTpB2k7JYwF54 zvE1T4gsT+1yclV4AMvNubbef1maXExuYMD5gpUIXdm0lV4Cq4QF8+Yn6v/+Z0zwpp4K t1ZzBdxGz8iY4CrISK5QZz7HyHwOuQe4Od66Ir1UnPw9v94NyLIy+r+jZt7Mqxg7lVjo D/BYr2/BOtjkggY5ciC1hEvGQDeRiMn7Dp4qLBid/CEsaviY21lCvKOBP51VSJPy9j55 9wxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=p+9lgL7H2RIGtfkSoGTjpiKZE0I9zaPI5GTcWtttsjQ=; b=fAMN0uZphLuid9IeK8nmniy+m6bwbf43mhwvSxUEnNdq8Bo7Lk6r/BZ1FG7Ht3gth5 e3XJsVRy2sH0s44Mt/IaldgjbpU6OhDJ4PPRjkU5K+wCtUPIygIQA0ewKtAeEe7pQoFV IFbgNPI1uFGS5VbOAjLjxNGy6G8JKoqBS2h8X9SFGd82IuiCCnupY4W5t0jlY4/ypcbZ o/shJO8w7fz0WXYeHGAQqf6xUE5jHKDrE1QyCuzv57XVAue/t6JndbRfFJs6YmS259NO AwSzdn/b4v1IHlZ0fCI6U/Bp1zX+YSGN1ZXKzCf3aZ1DwkaRCAdwnsbBmUxleGl1265s fygw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YyObVvmo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v69-20020a638948000000b00434d8692854si11141532pgd.541.2022.11.07.13.58.05; Mon, 07 Nov 2022 13:58:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YyObVvmo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232529AbiKGU5H (ORCPT + 92 others); Mon, 7 Nov 2022 15:57:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232848AbiKGU5A (ORCPT ); Mon, 7 Nov 2022 15:57:00 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B86D2B616 for ; Mon, 7 Nov 2022 12:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667854566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=p+9lgL7H2RIGtfkSoGTjpiKZE0I9zaPI5GTcWtttsjQ=; b=YyObVvmo/IL7HON/WyIV1J/zqD9JywlwB9bTuGG8oyPjA93qkXcgHdaA302rp9UpwEl9iD mLh4CiFqoZEZk0HxjQ7oQ7YGje/C7qdjU+FtczX3hY4LMNYD2+mXMW/WpBx2MGjJk+U3QG ZLfbUG7y7xt1meWpcDiq+lO/KkRhvQM= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-186-iEq1w5kIOlK6GvW4vDu2-w-1; Mon, 07 Nov 2022 15:56:04 -0500 X-MC-Unique: iEq1w5kIOlK6GvW4vDu2-w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9A2D93833287; Mon, 7 Nov 2022 20:56:03 +0000 (UTC) Received: from localhost (unknown [10.39.194.151]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E64F140EBF5; Mon, 7 Nov 2022 20:56:02 +0000 (UTC) Date: Mon, 7 Nov 2022 15:56:01 -0500 From: Stefan Hajnoczi To: axboe@kernel.dk Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCHSET v3 0/5] Add support for epoll min_wait Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XyBYP9056XoM9x6e" Content-Disposition: inline In-Reply-To: <20221030220203.31210-1-axboe@kernel.dk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XyBYP9056XoM9x6e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Jens, NICs and storage controllers have interrupt mitigation/coalescing mechanisms that are similar. NVMe has an Aggregation Time (timeout) and an Aggregation Threshold (counter) value. When a completion occurs, the device waits until the timeout or until the completion counter value is reached. If I've read the code correctly, min_wait is computed at the beginning of epoll_wait(2). NVMe's Aggregation Time is computed from the first completion. It makes me wonder which approach is more useful for applications. With the Aggregation Time approach applications can control how much extra latency is added. What do you think about that approach? Stefan --XyBYP9056XoM9x6e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmNpcOEACgkQnKSrs4Gr c8gDagf/YbI6zJoHxLPIL1cGSlayG7NOYya+8Vp+4dfv13V7/ZD6T/RQLJ0xhPhL OZZ7TJ0zdOQL7a0J3RxUElcs06gIh7IHupL0YvX9ng0mVNl8DwkfsuLWdxj5Z2x/ gLD1YjCPHHAEwzHOcma7QR1I36SfxJhXSiyCUNhB3VF4jl9EZV2LIrA1fEUD4MBY PNqILWWv81tm93jAFe1JrT/Ak20psPMXRIBfIkWkZfeH4totmbcUEoZLgV8HS4kF kEodTyZGwS6kUt7512BC/CDXaiMi3XinLwjqJ42vq+jIHWxEfjwcEMa7KJpL6dg5 ULilMUkNtaXoeqzicuOv2m+qm3TqxQ== =lz3z -----END PGP SIGNATURE----- --XyBYP9056XoM9x6e--