Difference between revisions of "Supporting Architectures above armv5tel"

From CDOT Wiki
Jump to: navigation, search
(Project Plan)
(Project Plan)
Line 37: Line 37:
 
<b><font style="font-size:120%"> 0.1 Optimize and run a benchmark program specifically designed to make use of <code>glibc</code></font></b>
 
<b><font style="font-size:120%"> 0.1 Optimize and run a benchmark program specifically designed to make use of <code>glibc</code></font></b>
  
Any packages compiled for the beagleboards can be installed without optimization. So far, in the case of <code>cdot-beagleXM-0-3</code> packages are compiled without it. Without optimizations, software installed in a system can only run on optimal performance. In order to make use of ARMv7 architecture features, editing the <code>CFLAGS</code> to use <code>arm</code> optimization options  will let the compiler attempt to improve the performance and/or code size of the program; resulting in a more efficient system.
+
Any packages compiled for the beagleboards can be installed without optimization. So far, in the case of <code>cdot-beagleXM-0-3</code> packages are compiled without it. Without optimizations, software installed in a system can only run on optimal performance. In order to make use of ARMv7 architecture features, editing the <code>CFLAGS</code> to use <code>arm</code> optimization options  will let the compiler attempt to improve the performance and/or code size of the program; resulting in a more efficient/faster system.
  
The goal of this release is to run a benchmark software named [http://en.wikipedia.org/wiki/Dhrystone Dhrystone] and record the results. Three (3) runs are required: '''No optimization''', '''Optimized for armv5tel''', and '''Optimized for armv7'''. The purpose of running dhrystone is listed below:
+
The goal of this release is to run a benchmark software named [http://en.wikipedia.org/wiki/Dhrystone Dhrystone] on <code>cdot-beagleXM-0-3</code> and record the results. Three (3) runs are required: '''No optimization''', '''Optimized for armv5tel''', and '''Optimized for armv7'''. Dhrystone is chosen as the benchmark software for the following reasons:
  
 
<b><font style="font-size:100%">Reasons for using Dhrystone</font></b>
 
<b><font style="font-size:100%">Reasons for using Dhrystone</font></b>
Line 46: Line 46:
 
*Dhrystone numbers reflect the performance of the C compiler and libraries more so than the performance of the processor itself. (considered as a weakness of the program)
 
*Dhrystone numbers reflect the performance of the C compiler and libraries more so than the performance of the processor itself. (considered as a weakness of the program)
 
*Check if armv7 optimization options and armv5tel optimization options differ significantly in system performance boost
 
*Check if armv7 optimization options and armv5tel optimization options differ significantly in system performance boost
 +
  
 
'''Test Result:'''
 
'''Test Result:'''
Line 57: Line 58:
 
*Optimized for armv7    = 1034.82179852 DMIPS
 
*Optimized for armv7    = 1034.82179852 DMIPS
  
 +
The benchmark graph shows that optimization increased the overall performance of cdot-beagleXM-0-3 by '''36%'''. The results for both armv5tel and armv7 optimizations are the same. (It's safe to assume that the armv5tel glibc impacts the performance of C library dependent programs such as Dhrystone). The data gathered can be used as a reference for conducting 0.2 project release.
  
The data gathered can be used as a reference for conducting 0.2 project release.
 
 
* 0.2
 
* 0.2
 
* 0.3
 
* 0.3

Revision as of 01:12, 10 December 2010

Project Name

Supporting Architectures Above armv5tel

Project Description

The armv5tel architecture version is supported by some common devices such as the Marvell Feroceon processors used in most plug computers. However, later versions of the architecture support advanced features, and using armv5tel code on those processors may result in suboptimal performance.

This project will research ways that Fedora-ARM could support higher processor versions effectively without recompiling the entire Fedora package universe -- for example, by providing an armv7 + hardfp glibc and kernel. This involves performance testing across multiple devices.

Initial contacts: ctyler, PaulW

Project Leader(s)

Mark Eamiguel

Project Contributor(s)

IRC:
#ubuntu-arm (persia)
#gentoo-embedded (solar and steev_)

Project Details

This project aims to test the significance of technologies that exist in ARMv7 architecture by conducting different benchmark techniques and compiler optimisation. This project covers performance comparison between ARMv5 and ARMv7. Results can help the Fedora-ARM community decide on how to go about with the compilation of the fedora universe on ARMv7 devices.

ARMv7 Technologies:


There are currently 2 ARMv7 (beagleboard & beagleboard XM) builders in the Fedora ARM farm. These builders are running builds on ARMv5tel architecture which means optimum performance is not achieved.

Project Plan

Goals for each release:

0.1 Optimize and run a benchmark program specifically designed to make use of glibc

Any packages compiled for the beagleboards can be installed without optimization. So far, in the case of cdot-beagleXM-0-3 packages are compiled without it. Without optimizations, software installed in a system can only run on optimal performance. In order to make use of ARMv7 architecture features, editing the CFLAGS to use arm optimization options will let the compiler attempt to improve the performance and/or code size of the program; resulting in a more efficient/faster system.

The goal of this release is to run a benchmark software named Dhrystone on cdot-beagleXM-0-3 and record the results. Three (3) runs are required: No optimization, Optimized for armv5tel, and Optimized for armv7. Dhrystone is chosen as the benchmark software for the following reasons:

Reasons for using Dhrystone

  • ARM® recognizes the program and uses it as a performance attribute of their processors.
  • Dhrystone provides a more meaningful MIPS (Million Instructions Per Second) because results are compared to a reference machine.
  • Dhrystone numbers reflect the performance of the C compiler and libraries more so than the performance of the processor itself. (considered as a weakness of the program)
  • Check if armv7 optimization options and armv5tel optimization options differ significantly in system performance boost


Test Result:


Graph.png

Legend:

  • Normal = 758.869322709 DMIPS
  • Optimized for armv5tel = 1034.82179852 DMIPS
  • Optimized for armv7 = 1034.82179852 DMIPS

The benchmark graph shows that optimization increased the overall performance of cdot-beagleXM-0-3 by 36%. The results for both armv5tel and armv7 optimizations are the same. (It's safe to assume that the armv5tel glibc impacts the performance of C library dependent programs such as Dhrystone). The data gathered can be used as a reference for conducting 0.2 project release.

  • 0.2
  • 0.3

Things to learn

-Ways of benchmarking ARM processors
-gcc install options
-Compiling kernel and glibc
-Familiarization with ARM hardware

Project News

November 4th, 2010 - Compiler optimization options ready for testing, project page updated

October 19th, 2010 - Chris Tyler explained more about the project, including goal 0.1

October 15th, 2010 - Project page updated (Things to learn)