From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E92DD433B9 for ; Thu, 15 Feb 2024 15:04:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708009456; cv=none; b=qGenAOiHOUwAqx0ib+oyCVj0cONiwsiCwOzzCTeXEqVx+jCoUnz5mZNIMnm7/vcN0NKT/fGMborjJO2J8/PvPNkwWrSeR9op89t2RoomjX0mi9sSCPpesrZSEs+oJ02g+QJ0C6FrDqhMGa5OP5V1CejArsfS6tNS8S2PtwHEQIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708009456; c=relaxed/simple; bh=OpTgxo/quhC8MiR78g6E5wJVQZubIku+aVidndfnPDo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ww8NjFkT+FP9GXeRBL1fq+rBNxIHgYYHMV3NxYmGTm16TmadELz57f8nRFurZMbQTyjJbpcIyBavDRGZwpZGELhV95k9bHxg2xunWyN4MMAN1orDb2bZvQs0OTT8xicS3LTfAeRFXcc4tcx/NzFkglMPCDaBgA0csUelAfUwHVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RGpImmQs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RGpImmQs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00B14C433F1; Thu, 15 Feb 2024 15:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708009455; bh=OpTgxo/quhC8MiR78g6E5wJVQZubIku+aVidndfnPDo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RGpImmQsJmgqwtbahN6MwQF2cJFW8A4y5exdHjhLT6ChTNBXymApuzN82xE2jvv31 BtqP4EimFiMzUE5rp9hKGnifMd4SYw7l+pEFyOFx5w0VFiJKZVI+ctu6dCssuu02Qb RRL+RRUs87BZfjeOoWfCLt2yQvW7juEiCDMQT7W86LgsOripN43jQLoWrihpIvdmbZ OP/HRDxp6zmu+oTEHYiF+045xjJ8bWeRYJbizJCXuNW6+1kE5Yfg+cG28B5GVpFvzx 4AzB69rp+j7sgFY3RTrjebviHpYhNlpiDbcqZj08ihAKs4SySuTViPY1/vuy+t7hg6 jMaubdti9aqOA== Date: Thu, 15 Feb 2024 07:04:14 -0800 From: Jakub Kicinski To: Alexander Lobakin Cc: Lorenzo Bianconi , , , , , , , , , Subject: Re: [RFC net-next] net: page_pool: fix recycle stats for percpu page_pool allocator Message-ID: <20240215070414.4d522c88@kernel.org> In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 15 Feb 2024 14:41:52 +0100 Alexander Lobakin wrote: > For example, if I have an Rx queue always pinned to one CPU, I might > want to create a PP for this queue with the cpuid set already to save > some cycles when recycling. We might also reuse cpuid later for some > more optimizations or features. You say "pin Rx queue to one CPU" like that's actually possible to do reliably :) > Maybe add a new PP_FLAG indicating that system percpu PP stats should be > used? Part of me feels like checking the dev pointer would be good enough. It may make sense to create more per CPU pools for particular devices further down, but creating more pools without no dev / DMA mapping makes no sense, right? Dunno if looking at dev is not too hacky, tho, flags are cheap.