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 C1D34C6FD19 for ; Fri, 10 Mar 2023 20:38:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231324AbjCJUi3 (ORCPT ); Fri, 10 Mar 2023 15:38:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbjCJUiZ (ORCPT ); Fri, 10 Mar 2023 15:38:25 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C07693E619 for ; Fri, 10 Mar 2023 12:38:22 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id y19so3777704pgk.5 for ; Fri, 10 Mar 2023 12:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; t=1678480702; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dlLhK/LHL4Xfo7GAMCI7D6In0Skr36B2KpJuEO66y44=; b=7CxWz9unLKigyQ7y7Oxnr5hmnTvf8n3cmCboPcb8sETGnRiIVRN/XCEQiRx3gv097q EbIIX3XN/t3iW3iq4DbrKu82Ae9Gb4OzqUhsH3jcmXwbl00VNQAywSAQGUPmj0yAAzqD 2niny/kICNo2KoEiBvHeKUHOWAqS5o4D5EkFwIVuHB5M+6AZKivaYW0ZUGtPfXfLGfUt 0hvypwVtvLA1+k2JP1X3AGIUvtIxcSaSBQ5JAQJqblViis9JttpUP/kPxWFPMWzch1tn aOD3pe3PS0hotApldyyUW0igDCyyqU3rzAIhhGX2R6eGtGxwFbN7GDmpTo4dYnITvND2 eOew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678480702; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dlLhK/LHL4Xfo7GAMCI7D6In0Skr36B2KpJuEO66y44=; b=5aXiqY5x5YiuxBgLgRNWHxvqzyJ+riEyGfA11Jv0gsxJVrC6e7dhx/+vKjJGAuTlX6 RbxcA4F6QhMVpihqj09b4DrBTHeTk5aL5SLPcXTXlhp4FbJ08BXYc920hIHZVApmjjBA onMzc8jvv8x2EF8mqFryUoQIfpDvHrSwgxcPnpJjCezxCrrC5lNqFLUr08kFhtr+VNJH X7abgeRsdYKLws/Df7NvVED3U5r7AjUWnr9ckqaLBbqt61ZGyNrDwCmSCdyQGa2yE9/r kj8Ouf7AlhPuerwsE+0EE4fK7bjtA6pkZBYJHbeacOjyx1IVKX2AYHgvOIWxRNukY3QL vbgA== X-Gm-Message-State: AO0yUKUoysbVM1qHCuPawZ92u5ZNq6H4ltyKnwCwCymxQphTXeb31AZV o5CbPZTvGHDThZl6LOMbKVeOBg== X-Google-Smtp-Source: AK7set9AFXNkehZR0V+EXjQvkjvFJU49ubheoycO1AexRci0R6XYmGsyCH6y62vzAByAi0iHCZ4C8A== X-Received: by 2002:aa7:8753:0:b0:5d9:bfc9:a4f with SMTP id g19-20020aa78753000000b005d9bfc90a4fmr3632178pfo.3.1678480702009; Fri, 10 Mar 2023 12:38:22 -0800 (PST) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id g1-20020aa78181000000b00571f66721aesm225494pfi.42.2023.03.10.12.38.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 12:38:21 -0800 (PST) Message-ID: Date: Fri, 10 Mar 2023 13:38:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] io_uring: One wqe per wq Content-Language: en-US To: Breno Leitao , asml.silence@gmail.com, io-uring@vger.kernel.org Cc: leit@fb.com, linux-kernel@vger.kernel.org References: <20230310201107.4020580-1-leitao@debian.org> From: Jens Axboe In-Reply-To: <20230310201107.4020580-1-leitao@debian.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/10/23 1:11 PM, Breno Leitao wrote: > Right now io_wq allocates one io_wqe per NUMA node. As io_wq is now > bound to a task, the task basically uses only the NUMA local io_wqe, and > almost never changes NUMA nodes, thus, the other wqes are mostly > unused. What if the task gets migrated to a different node? Unless the task is pinned to a node/cpumask that is local to that node, it will move around freely. I'm not a huge fan of the per-node setup, but I think the reasonings given in this patch are a bit too vague and we need to go a bit deeper on what a better setup would look like. -- Jens Axboe