On 19.05.2022 10:12:38, David Jander wrote: > I just tried this out by re-writing the statistics code using u64_stats_sync > and per-cpu statistics, which get totaled on sysfs read access as Andrew Lunn > suggested. > The results are truly amazing! > > The overhead caused by statistics in my test dropped from 43us to just 1-2us. \o/ > This was tested on a 64-bit machine though, so I don't know how it will affect > 32-bit systems. Nor do I have an easy means of testing this. Any ideas? Test on an imx6 :) Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature