public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 1/3] Lower sampling rate for autofdo bootstrap
@ 2019-01-14  8:20 Andi Kleen
  2019-01-14  8:20 ` [PATCH 2/3] Fix autoprofiledbootstrap Andi Kleen
  2019-01-14  9:06 ` [PATCH 1/3] Lower sampling rate for autofdo bootstrap Richard Biener
  0 siblings, 2 replies; 7+ messages in thread
From: Andi Kleen @ 2019-01-14  8:20 UTC (permalink / raw)
  To: gcc-patches; +Cc: amker.cheng, Andi Kleen

From: Andi Kleen <ak@linux.intel.com>

autofdo create_gcov uses a lot of memory for large sample files.
Since gcc runs quite long the sample files generated during
the bootstrap are fairly ig.

Currently I can't even build make autoprofiledbootstrap on my system at
home because create_gcov needs more than 12GB and runs out of memory.

This should probably be fixed in create_gcov, but for now
lowering the sampling rate works well enough for me. The bootstrap
run is long enough that it gets good enough data in any case.

gcc/:
2019-01-14  Andi Kleen  <ak@linux.intel.com>

	* Makefile.in: Lower autofdo sampling rate by 10x.
	* Makefile.tpl: Dito.
---
 Makefile.in  | 2 +-
 Makefile.tpl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index aa41730528a..28539a45372 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -387,7 +387,7 @@ MAKEINFO = @MAKEINFO@
 EXPECT = @EXPECT@
 RUNTEST = @RUNTEST@
 
-AUTO_PROFILE = gcc-auto-profile -c 1000000
+AUTO_PROFILE = gcc-auto-profile -c 10000000
 
 # This just becomes part of the MAKEINFO definition passed down to
 # sub-makes.  It lets flags be given on the command line while still
diff --git a/Makefile.tpl b/Makefile.tpl
index 1ab65ac8ec4..126296fb49a 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -390,7 +390,7 @@ MAKEINFO = @MAKEINFO@
 EXPECT = @EXPECT@
 RUNTEST = @RUNTEST@
 
-AUTO_PROFILE = gcc-auto-profile -c 1000000
+AUTO_PROFILE = gcc-auto-profile -c 10000000
 
 # This just becomes part of the MAKEINFO definition passed down to
 # sub-makes.  It lets flags be given on the command line while still
-- 
2.19.1

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

end of thread, other threads:[~2019-01-14  9:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14  8:20 [PATCH 1/3] Lower sampling rate for autofdo bootstrap Andi Kleen
2019-01-14  8:20 ` [PATCH 2/3] Fix autoprofiledbootstrap Andi Kleen
2019-01-14  8:20   ` [PATCH 3/3] Increase iterations for autofdo tests Andi Kleen
2019-01-14  9:08     ` Richard Biener
2019-01-14  9:04   ` [PATCH 2/3] Fix autoprofiledbootstrap Richard Biener
2019-01-14  9:11   ` Bin.Cheng
2019-01-14  9:06 ` [PATCH 1/3] Lower sampling rate for autofdo bootstrap Richard Biener

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).