Skip to contentSkip to conversation

Some benchmarks on ARM

DISCUSSION Robert Schwebel 15 participants 28 messages Jul 2, 2010 – Aug 19, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

All measurements have been done on 2.6.34.

Thanks,

rsc

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#1 lore raw

Hi Robert,

Quoted 7 lines · Robert Schwebel

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Quoted 6 lines

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

It would be nice if you could add the exact command lines you used for the different tests so it's easy to run the same tests on other boards as well. I suppose you added some flag to gcc to make use of the floating point hardware in i.MX35?

Could also add information on the RAM characteristics of each board? DDR1/DDR2, 16 bit/32 bit wide, and speed (MHz9.

Regards, Magnus Lilja

#2 lore raw
Quoted 19 lines · Magnus Lilja

Hi Robert,

Quoted 7 lines · Robert Schwebel

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Quoted 6 lines

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

Quoted 4 lines

It would be nice if you could add the exact command lines you used for the different tests so it's easy to run the same tests on other boards as well. I suppose you added some flag to gcc to make use of the floating point hardware in i.MX35?

We used a compiler generating hardware floating point instruction by default:

gcc was configured with:
"--with-float=softfp --with-fpu=vfp --with-cpu=arm1136jf-s"

here the complete output of gcc -v:
Using built-in specs.
Target: arm-1136jfs-linux-gnueabi
Configured with:
/home/frogger/pengutronix/toolchain/releases/OSELAS.Toolchain-1.99.3/platform-arm-1136jfs-linux-gnueabi-gcc-4.3.2-glibc-2.8-binutils-2.19-kernel-2.6.27-sanitized/build-cross/gcc-4.3.2/configure --target=arm-1136jfs-linux-gnueabi --with-sysroot=/home/frogger/pengutronix/toolchain/releases/OSELAS.Toolchain-1.99.3/inst/opt/OSELAS.Toolchain-1.99.3/arm-1136jfs-linux-gnueabi/gcc-4.3.2-glibc-2.8-binutils-2.19-kernel-2.6.27-sanitized/sysroot-arm-1136jfs-linux-gnueabi --disable-multilib --with-float=softfp --with-fpu=vfp
--with-cpu=arm1136jf-s --enable-__cxa_atexit --disable-sjlj-exceptions
--disable-nls --disable-decimal-float --disable-fixed-point
--disable-win32-registry --enable-symvers=gnu
--with-pkgversion=OSELAS.Toolchain-1.99.3 --with-gmp=/home/frogger/pengutronix/toolchain/releases/OSELAS.Toolchain-1.99.3/platform-arm-1136jfs-linux-gnueabi-gcc-4.3.2-glibc-2.8-binutils-2.19-kernel-2.6.27-sanitized/sysroot-host --with-mpfr=/home/frogger/pengutronix/toolchain/releases/OSELAS.Toolchain-1.99.3/platform-arm-1136jfs-linux-gnueabi-gcc-4.3.2-glibc-2.8-binutils-2.19-kernel-2.6.27-sanitized/sysroot-host --prefix=/home/frogger/pengutronix/toolchain/releases/OSELAS.Toolchain-1.99.3/inst/opt/OSELAS.Toolchain-1.99.3/arm-1136jfs-linux-gnueabi/gcc-4.3.2-glibc-2.8-binutils-2.19-kernel-2.6.27-sanitized --enable-languages=c,c++ --enable-threads=posix --enable-c99
--enable-long-long --enable-libstdcxx-debug --enable-profile
--enable-shared --enable-libssp --enable-checking=release
Thread model: posix
gcc version 4.3.2 (OSELAS.Toolchain-1.99.3)

cheers, Marc

Signature · 12 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100705/3df9031f/attachment.sig>
#3 lore raw
Quoted 5 lines · Marc Kleine-Budde

We used a compiler generating hardware floating point instruction by default:

gcc was configured with:
"--with-float=softfp --with-fpu=vfp --with-cpu=arm1136jf-s"

This is unclear that it's generating hardware floating point instructions. The --with-float=softfp suggests its using soft-fp.

Please check whether the resulting binaries are using hard-fp or soft-fp by looking for VFP instructions.

#4 lore raw
Quoted 9 lines · Russell King - ARM Linux
Quoted 5 lines · Marc Kleine-Budde

We used a compiler generating hardware floating point instruction by default:

gcc was configured with:
"--with-float=softfp --with-fpu=vfp --with-cpu=arm1136jf-s"

This is unclear that it's generating hardware floating point instructions. The --with-float=softfp suggests its using soft-fp.

That configuration will generate hardware vfp instructions while using softfloat calling conventions (arguments passed in integer registers). A pure softfloat configuration would be --with-float=soft.

Signature · 2 lines
M?ns Rullg?rd
mans at mansr.com
#5 lore raw
In reply to Robert Schwebel
Quoted 7 lines · Robert Schwebel

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Quoted 6 lines

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

It would be nice if you could add measurements for recent Marvell products there, such as the Kirkwood (think SheevaPlug or the like running at 1.2 GHz), or Dove. I wold expect memory throughput on those to be quite good.

Also, your article is completely missing on the other metric which is power consumption. After all what would be most interesting is not the various performance numbers per MHz but those performance numbers per Watt.

Nicolas

#6 lore raw

Op 03-07-10 07:44, Nicolas Pitre schreef:

Quoted 12 lines · Robert Schwebel
Quoted 11 lines

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

Quoted 8 lines
Quoted 3 lines

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

It would be nice if you could add measurements for recent Marvell products there, such as the Kirkwood (think SheevaPlug or the like running at 1.2 GHz), or Dove. I wold expect memory throughput on those to be quite good.

Some quick tests of lmbench on a Sheevaplug:

mcuelenaere at kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_ops integer bit: 0.85 nanoseconds
integer add: 0.02 nanoseconds
integer mul: 0.42 nanoseconds
integer div: 147.77 nanoseconds
integer mod: 36.94 nanoseconds
int64 bit: 1.71 nanoseconds
int64 add: 0.04 nanoseconds
int64 mul: 0.92 nanoseconds
int64 div: 425.89 nanoseconds
int64 mod: 273.85 nanoseconds
float add: 36.25 nanoseconds
float mul: 30.32 nanoseconds
float div: 161.29 nanoseconds
double add: 51.21 nanoseconds
double mul: 46.31 nanoseconds
double div: 542.06 nanoseconds
float bogomflops: 325.59 nanoseconds
double bogomflops: 799.14 nanoseconds

mcuelenaere at kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ mbw 128 Long uses 4 bytes. Allocating 2*33554432 elements = 268435456 bytes of memory. Using 262144 bytes as blocks for memcpy block copy test.
Getting down to business... Doing 10 runs per test.
0 Method: MEMCPY Elapsed: 0.48203 MiB: 128.00000 Copy: 265.546 MiB/s
1 Method: MEMCPY Elapsed: 0.48165 MiB: 128.00000 Copy: 265.751 MiB/s
2 Method: MEMCPY Elapsed: 0.48163 MiB: 128.00000 Copy: 265.764 MiB/s
3 Method: MEMCPY Elapsed: 0.49714 MiB: 128.00000 Copy: 257.473 MiB/s
4 Method: MEMCPY Elapsed: 0.48168 MiB: 128.00000 Copy: 265.737 MiB/s
5 Method: MEMCPY Elapsed: 0.48163 MiB: 128.00000 Copy: 265.764 MiB/s
6 Method: MEMCPY Elapsed: 0.49695 MiB: 128.00000 Copy: 257.570 MiB/s
7 Method: MEMCPY Elapsed: 0.48196 MiB: 128.00000 Copy: 265.579 MiB/s
8 Method: MEMCPY Elapsed: 0.48164 MiB: 128.00000 Copy: 265.761 MiB/s
9 Method: MEMCPY Elapsed: 0.49695 MiB: 128.00000 Copy: 257.570 MiB/s
AVG Method: MEMCPY Elapsed: 0.48633 MiB: 128.00000 Copy: 263.198 MiB/s
0 Method: DUMB Elapsed: 0.29804 MiB: 128.00000 Copy: 429.475 MiB/s
1 Method: DUMB Elapsed: 0.29807 MiB: 128.00000 Copy: 429.429 MiB/s
2 Method: DUMB Elapsed: 0.29815 MiB: 128.00000 Copy: 429.310 MiB/s
3 Method: DUMB Elapsed: 0.29800 MiB: 128.00000 Copy: 429.530 MiB/s
4 Method: DUMB Elapsed: 0.31337 MiB: 128.00000 Copy: 408.458 MiB/s
5 Method: DUMB Elapsed: 0.29805 MiB: 128.00000 Copy: 429.462 MiB/s
6 Method: DUMB Elapsed: 0.29808 MiB: 128.00000 Copy: 429.411 MiB/s
7 Method: DUMB Elapsed: 0.29801 MiB: 128.00000 Copy: 429.510 MiB/s
8 Method: DUMB Elapsed: 0.29809 MiB: 128.00000 Copy: 429.403 MiB/s
9 Method: DUMB Elapsed: 0.31339 MiB: 128.00000 Copy: 408.437 MiB/s
AVG Method: DUMB Elapsed: 0.30113 MiB: 128.00000 Copy: 425.072 MiB/s
0 Method: MCBLOCK Elapsed: 0.21906 MiB: 128.00000 Copy: 584.317 MiB/s
1 Method: MCBLOCK Elapsed: 0.21554 MiB: 128.00000 Copy: 593.852 MiB/s
2 Method: MCBLOCK Elapsed: 0.21577 MiB: 128.00000 Copy: 593.238 MiB/s
3 Method: MCBLOCK Elapsed: 0.21671 MiB: 128.00000 Copy: 590.646 MiB/s
4 Method: MCBLOCK Elapsed: 0.21479 MiB: 128.00000 Copy: 595.942 MiB/s
5 Method: MCBLOCK Elapsed: 0.23519 MiB: 128.00000 Copy: 544.232 MiB/s
6 Method: MCBLOCK Elapsed: 0.21705 MiB: 128.00000 Copy: 589.734 MiB/s
7 Method: MCBLOCK Elapsed: 0.59684 MiB: 128.00000 Copy: 214.464 MiB/s
8 Method: MCBLOCK Elapsed: 0.21699 MiB: 128.00000 Copy: 589.889 MiB/s
9 Method: MCBLOCK Elapsed: 0.21418 MiB: 128.00000 Copy: 597.642 MiB/s
AVG Method: MCBLOCK Elapsed: 0.25621 MiB: 128.00000 Copy: 499.589 MiB/s

Couldn't get lat_ctx to work.

mcuelenaere at kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_syscall open Simple open/close: 7.2754 microseconds
mcuelenaere at kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_syscall open /dev/shm/lmbench3.tar Simple open/close: 6.9399 microseconds

mcuelenaere at kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_proc fork Process fork+exit: 763.5714 microseconds

mcuelenaere at kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ cat /proc/cpuinfo
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1192.75
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1

Hardware : Marvell SheevaPlug Reference Board
Revision : 0000
Serial : 0000000000000000

I'm not sure if I'm doing this right, but it looks like the Sheevaplug beats all ARM chips (except on FP) on the tests done at [1]. Looks like these tests heavily depend on the clock frequency.

[1]: http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

Signature · 1 line
Maurus Cuelenaere
#7 lore raw

Maurus,

Quoted 1 line · Maurus Cuelenaere

Some quick tests of lmbench on a Sheevaplug:

Thanks a lot - we'll update the document soon, wiht the exact command lines included.

Quoted 3 lines

I'm not sure if I'm doing this right, but it looks like the Sheevaplug beats all ARM chips (except on FP) on the tests done at [1]. Looks like these tests heavily depend on the clock frequency.

If anyone has an idea for better benchmarks, I'd be very interested. We have been searching for benchmarks which:

- can be easily cross compiled to all involved platforms
- show the different aspects of the systems

rsc

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#8 lore raw
Quoted 12 lines · Robert Schwebel

Maurus,

Quoted 1 line · Maurus Cuelenaere

Some quick tests of lmbench on a Sheevaplug:

Thanks a lot - we'll update the document soon, wiht the exact command lines included.

Quoted 3 lines

I'm not sure if I'm doing this right, but it looks like the Sheevaplug beats all ARM chips (except on FP) on the tests done at [1]. Looks like these tests heavily depend on the clock frequency.

Quoted 5 lines

If anyone has an idea for better benchmarks, I'd be very interested. We have been searching for benchmarks which:

- can be easily cross compiled to all involved platforms
- show the different aspects of the systems

Native kernel build? ;-)

