aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2019-01-15 03:49:45 +0000
committerAndi Kleen <ak@linux.intel.com>2019-01-15 03:49:45 +0000
commit669ba3fd1b3868bfe5fab7e575ccd52514f17327 (patch)
tree5a84998f925df85fafa2ba58caf1cad436971307
parent2a5f63d973fece2e778c472d11093cf0eeb9ce09 (diff)
Lower sampling rate for autofdo bootstrap
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@267930 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--Makefile.in2
-rw-r--r--Makefile.tpl2
-rw-r--r--gcc/ChangeLog5
3 files changed, 7 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
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index aea7143dc91..03667c8d97f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-14 Andi Kleen <ak@linux.intel.com>
+
+ * Makefile.in: Lower autofdo sampling rate by 10x.
+ * Makefile.tpl: Dito.
+
2019-01-14 Tom Honermann <tom@honermann.net>
* defaults.h: Define CHAR8_TYPE.