Re: performance: memcpy vs. __copy_tofrom_user

2008-10-10 Thread Dominik Bozek
Paul Mackerras wrote: > When I looked at this last (which was a few years ago, I'll admit), I > found that the vast majority of memcpy calls were for small copies, > i.e. less than 128 bytes, whereas __copy_tofrom_user was often used > for larger copies (usually 1 page). So with memcpy the focus

Re: performance: memcpy vs. __copy_tofrom_user

2008-10-10 Thread Dominik Bozek
Paul Mackerras wrote: > Very interesting. Can you work out where memcpy is being called on > the network data? I wouldn't have expected that. Ok. I've some results. I done two test with different MTU. In both cases, about 0.5GB in total has been transfered over network. Large blocks. The test di

Re: performance: memcpy vs. __copy_tofrom_user

2008-10-09 Thread Dominik Bozek
Paul Mackerras wrote: > Dominik Bozek writes: > > >> Actually I made couple of other tests on that mpc8313. Most of them are >> to ugly to publish them, but... My problem is that I have to boost the >> gigabit interface on the mpc8313. I made simple substitution an