[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240108143614.ldeizw33o6l7aevi@skbuf>
Date: Mon, 8 Jan 2024 16:36:14 +0200
From: Vladimir Oltean <vladimir.oltean@....com>
To: Romain Gantois <romain.gantois@...tlin.com>
Cc: Alexandre Torgue <alexandre.torgue@...s.st.com>,
Jose Abreu <joabreu@...opsys.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Maxime Chevallier <maxime.chevallier@...tlin.com>,
Sylvain Girard <sylvain.girard@...com>,
Pascal EBERHARD <pascal.eberhard@...com>,
Richard Tresidder <rtresidd@...ctromag.com.au>,
Linus Walleij <linus.walleij@...aro.org>,
Florian Fainelli <f.fainelli@...il.com>,
Andrew Lunn <andrew@...n.ch>, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, stable@...r.kernel.org
Subject: Re: [PATCH net v3 1/1] net: stmmac: Prevent DSA tags from breaking C
On Mon, Jan 08, 2024 at 03:23:38PM +0100, Romain Gantois wrote:
> I see, the kernel docs were indeed enlightening on this point. As a side note,
> I've just benchmarked both the "with-inline" and "without-inline" versions.
> First of all, objdump seems to confirm that GCC does indeed follow this pragma
> in this particular case. Also, RX perfs are better with stmmac_has_ip_ethertype
> inlined, but TX perfs are actually consistently worse with this function
> inlined, which could very well be caused by cache effects.
>
> In any case, I think it is better to remove the "inline" pragma as you said.
> I'll do that in v4.
Are you doing any code instrumentation, or just measuring the results
and deducing what might cause them?
It might be worth looking at the perf events and seeing what function
consumes the most amount of time.
CPU_CORE=0
perf record -e cycles -C $CPU_CORE sleep 10 && perf report
perf record -e cache-misses -C $CPU_CORE sleep 10 && perf report
Powered by blists - more mailing lists