Messages in this thread | | | From | Linus Torvalds <> | Date | Fri, 5 Jan 2024 16:18:43 -0800 | Subject | Re: x86/csum: Remove unnecessary odd handling |
| |
On Fri, 5 Jan 2024 at 15:53, David Laight <David.Laight@aculab.com> wrote: > > I'd have to fix his benchmark code first :-) > You can't use the TSC unless you lock the cpu frequency. > The longer the test runs for the faster the cpu will run.
They'll stabilize, it has soem cycle result aging code.
But yes, set the CPU policy to 'performance' or do performance counters if you care deeply.
> On a related point, do you remember what the 'killer app' > was for doing the checksum in copy_to/from_user?
No. It's a long time ago, and many things have changed since.
It's possible the copy-and-csum it's not worth it any more, simply because all modern network cards will do the csum for us, and I think loopback sets a flag saying "no need to checksum" too.
But I do have a strong memory of it being a big deal back when. A _loong_ time ago.
Linus
| |