Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp116274pxp; Tue, 8 Mar 2022 22:10:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJys8OoNoDum6n5hCQmanBC2h9Xv4MZgpyLUZ0xzGHwe0U0pUAxOG9XF/RXTOQIYMnHQ7gxH X-Received: by 2002:aa7:cfd2:0:b0:416:b04:bb60 with SMTP id r18-20020aa7cfd2000000b004160b04bb60mr19360757edy.76.1646806231862; Tue, 08 Mar 2022 22:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646806231; cv=none; d=google.com; s=arc-20160816; b=yHInLZ6k0+0DUmJxzIjrO262aTJzRuijoR/GEs2tawD9FyGSk71x7G3GvmbA9Y8DQ2 IcauN68HNeuGTSpy4BWwN/b51IgXRaxPsDiw95l1RtbDv0vdjBrdk2pGUjJAIyNZk3/a 04ZE9444wj1SvAvw2wt0tEJaDB1d4RcCI4p0EKYzaJd1GiMIfsFVnaMjnyo0mxo+B9sw 7MFRPTrOZ2RIOsq+CCd+U4fYdw7u+vTLskoeuK61UOpZYYs5MpNjLE/cUIdvBdHrkftu +YgSvZqq7uFXQMR/lN/QV5mthPPSsGbpprZIi/Iv1WaMDsFByQth1qoF5HpNnYBgzgKV hlSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=E2iftYtg0ohwdC3vEkGCmOTDQRKFpvv/TC1IeEAov78=; b=DfrFQPsb5gUo1kPG73DQ1478i4wccDT3h6SEcKPn0PQQTeSn7d6qpdlCKhK4WPwqkE uLMWIiYzJxEWPevKN11SNGgPd/eaNajUBKN3kfg2QxJ0n38Zj+lVXKGMRBSYN2cc6vTF ngF4sR5coFV5rWYnI7uaeG6Z6uDFVTXWsmLiTwkHlDUy0JEVoWF5pCqSAlrlxKVmcJxM ZyU7fVokwYLS69h4U8U4yHJsugiN/7QNoGYxsoL/yjNTzutijSr0fJItD7frLcR2pi0l ZMePryVIvZxFScuVAQHrvuaf7mU0d9GHirrIcAr1yUiY0Y/bNXy4tXFOJ6NJ9r7hAUXm jsxQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs35-20020a1709073ea300b006cec3e62ab8si697595ejc.459.2022.03.08.22.10.07; Tue, 08 Mar 2022 22:10:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbiCIFsj (ORCPT + 99 others); Wed, 9 Mar 2022 00:48:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiCIFse (ORCPT ); Wed, 9 Mar 2022 00:48:34 -0500 Received: from cloud48395.mywhc.ca (cloud48395.mywhc.ca [173.209.37.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3595280; Tue, 8 Mar 2022 21:47:32 -0800 (PST) Received: from [45.44.224.220] (port=34372 helo=[192.168.1.179]) by cloud48395.mywhc.ca with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nRpAZ-0007ll-Bp; Wed, 09 Mar 2022 00:47:31 -0500 Message-ID: Subject: Re: [PATCH v5 0/2] io_uring: Add support for napi_busy_poll From: Olivier Langlois To: Jens Axboe , Pavel Begunkov Cc: Hao Xu , io-uring , linux-kernel Date: Wed, 09 Mar 2022 00:47:30 -0500 In-Reply-To: <612546a3-5630-f1d4-f455-ef2bf564c83e@kernel.dk> References: <612546a3-5630-f1d4-f455-ef2bf564c83e@kernel.dk> Organization: Trillion01 Inc Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud48395.mywhc.ca X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - trillion01.com X-Get-Message-Sender-Via: cloud48395.mywhc.ca: authenticated_id: olivier@trillion01.com X-Authenticated-Sender: cloud48395.mywhc.ca: olivier@trillion01.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, 2022-03-08 at 17:54 -0700, Jens Axboe wrote: > On 3/8/22 3:17 PM, Olivier Langlois wrote: > > The sqpoll thread can be used for performing the napi busy poll in > > a > > similar way that it does io polling for file systems supporting > > direct > > access bypassing the page cache. > > > > The other way that io_uring can be used for napi busy poll is by > > calling io_uring_enter() to get events. > > > > If the user specify a timeout value, it is distributed between > > polling > > and sleeping by using the systemwide setting > > /proc/sys/net/core/busy_poll. > > I think we should get this queued up, but it doesn't apply to > for-5.18/io_uring at all. I can fix it up, but just curious what you > tested against? > Hi Jens, I did wrote the patch from git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git My testing systems are based on 5.16. I have backported the patch and compiled 5.16.12 with the patch for my testing. sorry if I didn't use the right repo...