Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp52612ybs; Tue, 26 May 2020 03:31:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEHWB8u/l92IoXiCNv8GQBQdoHmpKmRmG1KA1FB1G3kRC+i1FCZiF1FR25img0jzmxF28x X-Received: by 2002:a50:d556:: with SMTP id f22mr1256434edj.307.1590489060940; Tue, 26 May 2020 03:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590489060; cv=none; d=google.com; s=arc-20160816; b=QbLMMOxkSymiHEnzd2l8Z4I4oJoQg4ncuhmH/VdpNdAG9cQdwZ7ioYNJIA4YA4vscT LIwzsJaxBRCedDvaiRz336wWQyUMl15VulZCgW+ai2+j6WEMF085rXijrXXD1jh1cSCh U1eNcGYUK3I55YRfV0R2NeEk1lITNfeOn5qvZcdD9MSfgW+IOGXqD8ncOdbFxSWIIO86 0UvZGLaLHyVWqRqJHGTxqYLLffQAJn/6776sMCx8KYOlHHy5uMJSm+Bt3z4o0E4MyVdZ h6cx8hea/6dUddSqsOtsYQ3SePA8aDKwPOkkJhQge9OLsgRkzG7OkcuZpJxqToFdG81w 88Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=qnm3rcWAxInWSd7vhesNxTx/sKbpy8dqFftwYTjfELU=; b=uU9PT/InmcmCkkCMgijXANpA1P0zolDJWkazStqLJ0iuondCRTZa0lcsrurGJYnxMk yOquufNg0v7LRZLCqTeEBToGuLNKL4oiAnkNjdxFiM0KPpnBT9BFASh03FvUQIPeAbPw 7GNRYi/CN/96QPURjTeoCtntdotlbdNleuEli51/rA0OFaC5BUc6nSVFceYo6ZDewfA8 O8qQg1q2ONEdN8uq0R9lTYMFbWNEOHyg+9NYG42Ap1siMboh6t7BiCqzL+K2ZfAA+gUR 4LrzY7EGeSlXXHIEHrqKISiZqTCnJ1pmnOKDdBfhhkLBoJ0IhODnsfm4ZrGZXOQCG3Ib +aBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="d4f/9aYr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy7si10474291edb.484.2020.05.26.03.30.38; Tue, 26 May 2020 03:31:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="d4f/9aYr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731903AbgEZK2G (ORCPT + 99 others); Tue, 26 May 2020 06:28:06 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:44525 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731815AbgEZK2G (ORCPT ); Tue, 26 May 2020 06:28:06 -0400 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 04QARV5x024991; Tue, 26 May 2020 19:27:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 04QARV5x024991 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1590488851; bh=qnm3rcWAxInWSd7vhesNxTx/sKbpy8dqFftwYTjfELU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=d4f/9aYrEJvJeK4t8MaEjo9TogMD/5uYTpgPmWaN2UzL3ND0LOZ291eMctSBAYfPB tn0rQSIsqcfowRTILhKel6fIWTKHEw2Zqyf6bEBz/jvIh7ZgU3jpcmixTohAIVdF21 gzTrrpsiUJOSfi8FYxqwJ3ltxmBBFW5pNFkU0LXLG7K/eWaigsevlu3mUX97bN1oa5 pQsOV9bQhxyEZyrc+9/dxELDBWniO81dxhLTMRdluThaGeWY4gOX6vi5kqxpEYU4kZ 7o/3IarHny//KBzkWoGf+7DWC9yHZ9vkgbInaWm3MCkInK00WNe8EjQMdoBZw+dZgv W8a9C6I2zx2qg== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id a68so624949vsd.8; Tue, 26 May 2020 03:27:31 -0700 (PDT) X-Gm-Message-State: AOAM533KelBniSuk8/zirtrylh2GKidzg8V74O2YqCgpqSUPI/VnANqh oM7m0g76QIJPFewJZKVhCDiRWz0UNf0LULLrIcE= X-Received: by 2002:a67:f3c3:: with SMTP id j3mr294296vsn.155.1590488850516; Tue, 26 May 2020 03:27:30 -0700 (PDT) MIME-Version: 1.0 References: <20200521220041.87368-1-ndesaulniers@google.com> In-Reply-To: <20200521220041.87368-1-ndesaulniers@google.com> From: Masahiro Yamada Date: Tue, 26 May 2020 19:26:54 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] Makefile: support compressed debug info To: Nick Desaulniers Cc: Sedat Dilek , Fangrui Song , Nick Clifton , David Blaikie , Michal Marek , Andrew Morton , Changbin Du , Randy Dunlap , Stephen Rothwell , Anshuman Khandual , Mauro Carvalho Chehab , Krzysztof Kozlowski , Linux Kbuild mailing list , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 22, 2020 at 7:00 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > As debug information gets larger and larger, it helps significantly save > the size of vmlinux images to compress the information in the debug > information sections. Note: this debug info is typically split off from > the final compressed kernel image, which is why vmlinux is what's used > in conjunction with GDB. Minimizing the debug info size should have no > impact on boot times, or final compressed kernel image size. > > All of the debug sections will have a `C` flag set. > $ readelf -S > > $ bloaty vmlinux.gcc75.compressed.dwarf4 -- \ > vmlinux.gcc75.uncompressed.dwarf4 > > FILE SIZE VM SIZE > -------------- -------------- > +0.0% +18 [ = ] 0 [Unmapped] > -73.3% -114Ki [ = ] 0 .debug_aranges > -76.2% -2.01Mi [ = ] 0 .debug_frame > -73.6% -2.89Mi [ = ] 0 .debug_str > -80.7% -4.66Mi [ = ] 0 .debug_abbrev > -82.9% -4.88Mi [ = ] 0 .debug_ranges > -70.5% -9.04Mi [ = ] 0 .debug_line > -79.3% -10.9Mi [ = ] 0 .debug_loc > -39.5% -88.6Mi [ = ] 0 .debug_info > -18.2% -123Mi [ = ] 0 TOTAL > > $ bloaty vmlinux.clang11.compressed.dwarf4 -- \ > vmlinux.clang11.uncompressed.dwarf4 > > FILE SIZE VM SIZE > -------------- -------------- > +0.0% +23 [ = ] 0 [Unmapped] > -65.6% -871 [ = ] 0 .debug_aranges > -77.4% -1.84Mi [ = ] 0 .debug_frame > -82.9% -2.33Mi [ = ] 0 .debug_abbrev > -73.1% -2.43Mi [ = ] 0 .debug_str > -84.8% -3.07Mi [ = ] 0 .debug_ranges > -65.9% -8.62Mi [ = ] 0 .debug_line > -86.2% -40.0Mi [ = ] 0 .debug_loc > -42.0% -64.1Mi [ = ] 0 .debug_info > -22.1% -122Mi [ = ] 0 TOTAL > > For x86_64 defconfig + LLVM=1 (before): > Elapsed (wall clock) time (h:mm:ss or m:ss): 3:22.03 > Maximum resident set size (kbytes): 43856 > > For x86_64 defconfig + LLVM=1 (after): > Elapsed (wall clock) time (h:mm:ss or m:ss): 3:32.52 > Maximum resident set size (kbytes): 1566776 > > Suggested-by: David Blaikie > Suggested-by: Nick Clifton > Suggested-by: Sedat Dilek > Reviewed-by: Fangrui Song > Tested-by: Sedat Dilek > Signed-off-by: Nick Desaulniers Suggested-by seems strange to me, but I decided to not be worried too much. Applied to linux-kbuild. Thanks. -- Best Regards Masahiro Yamada