Quoted 1 line

rsc

Signature · 2 lines
Sincerely yours,
Mike.
#9 lore raw
Quoted 1 line · Mike Rapoport

Native kernel build? ;-)

Hmm, I don't have a native compiler for all platforms yet.

rsc

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#10 lore raw
Quoted 4 lines · Robert Schwebel
Quoted 1 line · Mike Rapoport

Native kernel build? ;-)

Hmm, I don't have a native compiler for all platforms yet.

Kernel compile is a really bad test in this context anyway, unless you compile the exact same kernel target using the same config with the SAME gcc version on all test machines, and using the same filesystem type and medium.

It is best to keep kernel compilation test for validation of improvements to a single system.

Nicolas

#11 lore raw
Quoted 10 lines · Nicolas Pitre
Quoted 3 lines · Robert Schwebel
Quoted 1 line · Mike Rapoport

Native kernel build? ;-)

Hmm, I don't have a native compiler for all platforms yet.

Kernel compile is a really bad test in this context anyway, unless you compile the exact same kernel target using the same config with the SAME gcc version on all test machines, and using the same filesystem type and medium.

It's quite possible with, say, Debian on USB disk...

Quoted 5 lines

It is best to keep kernel compilation test for validation of improvements to a single system.

Nicolas

Signature · 2 lines
Sincerely yours,
Mike.
#12 lore raw
In reply to Mike Rapoport

