[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241112181518.3f55a359@kernel.org>
Date: Tue, 12 Nov 2024 18:15:18 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Paolo Abeni <pabeni@...hat.com>
Cc: Guillaume Nault <gnault@...hat.com>, David Miller <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, netdev@...r.kernel.org, Simon Horman
<horms@...nel.org>, Andrew Lunn <andrew+netdev@...n.ch>
Subject: Re: [PATCH net-next] geneve: Use pcpu stats to update rx_dropped
counter.
On Tue, 12 Nov 2024 17:53:36 +0100 Paolo Abeni wrote:
> > How about switching to NETDEV_PCPU_STAT_DSTATS instead, so there is a
> > single percpu struct allocated x device (geneve already uses
> > NETDEV_PCPU_STAT_TSTATS): stats fetching will be faster, and possibly
> > memory usage lower.
>
> I was not aware of the previous discussion on this same topic:
>
> https://lore.kernel.org/netdev/20240903113402.41d19129@kernel.org/
>
> and I missed the previous change on bareudp.c
>
> I still think that avoiding the double per-cpu traversal when fetching
> the stats could be useful, especially on large multi-numa nodes systems.
>
> I guess it's better to be consistent and keep geneve and bareudp
> aligned. We can eventually consolidate the stats later.
We merged the bareudp changes... begrudgingly. You're the third
maintainer in a row to make a similar suggestion, which is pretty
strong signal that it's a better direction.
Powered by blists - more mailing lists