From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A32EC433EF for ; Wed, 9 Mar 2022 01:11:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229980AbiCIBMX (ORCPT ); Tue, 8 Mar 2022 20:12:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbiCIBL5 (ORCPT ); Tue, 8 Mar 2022 20:11:57 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A6C613A1E8 for ; Tue, 8 Mar 2022 16:54:26 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id c16-20020a17090aa61000b001befad2bfaaso886146pjq.1 for ; Tue, 08 Mar 2022 16:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=X+hIDIVjHO6LGkXM0+QFRkB6SfIRAAsbD4jjzcc0akc=; b=DDNhbec9n4vDtcJL0BuO5eDb4cSkBGYrG5wwTwBFdKoL3n7ATvS1gb9+pcW0/dgDyl 1d5Eh5tWzWbqZ+YjeVPpTKuxf/5qjL4oWq4uEv36HaxfohGIp8IFme7cWfH1NZ5j0xZo mBY0DHOFIWvlWl0EyDqb1kwWI22bie6Z1TFkKYZPebyMplA2NUZ7he/CcgSSIiqU57H0 MIx0rfYifHtmC3aeq5BB9Mf/u076cPuQ5ZnEKtAWTIIVA4/1LHQd6or6ubiglOCD7tsv PHUQfXr+CCSNx/A5qtcbpIfko/s8hNGnj5HpzhBdr7edSqjMrpIyE93p9JARTXREs34x /i4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=X+hIDIVjHO6LGkXM0+QFRkB6SfIRAAsbD4jjzcc0akc=; b=J/sLzRZWBHLe0e5JwHzUYHHvsnuH4OdFabMAv8nP7upUM+sk7YzVscxOb/7WMOHTqX id+wOMhcjrAvZf59JYuQnqnGG8eLsIqVJj0FfvTe+KccsvjRXA4tuLz2HqArrHaQTyV1 1MGhDUa5EJRaDoJ6zYXNAkmNzyWd5gmb/u8bYtjDQHzUqONGx9yh/t8lkdkbMYHcCg2q VlMEKS0CS7ucksYrA4nz8C++3+G+0Ca9sb74HqV2cXJ/LNR+Hi8dPN2af73XM3ZuzuoB i2fO1zJknq7TC/NIdP0DOZY0mct+j39QX09WYj9EnLSIYe8BX0VjyWIQUFAFp3A+CoNN paTA== X-Gm-Message-State: AOAM532NW9PC/JFuCuiDAhw54MQC/1tylP/IetIBTT/WkSFeU2aqtWyv JSjKsNYHohvxeB86GC7RoI6/hzkAsjJxY3jO X-Google-Smtp-Source: ABdhPJwetVnpbxsnEbhw3gNfTZ6thnsFgnw08XA0JyAYgma9/do5dC/G+QLHFJ7fHLOHafD2zOFZsg== X-Received: by 2002:a17:90a:19d5:b0:1bc:a5db:b655 with SMTP id 21-20020a17090a19d500b001bca5dbb655mr7774866pjj.46.1646787265178; Tue, 08 Mar 2022 16:54:25 -0800 (PST) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id e16-20020a17090a119000b001bfa3a0d21asm281656pja.40.2022.03.08.16.54.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Mar 2022 16:54:24 -0800 (PST) Message-ID: <612546a3-5630-f1d4-f455-ef2bf564c83e@kernel.dk> Date: Tue, 8 Mar 2022 17:54:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v5 0/2] io_uring: Add support for napi_busy_poll Content-Language: en-US To: Olivier Langlois , Pavel Begunkov Cc: Hao Xu , io-uring , linux-kernel References: From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Jens Axboe