linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] powerpc: memory copy routines tweaked for Cell
@ 2008-06-19  7:53 Mark Nelson
  2008-06-19 11:53 ` Arnd Bergmann
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Nelson @ 2008-06-19  7:53 UTC (permalink / raw)
  To: linuxppc-dev, cbe-oss-dev; +Cc: Gunnar von Boehn, Michael Ellerman

The following are new versions of copy_tofrom_user, memcpy and copy_4K_page
which have been written specifically for Cell. All the hard work for these
routines was done by Gunnar von Boehn - I used his new memcpy to create
copy_4K_page and just added the exception handling code to
copy_tofrom_user.

Using these new routines give a big performance improvement for Cell
(tested on QS22 Cell blade):

Test				unpatched kernel		new routines
---------------------------------------------------------------------------------
iperf				2.3 GBits/sec			5.8 GBits/sec

netperf (TCP)		2.5 GBits/sec			5.3 GBits/sec

netperf (UDP)		318 MBits/sec			351 MBits/sec

kernel used was 2.6.25.7

tests were run as follows (final result is mean of 4 runs):
numactl --cpunodebind=0 --membind=0 ./iperf -s
-> numactl --cpunodebind=0 --membind=0 ./iperf -c 127.0.0.1 -t 30 -l 64k

numactl --cpunodebind=0 --membind=0 ./netserver
-> numactl --cpunodebind=0 --membind=0 ./netperf -l 30 -H 127.0.0.1 -c -t UDP_STREAM -- -m 1024
-> numactl --cpunodebind=0 --membind=0 ./netperf -l 30 -H 127.0.0.1 -c -t TCP_STREAM -i 10,2 -I 99,5 -- -m 32768


The plan is to use Michael Ellerman's code patching work so that at runtime
if we're running on a Cell machine the new routines are called but otherwise
the existing memory copy routines are used.

It would be good to get some more (fresh) eyes looking at this. Any and all
comments are welcome.

Thanks!
Mark

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-06-21  0:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19  7:53 [RFC 0/3] powerpc: memory copy routines tweaked for Cell Mark Nelson
2008-06-19 11:53 ` Arnd Bergmann
2008-06-19 12:02   ` Paul Mackerras
2008-06-19 13:59     ` Arnd Bergmann
2008-06-19 14:53       ` Olof Johansson
2008-06-20  0:04         ` Mark Nelson
2008-06-19 12:11   ` Gunnar von Boehn
2008-06-19 23:33     ` Paul Mackerras
2008-06-20 16:12       ` Gunnar von Boehn
2008-06-19 23:49   ` Mark Nelson
2008-06-21  0:12     ` Mark Nelson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).