Dne Po 5. ?ervence 2010 15:31:27 Mike Rapoport napsal(a):

Quoted 12 lines
Quoted 11 lines · Robert Schwebel

Maurus,

Quoted 1 line · Maurus Cuelenaere

Some quick tests of lmbench on a Sheevaplug:

Thanks a lot - we'll update the document soon, wiht the exact command lines included.

Quoted 3 lines

I'm not sure if I'm doing this right, but it looks like the Sheevaplug beats all ARM chips (except on FP) on the tests done at [1]. Looks like these tests heavily depend on the clock frequency.

Quoted 7 lines
Quoted 5 lines

If anyone has an idea for better benchmarks, I'd be very interested. We have been searching for benchmarks which:

- can be easily cross compiled to all involved platforms
- show the different aspects of the systems

Native kernel build? ;-)

about 7 hours on xscale-pxa270 with 256MB of SDRAM ... compiling all xscale platforms in :)

Quoted 2 lines
Quoted 2 lines

rsc

#13 lore raw
In reply to Robert Schwebel

Hi!

Quoted 9 lines
Quoted 3 lines

I'm not sure if I'm doing this right, but it looks like the Sheevaplug beats all ARM chips (except on FP) on the tests done at [1]. Looks like these tests heavily depend on the clock frequency.

