From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4946 invoked by alias); 14 Jan 2019 09:06:39 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 2712 invoked by uid 89); 14 Jan 2019 09:06:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1834 X-HELO: mail-lf1-f67.google.com Received: from mail-lf1-f67.google.com (HELO mail-lf1-f67.google.com) (209.85.167.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Jan 2019 09:06:37 +0000 Received: by mail-lf1-f67.google.com with SMTP id y14so14976725lfg.13 for ; Mon, 14 Jan 2019 01:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i2fN30YPpHBgZvuV8xJOMPeg9IUqtobovKCrEh2gj+g=; b=mqFiyxbvzhnAd3xFHaIMhOsjFnJkcG87Wg8ym/Dor+EsKiyfBaVAvlCSyCMAqXZmQY 7383vz+9xKTmP+pSC/9WG2dornXL899LNPsi++WD62WrCJVZqdUR3Krl/CIwdfbeA3bh e0LZ5iG/V4wKt29KY/v27vBVmWkudUR9/3+oKypJ3LFSkyBpXAhmoKSUhVJ7Z3hXNOeW 3jGZMkWTVGiDlTqr7DcXS54HKaNRof/OubjjvboLr2idOkLhwqDasheO448Mt9kqhFoE Ewz/MR090ESMoXnILC2DWBmi1j+0p5tV1Q+pPtfxtzfnVqyvaLwI5OyFjs8CBnlW0Qav JJKw== MIME-Version: 1.0 References: <20190114081942.9088-1-andi@firstfloor.org> In-Reply-To: <20190114081942.9088-1-andi@firstfloor.org> From: Richard Biener Date: Mon, 14 Jan 2019 09:06:00 -0000 Message-ID: Subject: Re: [PATCH 1/3] Lower sampling rate for autofdo bootstrap To: Andi Kleen Cc: GCC Patches , "Amker.Cheng" , Andi Kleen Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00755.txt.bz2 On Mon, Jan 14, 2019 at 9:20 AM Andi Kleen wrote: > > From: Andi Kleen > > 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. OK. Richard. > gcc/: > 2019-01-14 Andi Kleen > > * 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 >