public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [google] Increase hotness count fraction
@ 2011-08-25  7:34 Mark Heffernan
  2011-08-25  7:51 ` Xinliang David Li
  2011-08-25 14:31 ` Ramana Radhakrishnan
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Heffernan @ 2011-08-25  7:34 UTC (permalink / raw)
  To: Xinliang David Li, GCC Patches

This patch bumps up the parameter 'hot-bb-count-fraction' from 10000
to 40000.  This results in about a 0.5% geomean performance
improvement across internal benchmarks for x86-64 LIPO.  The parameter
change effectively increases the number of functions/callsites which
are considered hot.  The performance improvement is likely due to
increased inlining (more callsites are considered hot and available
for inlining).

Bootstrapped and reg-tested on x86-64.  OK for google/gcc-4_6?

Mark


2011-08-24  Mark Heffernan  <meheff@google.com>

	* params.def (hot-bb-count-fraction): Change default value.



Index: params.def
===================================================================
--- params.def  (revision 177964)
+++ params.def  (working copy)
@@ -382,7 +382,7 @@ DEFPARAM(PARAM_SMS_LOOP_AVERAGE_COUNT_TH
 DEFPARAM(HOT_BB_COUNT_FRACTION,
         "hot-bb-count-fraction",
         "Select fraction of the maximal count of repetitions of basic
block in program given basic block needs to have to be considered
hot",
-        10000, 0, 0)
+        40000, 0, 0)
 DEFPARAM(HOT_BB_FREQUENCY_FRACTION,
         "hot-bb-frequency-fraction",
         "Select fraction of the maximal frequency of executions of
basic block in function given basic block needs to have to be
considered hot",

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [google] Increase hotness count fraction
  2011-08-25  7:34 [google] Increase hotness count fraction Mark Heffernan
@ 2011-08-25  7:51 ` Xinliang David Li
  2011-08-25 14:31 ` Ramana Radhakrishnan
  1 sibling, 0 replies; 4+ messages in thread
From: Xinliang David Li @ 2011-08-25  7:51 UTC (permalink / raw)
  To: Mark Heffernan; +Cc: GCC Patches

Good for google branches.

Need to measure the performance and size impact on SPEC2k/06 with this
patch and the previous hotcaller patch for trunk.

thanks,

David

On Wed, Aug 24, 2011 at 2:43 PM, Mark Heffernan <meheff@google.com> wrote:
> This patch bumps up the parameter 'hot-bb-count-fraction' from 10000
> to 40000.  This results in about a 0.5% geomean performance
> improvement across internal benchmarks for x86-64 LIPO.  The parameter
> change effectively increases the number of functions/callsites which
> are considered hot.  The performance improvement is likely due to
> increased inlining (more callsites are considered hot and available
> for inlining).
>
> Bootstrapped and reg-tested on x86-64.  OK for google/gcc-4_6?
>
> Mark
>
>
> 2011-08-24  Mark Heffernan  <meheff@google.com>
>
>        * params.def (hot-bb-count-fraction): Change default value.
>
>
>
> Index: params.def
> ===================================================================
> --- params.def  (revision 177964)
> +++ params.def  (working copy)
> @@ -382,7 +382,7 @@ DEFPARAM(PARAM_SMS_LOOP_AVERAGE_COUNT_TH
>  DEFPARAM(HOT_BB_COUNT_FRACTION,
>         "hot-bb-count-fraction",
>         "Select fraction of the maximal count of repetitions of basic
> block in program given basic block needs to have to be considered
> hot",
> -        10000, 0, 0)
> +        40000, 0, 0)
>  DEFPARAM(HOT_BB_FREQUENCY_FRACTION,
>         "hot-bb-frequency-fraction",
>         "Select fraction of the maximal frequency of executions of
> basic block in function given basic block needs to have to be
> considered hot",
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [google] Increase hotness count fraction
  2011-08-25  7:34 [google] Increase hotness count fraction Mark Heffernan
  2011-08-25  7:51 ` Xinliang David Li
@ 2011-08-25 14:31 ` Ramana Radhakrishnan
  2011-08-25 17:39   ` Mark Heffernan
  1 sibling, 1 reply; 4+ messages in thread
From: Ramana Radhakrishnan @ 2011-08-25 14:31 UTC (permalink / raw)
  To: Mark Heffernan; +Cc: Xinliang David Li, GCC Patches

On 24 August 2011 22:43, Mark Heffernan <meheff@google.com> wrote:
> This patch bumps up the parameter 'hot-bb-count-fraction' from 10000
> to 40000.  This results in about a 0.5% geomean performance
> improvement across internal benchmarks for x86-64 LIPO.  The parameter
> change effectively increases the number of functions/callsites which
> are considered hot.  The performance improvement is likely due to
> increased inlining (more callsites are considered hot and available
> for inlining).
>
> Bootstrapped and reg-tested on x86-64.  OK for google/gcc-4_6?

I know this is intended for the google branches but shouldn't such a
change be in the x86_64 backend rather than such a general change to
params.def .

My 2 cents.

cheers
Ramana

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [google] Increase hotness count fraction
  2011-08-25 14:31 ` Ramana Radhakrishnan
@ 2011-08-25 17:39   ` Mark Heffernan
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Heffernan @ 2011-08-25 17:39 UTC (permalink / raw)
  To: Ramana Radhakrishnan; +Cc: Xinliang David Li, GCC Patches

On Thu, Aug 25, 2011 at 6:49 AM, Ramana Radhakrishnan
<ramana.radhakrishnan@linaro.org> wrote:
> I know this is intended for the google branches but shouldn't such a
> change be in the x86_64 backend rather than such a general change to
> params.def .

I wouldn't consider this a backend-specific change.  The parameter
generally affects performance-space tradeoff with FDO.  A higher value
means more code will be optimized for performance rather than size
(perhaps most significantly in the inliner).  The value is too
conservative (too much optimizing for size) and leaves performance on
the table, at least for our benchmarks.  Though I've only tested
x86-64, I'd imagine other arches would benefit especially those with
relatively large I-caches where a larger code footprint can be
tolerated.  Of course YMMV...

Mark

>
> My 2 cents.
>
> cheers
> Ramana
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-25 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25  7:34 [google] Increase hotness count fraction Mark Heffernan
2011-08-25  7:51 ` Xinliang David Li
2011-08-25 14:31 ` Ramana Radhakrishnan
2011-08-25 17:39   ` Mark Heffernan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).