If anyone has an idea for better benchmarks, I'd be very interested. We have been searching for benchmarks which:

- can be easily cross compiled to all involved platforms
- show the different aspects of the systems

You tested stuff like syscalls/fork latencies... but usually most of the time is spent in kernel. What about pure userlevel computing stuff, like mp3 encoding (lame), maybe video transcoding, maybe grep could be benchmarked, and maybe factor is worth benchmarking
(http://pavelmachek.livejournal.com/77425.html)...
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#14 lore raw
In reply to Robert Schwebel

Hi Robert,

Quoted 7 lines · Robert Schwebel

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

The ARM architecture version in the list of tested hardware is wrong for the ARM1136 and Cortex-A8 cores. Should be ARMv6 and ARMv7, respectively.

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#15 lore raw
In reply to Robert Schwebel
Quoted 7 lines · Robert Schwebel

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Quoted 8 lines

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

All measurements have been done on 2.6.34.

The context switch time for PXA270 looks really suspicious. The worst case context switch time of an AT91RM9200, an armv4 running at 180MHz, is less than 300us, so, I doubt that the context switch time of a PXA can be that worse.

Signature · 1 line
					    Gilles.
#16 lore raw
Quoted 15 lines · Gilles Chanteperdrix
Quoted 14 lines · Robert Schwebel

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

Quoted 6 lines
Quoted 1 line

All measurements have been done on 2.6.34.

The context switch time for PXA270 looks really suspicious. The worst case context switch time of an AT91RM9200, an armv4 running at 180MHz, is less than 300us, so, I doubt that the context switch time of a PXA can be that worse.

The measurement is of the thread and MM switch time, which'll involve cache flushes on <= ARMv5.

On PXA, we have to 'read' (via means of D cache line allocations) 32K of data into the cache in order to cause the existing data to be written out. These are done from a range of addresses which don't exist in the page tables, and so should not cause any bus activity other than the write-outs. However, the cache still has to interact with the MMU to try to fetch the requested data - which probably consumes some cycles.

ARM920 on the other hand can walk through every cache line and clean+ invalidate it. It has 64 lines in each segment, and 8 segments, each line 32 bytes long, which gives a cache size of 16K.

I'd therefore expect ARM920's cache flushing to be quicker (in terms of cycles consumed) than PXA.

#17 lore raw
Quoted 32 lines · Russell King - ARM Linux
Quoted 15 lines · Gilles Chanteperdrix
Quoted 14 lines · Robert Schwebel

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

I'm pretty sure that there are quite a few things where people on ALKML have good ideas where the effects come from or how to improve the methodology - so I'd be glad to get some feedback from the community!

Quoted 5 lines
Quoted 1 line

All measurements have been done on 2.6.34.

The context switch time for PXA270 looks really suspicious. The worst case context switch time of an AT91RM9200, an armv4 running at 180MHz, is less than 300us, so, I doubt that the context switch time of a PXA can be that worse.

The measurement is of the thread and MM switch time, which'll involve cache flushes on <= ARMv5.

On PXA, we have to 'read' (via means of D cache line allocations) 32K of data into the cache in order to cause the existing data to be written out. These are done from a range of addresses which don't exist in the page tables, and so should not cause any bus activity other than the write-outs. However, the cache still has to interact with the MMU to try to fetch the requested data - which probably consumes some cycles.

Quoted 6 lines

ARM920 on the other hand can walk through every cache line and clean+ invalidate it. It has 64 lines in each segment, and 8 segments, each line 32 bytes long, which gives a cache size of 16K.

I'd therefore expect ARM920's cache flushing to be quicker (in terms of cycles consumed) than PXA.

Ok. But, the cache flush only accounts for only around 70us on the 290us of context switch time of the AT91RM9200. Lokks like the cache flush on PXA would have to be a lot longer.

Signature · 1 line
					    Gilles.
#18 lore raw
In reply to Robert Schwebel
Quoted 8 lines

-----Original Message-----
kernel-bounces at lists.infradead.org] On Behalf Of Robert Schwebel
Sent: 02 July 2010 19:03

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

