Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4191371rdb; Mon, 11 Dec 2023 11:23:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpjV2WTQq+H0ErbAea+kUYJpS+UzA5ntd7tG0TvOIIDtKZ6iCCAmnE0fqU8VTmJ4NhJvg3 X-Received: by 2002:a05:6a00:3929:b0:6ce:fb79:6ce7 with SMTP id fh41-20020a056a00392900b006cefb796ce7mr1902849pfb.40.1702322624708; Mon, 11 Dec 2023 11:23:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702322624; cv=none; d=google.com; s=arc-20160816; b=JO5ffA6wVnAM5ircHMomqk2V6Cl41sYYjZkmrPoxcHunmS3IOj2ncgmu1EGKFhxNtE aSFKhMi1kc9aRJ3Zow0tA8PmpMX6iXpoXvGSpcpfk04fBRLs6+blsNbMIOvwXO6BH4ae Yo7uqNxESIp++fV9DcLkwriLR1EE6U/kThWXKBDzJ3XiokdBY3HoPjFh2MHQSlIJC1nI YTAKiLdabZO8dAMJOa0KhbWXCyS6FeiDGoYkcO8UCqFQ/x0VR/CTUgIaLPT31VyXD2el acXiVuVl68RpMbP06RsCPxGt6kfbXoqShW8SUhwhOLNvE31PU2nRATSbKdiSaCsZPI2C xBdw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=fn2bBFl0JTF2fiMvUiFw4QP83T6/nDfr1U2Nis7LMUI=; fh=pKmvAa55ag0MEHkVqanrpdjua4Ro8vpkFIrSaoS8Ty4=; b=XBiGBG0vqysD2B3u+Gj2RGf5PU/ut++IMa/q9lcj0mCcDBV6QIEetsMrEtJV7jM9Zc dbZOgQ04QA58ooDvdUgTShaSa84kwQN0BVHOaWAYqSIErWu2gkqVIJ4zBjgbtCT30JBQ Fb8XWt6HsbsEc9DyuMxeIHZU/owB+2vVYIhaI8+WNAsRnCE2lwAr2J2SIfR6U3PY67JN idAWnqx27I5oiZ40R3pYz3xW/eMgKoNbzUgeyuYgEuL1WIwT1RjRc3/0AmZQa25fU1c/ /ZclQBLybLGzmdfSG7mHL7WHUaP+vCwVCgiF6qAez1gsLfD33LuwRTN8BVWEoNZs1Bf0 2MRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AMme99iK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y17-20020a62f251000000b006cea04413bbsi6368200pfl.281.2023.12.11.11.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 11:23:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AMme99iK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2E895809E21F; Mon, 11 Dec 2023 11:23:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229625AbjLKTX3 (ORCPT + 99 others); Mon, 11 Dec 2023 14:23:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjLKTX2 (ORCPT ); Mon, 11 Dec 2023 14:23:28 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4E98BD for ; Mon, 11 Dec 2023 11:23:34 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5331C433C8; Mon, 11 Dec 2023 19:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702322614; bh=NQb2rHrXZBC2qUTW9Bi96GGbDXlv9qtiv4KE2DukMZQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AMme99iKkntnUrXuqksuKV8S9Z0XBRo4r/dUWRy7Ecb/57h3O5zfQDbYuhWxXTbDW rNOS/yeyWp4FG6kT4ZpqR3/gG+U7uuzKWQAqStlqNnYSnByosexY2n6mRAJmRhapS5 MFNJSQqQYA8zCGRVNzw+7c/2jamKT3Z+EP7fPWPKm0Pg7DnSyweEaxDJ/4qC1QdwEH kyE3xq3Rus0MbPaZ0bkqBhPkgfTUv+x6MDaQ7xhO8VBZOb/8tNSUJU6f8wX1eQ7y/x DJpJ5C+NGJQ3rRjcqXHLr/c96oukNWoVRtm93UjY2E7tRCoYTzjmTl4SLYpN/CctNX s8pnQR/Dt9cJg== Date: Mon, 11 Dec 2023 11:23:32 -0800 From: Jakub Kicinski To: Alexander Lobakin Cc: Yunsheng Lin , "David S. Miller" , Eric Dumazet , Paolo Abeni , Maciej Fijalkowski , Michal Kubiak , Larysa Zaremba , Alexander Duyck , "David Christensen" , Jesper Dangaard Brouer , Ilias Apalodimas , "Paul Menzel" , , , , Amritha Nambiar Subject: Re: [PATCH net-next v6 08/12] libie: add Rx buffer management (via Page Pool) Message-ID: <20231211112332.2abc94ae@kernel.org> In-Reply-To: <03d7e8b0-8766-4f59-afd4-15b592693a83@intel.com> References: <20231207172010.1441468-1-aleksander.lobakin@intel.com> <20231207172010.1441468-9-aleksander.lobakin@intel.com> <1103fe8f-04c8-8cc4-8f1b-ff45cea22b54@huawei.com> <03d7e8b0-8766-4f59-afd4-15b592693a83@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 11:23:42 -0800 (PST) On Mon, 11 Dec 2023 11:16:20 +0100 Alexander Lobakin wrote: > Ideally, I'd like to pass a CPU ID this queue will be run on and use > cpu_to_node(), but currently there's no NUMA-aware allocations in the > Intel drivers and Rx queues don't get the corresponding CPU ID when > configuring. I may revisit this later, but for now NUMA_NO_NODE is the > most optimal solution here. Hm, I've been wondering about persistent IRQ mappings. Drivers resetting IRQ mapping on reconfiguration is a major PITA in production clusters. You change the RSS hash and some NICs suddenly forget affinitization =F0=9F=A4=AF=EF=B8=8F The connection with memory allocations changes the math on that a bit. The question is really whether we add CPU <> NAPI config as a netdev Netlink API or build around the generic IRQ affinity API. The latter=20 is definitely better from "don't duplicate uAPI" perspective. But we need to reset the queues and reallocate their state when=20 the mapping is changed. And shutting down queues on=20 echo $cpu > /../smp_affinity_list seems moderately insane. Perhaps some middle-ground exists. Anyway, if you do find cycles to tackle this - pls try to do it generically not just for Intel? :)