Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 88508782AF3 for <~alpine/devel@lists.alpinelinux.org>; Thu, 30 Jul 2020 08:46:09 +0000 (UTC) Received: by mail-lj1-f182.google.com with SMTP id x9so28027336ljc.5 for <~alpine/devel@lists.alpinelinux.org>; Thu, 30 Jul 2020 01:46:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kw3yWwKzgtMBjTemcb29YuxCZMARipVekUSs1sy5E40=; b=SQqdjZjF/OW3Y1sPO7cCwLCK8l6fmaQfRrvxV54VypLcGK9xJXzypyxqW3q8nR2EHg MeP2k9JL2Mau60YHEVpwiKvTnczT/gkv9xkpgvT6isXf79iYd9Nogksg+bcR3vUFVbDq Veh78hakdnxWooVEgsm9CLrY6foOpE+7BN70+1oKxQY1ylsSX9lzLSXxX/RmgMHYkhTq SbKoefKpNBPj/YWQa9pUgfhYKL4GRqm/e6r5mFI7Q4dMUm/5JH5n7Ft+ROyicNykYJ8d 6sg8Hh1FaZC9LiUev5+6kgWCxRkDZw+F1aWPtmyG9HrRFydsmuPFiGJkPjX9MyTVDQqc OnNw== X-Gm-Message-State: AOAM530p6DjN0/reSUeD+nH7cGiS8Y7hvxJV7xabnNr5hgnZ184T0EM8 3Pj/lh72jMWIq3Y3xUJUbS0= X-Google-Smtp-Source: ABdhPJwQoyer6snzf2CrMcfcS8KKicY21zbTKfrmioPPo5hFeqIs/gey98sZWrZFp911QXgvs/IZLg== X-Received: by 2002:a05:651c:102c:: with SMTP id w12mr1107448ljm.464.1596098768459; Thu, 30 Jul 2020 01:46:08 -0700 (PDT) Received: from vostro.wlan (dzy-8wyyyyyyyyyyyyx9y-3.rev.dnainternet.fi. [2001:14ba:a03f:c900::4fa]) by smtp.gmail.com with ESMTPSA id d11sm904929ljo.58.2020.07.30.01.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 01:46:08 -0700 (PDT) Date: Thu, 30 Jul 2020 11:46:05 +0300 From: Timo Teras To: Natanael Copa Cc: "Alex Xu (Hello71)" , ~alpine/devel@lists.alpinelinux.org Subject: Re: Debug symbol compression Message-ID: <20200730114605.63955bc8@vostro.wlan> In-Reply-To: <20200707141020.33a4d2a4@ncopa-desktop.copa.dup.pw> References: <1593702164.2nw55qdomr.none.ref@localhost> <1593702164.2nw55qdomr.none@localhost> <20200707141020.33a4d2a4@ncopa-desktop.copa.dup.pw> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 7 Jul 2020 14:10:20 +0200 Natanael Copa wrote: > On Thu, 02 Jul 2020 13:09:19 -0400 > "Alex Xu (Hello71)" wrote: > > > Modern DWARF debugging sections can be compressed with zlib to save > > storage. This is done using the gcc -gz or objcopy > > --compress-debug-sections options. > > > > Currently, Alpine does not compress debug sections. I think we > > should consider doing so. > ... > > > == Conclusions == > > > > Overall, I think that once libunwind is bumped to 1.5, we should > > start compressing debug sections. We shouldn't support old bundled > > versions of gdb or libunwind, and the installed size benefit is > > substantial. In my opinion, the speed difference is negligible > > compared to the size benefits. If we switch to zstd apk format, > > then that will unfortunately likely need to be reverted. > > I think that makes sense. Lets bring it up again once libunwind 1.5 is > out and our package is updated. If libunwind needs backtracing for something real, it should first use .eh_frame which contains the unwinding info. The debug symbols are really needed for debugging only. And then we'd likely be using gdb or something better anyway. I think we can just go ahead and do this in edge if not done already. Timo