You have the family wrong for (at least) the Cortex-A8, it's a v7. This probably accounts for some of it's slow relative performance since you probably used incorrect compiler switches.

Quoted 1 line

All measurements have been done on 2.6.34.

How were the kernels compiled? Was thumb mode used for the ones that support it?

You didn't mention the cache state anywhere - it can make a big difference.

Regards,

Colin

--
Colin Tuckley - ARM Ltd.
110 Fulbourn Rd
Cambridge, CB1 9NJ
Tel: +44 1223 400536

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#19 lore raw
Quoted 9 lines · Colin Tuckley
Quoted 8 lines

-----Original Message-----
kernel-bounces at lists.infradead.org] On Behalf Of Robert Schwebel
Sent: 02 July 2010 19:03

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Quoted 5 lines

You have the family wrong for (at least) the Cortex-A8, it's a v7. This probably accounts for some of it's slow relative performance since you probably used incorrect compiler switches.

Quoted 1 line

All measurements have been done on 2.6.34.

How were the kernels compiled? Was thumb mode used for the ones that support it?

gcc version 4.3.2 was for all kernels. The kernel .config will be added to the website.

Quoted 1 line

You didn't mention the cache state anywhere - it can make a big difference.

cheers, Marc

Signature · 12 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100705/811861cb/attachment.sig>
#20 lore raw
In reply to Colin Tuckley
Quoted 9 lines · Colin Tuckley
Quoted 8 lines

-----Original Message-----
kernel-bounces at lists.infradead.org] On Behalf Of Robert Schwebel
Sent: 02 July 2010 19:03

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Quoted 7 lines

You have the family wrong for (at least) the Cortex-A8, it's a v7. This probably accounts for some of it's slow relative performance since you probably used incorrect compiler switches.

Quoted 1 line

All measurements have been done on 2.6.34.

How were the kernels compiled? Was thumb mode used for the ones that support it?

You didn't mention the cache state anywhere - it can make a big difference.

After booting all tests are done via ssh, the system was "idle" otherwise.

