lkml.org 
[lkml]   [2005]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Testing optimize-for-size suitability?
From
Date
On Sun, 2005-01-16 at 10:40 -0500, Steve Snyder wrote:
> Is there a benchmark or set of benchmarks that would allow me to test the
> suitability of the CONFIG_CC_OPTIMIZE_FOR_SIZE kernel config option?
>
> It seems to me that the benefit of this option is very dependant on the
> amount of CPU cache installed, with the compiler code generation being a
> secondary factor. The use, or not, of CONFIG_CC_OPTIMIZE_FOR_SIZE is
> basically an act of faith without knowing how it impacts my particular
> environment.
>
> I've got a Pentium4 CPU with 512KB of L2 cache, and I'm using GCC v3.3.3.
> How can I determine whether or not CONFIG_CC_OPTIMIZE_FOR_SIZE should be
> used for my system?

it also saves 400 kb of memory that can be used by the pagecache now...
that doesn't show in a microbenchmark but it's a quite sizable gain if
you remember that a disk seek is 10msec..that is a LOT of cpu cycles..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:1.659 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site