From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Image generation Date: Tue, 28 Apr 2020 23:15:55 +0200 Message-ID: <87mu6vs450.fsf@gnu.org> References: <878sior7fw.fsf@gmail.com> <20200421191630.GB12011@jasmine.lan> <87eesdz0v3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46996) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTXaA-0002js-Sz for guix-devel@gnu.org; Tue, 28 Apr 2020 17:17:03 -0400 In-Reply-To: <87eesdz0v3.fsf@gmail.com> (Mathieu Othacehe's message of "Fri, 24 Apr 2020 11:31:12 +0200") 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-mx.org@gnu.org Sender: "Guix-devel" To: Mathieu Othacehe Cc: guix-devel@gnu.org Mathieu Othacehe skribis: >> Wow! Why did it take 2h30? Do you have KVM? > > Yes, I'm not sure why it's so long. It seems that > "estimated-partition-size" takes a large proportion of this time, > because if I run the same command with a fixed disk-image size it goes > faster. Ooooh, I had never realized, but you may be right: =E2=80=98closure-size=E2= =80=99 stats every single file of the closure, and those files are accessed over 9P. That said, I tried this: --8<---------------cut here---------------start------------->8--- $ guix system build gnu/system/examples/bare-bones.tmpl --no-offload [...] $ time guix system disk-image gnu/system/examples/bare-bones.tmpl --no-offl= oad guix system: warning: Your Guix installation is 15 days old. guix system: warning: Consider running 'guix pull' followed by 'guix system reconfigure' to get up-to-date packages and security updates. La jenaj derivoj estos konstruataj: /gnu/store/ydvfhx9v65l4cjrbdgr6xxdh44091fwf-disk-image.drv /gnu/store/8kz750zdbxl86n4w2gfcm0xm6gcqzbnb-linux-vm-loader.drv /gnu/store/0jmcc2f6r3q72mlbi9ahmx2bjghn2rha-builder-in-linux-vm.drv /gnu/store/9df7312w32sbs9nv55x8arh2c65apjmx-grub.cfg.drv /gnu/store/72mmpjd65ysyxdb8c7x9bflb7g9jq93i-raw-initrd.drv /gnu/store/m4xri89s0m0xkdkbma1z0a9ikaz3117v-system.drv /gnu/store/53gm95vhr2p5r6g3bb7c7zynchwn2k3x-boot.drv /gnu/store/ylmkdd43vinyz6li8kx62cphz74kcark-parameters.drv building /gnu/store/53gm95vhr2p5r6g3bb7c7zynchwn2k3x-boot.drv... building /gnu/store/72mmpjd65ysyxdb8c7x9bflb7g9jq93i-raw-initrd.drv... building /gnu/store/ylmkdd43vinyz6li8kx62cphz74kcark-parameters.drv... building /gnu/store/m4xri89s0m0xkdkbma1z0a9ikaz3117v-system.drv... building /gnu/store/9df7312w32sbs9nv55x8arh2c65apjmx-grub.cfg.drv... building /gnu/store/0jmcc2f6r3q72mlbi9ahmx2bjghn2rha-builder-in-linux-vm.dr= v... building /gnu/store/8kz750zdbxl86n4w2gfcm0xm6gcqzbnb-linux-vm-loader.drv... building /gnu/store/ydvfhx9v65l4cjrbdgr6xxdh44091fwf-disk-image.drv... /gnu/store/7v599g2zwkzb6lv8s6gjm66lqw0gcb53-disk-image real 4m11.079s user 0m5.145s sys 0m0.418s $ guix describe Generacio 139 Apr 13 2020 21:50:08 (nuna) guix bad368b repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: bad368b0d794689f3a8a11b58f1ea4987938682e --8<---------------cut here---------------end--------------->8--- So it=E2=80=99s much less than 2h30. Could it be that you timing building = of additional derivations? Even with a cold cache, it shouldn=E2=80=99t make = that big a difference no? Thanks, Ludo=E2=80=99.