We're just repeating the tests with "echo 1 > /proc/sys/vm/drop_caches" prior to each test.

cheers, Marc

Signature · 12 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100705/c98aa45f/attachment.sig>
#21 lore raw
Quoted 11 lines · Marc Kleine-Budde
Quoted 10 lines · Colin Tuckley
Quoted 7 lines

-----Original Message-----
kernel-bounces at lists.infradead.org] On Behalf Of Robert Schwebel
Sent: 02 July 2010 19:03
We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

You have the family wrong for (at least) the Cortex-A8, it's a v7. This probably accounts for some of it's slow relative performance since you probably used incorrect compiler switches.

Quoted 1 line

All measurements have been done on 2.6.34.

Quoted 8 lines
Quoted 3 lines

How were the kernels compiled? Was thumb mode used for the ones that support it?

You didn't mention the cache state anywhere - it can make a big difference.

After booting all tests are done via ssh, the system was "idle" otherwise.

We're just repeating the tests with "echo 1 > /proc/sys/vm/drop_caches" prior to each test.

We'll use "sync; echo 3 > /proc/sys/vm/drop_caches"

Marc

Signature · 12 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100705/af25163f/attachment.sig>
#22 lore raw
In reply to Robert Schwebel
Quoted 3 lines · Robert Schwebel

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom.

Thanks to everyone who posted feedback!

An updated version of the article is now here:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100729_en.html

Changes:

- all kernels ported to 2.6.34
- Atom without -rt
- all kernel configs available
- all benchmark commandlines added
- more info about compilers and generated code
- info about memory types and bus widths

rsc

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#24 lore raw
Quoted 10 lines · Richard Cochran
Quoted 4 lines · Robert Schwebel

Thanks to everyone who posted feedback!

An updated version of the article is now here:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100729_en.html

Nice report.

I would be interesting for me if you could give the FCSE patch a try on the v5 machines. Any chance of that happening?

As I already said, I am very suspicious about the results of this benchmark on PXA. We get user-space scheduling latencies under 300us on PXA with Xenomai, and as you know, the worst case user-space scheduling latency includes a context switch, so, this means that the context switch is less than 300us. However, these benchmarks show some context switches around 600us, so I suspect the measurement measures more than just a context switch, maybe the execution of a long standing interrupt or more probably a soft irq.
The gain induced by the FCSE patch is between 50 and 100us on the machines where we measured it, so, it will not make a big difference on a context switch time of 600us.

Anyway, I have not worked on the FCSE patch for 2.6.34, I was waiting for 2.6.35 to be released to work on the two at a time, but if anyone is interested, I can get it working before that.

Signature · 1 line
					    Gilles.
#25 lore raw
In reply to Robert Schwebel

Hi Robert,

Quoted 9 lines · Robert Schwebel

Hi,

We have recently made some benchmarks, in order to get a little bit better fealing about where ARM cpus are today, especially when it comes to the "recent" ones, and in comparism to the Atom. So we collected a few benchmarks (most from lmbench) and did some actual measurements.

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

Thanks for this link, it was quite informative. Can you also please share the detailed report of lmbench tests which you run on these platforms. For example, average cpu bandwidth figures (as in bw_mem test) are not giving information on significant impact of caches and DDR.

Signature · 2 lines
regards
Shiraz Hashim
#26 lore raw

Hi,

Quoted 8 lines · shiraz hashim
Quoted 2 lines

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

Thanks for this link, it was quite informative. Can you also please share the detailed report of lmbench tests which you run on these platforms. For example, average cpu bandwidth figures (as in bw_mem test) are not giving information on significant impact of caches and DDR.

Please check the updated version of the article - the page you've linked above contains a link at the top. The new version contains all the commands which have been used.

rsc

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#27 lore raw

Thanks Robert,

Quoted 12 lines · Robert Schwebel

Hi,

Quoted 8 lines · shiraz hashim
Quoted 2 lines

Here is a little article:
http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

Thanks for this link, it was quite informative. Can you also please share the detailed report of lmbench tests which you run on these platforms. For example, average cpu bandwidth figures (as in bw_mem test) are not giving information on significant impact of caches and DDR.

Quoted 3 lines

Please check the updated version of the article - the page you've linked above contains a link at the top. The new version contains all the commands which have been used.

Now I see this, it is more clear.

Signature · 2 lines
regards
Shiraz Hashim