From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Tiny Guix (and containers) Date: Thu, 26 Oct 2017 09:02:56 +0200 Message-ID: <87mv4emlwf.fsf@elephly.net> References: <20171025081846.GA28005@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7cSO-00085f-NG for guix-devel@gnu.org; Thu, 26 Oct 2017 03:20:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7cSL-000273-I0 for guix-devel@gnu.org; Thu, 26 Oct 2017 03:20:00 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7cSL-0001SH-7u for guix-devel@gnu.org; Thu, 26 Oct 2017 03:19:57 -0400 In-reply-to: <20171025081846.GA28005@thebird.nl> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pjotr Prins Cc: guix-devel Pjotr Prins writes: > 22M 3x53yv4v144c9xp02rs64z7j597kkqax-gcc-5.4.0-lib According to “du”, this is 32M on my disk. The “lib” subdir contains both shared libraries as well as ar archives for static linking; together they weigh in at 12MB. We may want to move them to a separate output. The package also contains lots of header files: 6.3M /gnu/store/3x53yv4v144c9xp02rs64z7j597kkqax-gcc-5.4.0-lib/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/plugin/include/ Not sure what to do with those without making the use of GCC a hassle. > 41M n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25 This package still contains a lot of locale data. The directory “share/i18n/locales/” takes up 6.7M, and “share/locale” takes up another 4.3M. All the .a files under “lib” take up 8.7M. > 34M nnykzgwfy8mwh2gmxm715sjxykg8qjwn-binutils-2.28 “share/locale” is 9.4M. This is a cross-cutting concern. We don’t have a way to globally filter locales to only requested locales. Even if we split them each into a separate output — how would you specify that you want the “de_DE” locale in each package and not install the rest? There seems to be some duplication with these directories: /gnu/store/nnykzgwfy8mwh2gmxm715sjxykg8qjwn-binutils-2.28/x86_64-unknown-linux-gnu/bin/ /gnu/store/nnykzgwfy8mwh2gmxm715sjxykg8qjwn-binutils-2.28/bin/ But the binaries seem to be hardlinked, so they don’t take up extra space. > Now it takes forever to set up the image Have you tried disabling compression? This could be a lot faster. I found that tar with gzip compression is terribly slow to copy things from the store into a compressed tar archive. Disabling compression speeds this up considerably, even though it is still rather slow. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net