Messages in this thread | | | Subject | Re: [PATCH] x86: Run checksumming in parallel accross multiple alu's | From | Eric Dumazet <> | Date | Fri, 18 Oct 2013 10:20:35 -0700 |
| |
On Fri, 2013-10-18 at 12:50 -0400, Neil Horman wrote: > >
> for(i=0;i<100000;i++) { > sum = csum_partial(buf+offset, PAGE_SIZE, sum); > offset = (offset < BUFSIZ-PAGE_SIZE) ? offset+PAGE_SIZE : 0; > }
Please replace this by random accesses, and use the more standard 1500 length.
offset = prandom_u32() % (BUFSIZ - 1500); offset &= ~1U;
sum = csum_partial(buf + offset, 1500, sum);
You are basically doing sequential accesses, so prefetch should be automatically done by cpu itself.
Thanks !
| |