ppc64 kernel memset

Anton Blanchard anton at samba.org
Tue Sep 16 18:38:00 EST 2003


Hi,

Was running fsx-linux and noticed memset was way up in the profiles:

  46.6797     fsx-linux                gendata
  15.5596     libc-2.3.2.so            (no symbols)
   4.1808     vmlinux                  .memset
   2.6565     vmlinux                  .__copy_tofrom_user

Almost all of that 4.18% is in this:

 4.0229 :c0000000001cc010:       stwu    r4,4(r6)
 0.0035 :c0000000001cc014:       bdnz+   c0000000001cc010

Does anyone feel like doing something a little more optimised? :)
Getting things doubleword aligned then doing std;std;bdnz would
be a good start.

Anton

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list