Messages in this thread | | | From | Neil Horman <> | Subject | x86: Enhance perf checksum profiling and x86 implementation | Date | Wed, 6 Nov 2013 10:23:17 -0500 |
| |
Hey all- Sorry for the delay here, but it took me a bit to get the perf bits working to my satisfaction. As Ingo requested I added do_csum to the perf benchmarking utility (as part of the mem suite, since it didn't seem right to create its own suite). I've also revamped the do_csum routine to do some smart prefetching, as it yielded slightly better performance over simple prefetching at a fixed stride:
Without prefetch: [root@rdma-dev-02 perf]# ./perf bench mem csum -r x86-64-csum -l 1500B -s 512MB -i 1000000 -c # Running mem/csum benchmark... # Copying 1500B Bytes ...
0.955977 Cycle/Byte
With prefetch: [root@rdma-dev-02 perf]# ./perf bench mem csum -r x86-64-csum -l 1500B -s 512MB -i 1000000 -c # Running mem/csum benchmark... # Copying 1500B Bytes ...
0.922540 Cycle/Byte
About a 3% improvement.
Signed-off-by: Neil Horman <nhorman@tuxdriver.com> CC: sebastien.dugue@bull.net CC: Thomas Gleixner <tglx@linutronix.de> CC: Ingo Molnar <mingo@redhat.com> CC: "H. Peter Anvin" <hpa@zytor.com> CC: x86@kernel.org
| |