old-www/LDP/solrhe/Securing-Optimizing-Linux-R.../chap6sec65.html

222 lines
3.7 KiB
HTML

<HTML
><HEAD
><TITLE
>Benchmark Results</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.60"><LINK
REL="HOME"
TITLE="Securing and Optimizing Linux"
HREF="index.html"><LINK
REL="UP"
TITLE="Linux General Optimization"
HREF="gen-optim.html"><LINK
REL="PREVIOUS"
TITLE="The /etc/profile file"
HREF="chap6sec64.html"><LINK
REL="NEXT"
TITLE="Benchmark results-i586"
HREF="chap6sec66.html"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Securing and Optimizing Linux: RedHat Edition -A Hands on Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="chap6sec64.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 6. Linux General Optimization</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="chap6sec66.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="prt3ch2sc2br"
>6.2. Benchmark Results</A
></H1
><P
>&#13; Summaries by Architecture:
Depending on your processor architecture and the version of your compiler <SPAN
CLASS="acronym"
>GCC/EGCS</SPAN
>, optimization results may vary. The charts below will help you to choose
the best compilation flags for your compiler/<SPAN
CLASS="acronym"
><SPAN
CLASS="acronym"
>CPU</SPAN
></SPAN
> architecture.
The compiler version installed on your Red Hat Linux version 6.1 and 6.2 is egcs 2.91.66, but be sure to check it even so before choosing your compiler
optimization options.
</P
><P
>&#13; To verify the compiler version installed on your system, use the command:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>&#13; [root@deep] /# egcs --version
egcs-2.91.66
</PRE
></TD
></TR
></TABLE
>
All benchmark results, and future results, can be retrieved from the <SPAN
CLASS="acronym"
>GCC</SPAN
> home page at the following address: <A
HREF="appendixa.html#prtinxfp6"
>http://egcs.cygnus.com/</A
>
</P
><P
>&#13; For a Pentium II/III <SPAN
CLASS="acronym"
><SPAN
CLASS="acronym"
>CPU</SPAN
></SPAN
> <SPAN
CLASS="hardware"
>i686</SPAN
> with compiler version egcs-2.91.66, the best optimization options
would be:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>&#13; <TT
CLASS="envar"
>CFLAGS=-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions</TT
>
</PRE
></TD
></TR
></TABLE
>
<DIV
CLASS="mediaobject"
><P
><IMG
SRC="images/i686.gif"
ALT="Otimization chart for i686"
></IMG
><DIV
CLASS="caption"
><P
>&#13; Comparitive analysis chart with the above mentioned flags
</P
></DIV
></P
></DIV
>
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="chap6sec64.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="chap6sec66.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The /etc/profile file</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gen-optim.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Benchmark results-i586</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>