From: Mark Nelson <markn@au1.ibm.com>
To: linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org
Cc: Gunnar von Boehn <VONBOEHN@de.ibm.com>,
Michael Ellerman <ellerman@au1.ibm.com>
Subject: [RFC 0/3] powerpc: memory copy routines tweaked for Cell
Date: Thu, 19 Jun 2008 17:53:51 +1000 [thread overview]
Message-ID: <200806191753.51495.markn@au1.ibm.com> (raw)
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
next reply other threads:[~2008-06-19 7:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-19 7:53 Mark Nelson [this message]
2008-06-19 11:53 ` [RFC 0/3] powerpc: memory copy routines tweaked for Cell 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806191753.51495.markn@au1.ibm.com \
--to=markn@au1.ibm.com \
--cc=VONBOEHN@de.ibm.com \
--cc=cbe-oss-dev@ozlabs.org \
--cc=ellerman@au1.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).