]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Lower sampling rate for autofdo bootstrap
authorAndi Kleen <ak@linux.intel.com>
Tue, 15 Jan 2019 03:49:45 +0000 (03:49 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Tue, 15 Jan 2019 03:49:45 +0000 (03:49 +0000)
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.

From-SVN: r267930

Makefile.in
Makefile.tpl
gcc/ChangeLog

index aa41730528a8a1197b73b24069f720b7c9790faf..28539a4537263e4d1820548a37000d09f1724311 100644 (file)
@@ -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
index 1ab65ac8ec42dad880a61cb7fc545db8c5e6c36c..126296fb49aba23bf5b222cbb49b40cacdb36094 100644 (file)
@@ -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
index aea7143dc91e01bdecf84ef68927e24b8b2252bb..03667c8d97ff19469e0e50fab9de9aa45ead5e04 100644 (file)
@@ -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.