all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Mathieu Othacehe <m.othacehe@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Image generation
Date: Tue, 28 Apr 2020 23:15:55 +0200	[thread overview]
Message-ID: <87mu6vs450.fsf@gnu.org> (raw)
In-Reply-To: <87eesdz0v3.fsf@gmail.com> (Mathieu Othacehe's message of "Fri, 24 Apr 2020 11:31:12 +0200")

Mathieu Othacehe <m.othacehe@gmail.com> 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: ‘closure-size’ 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-offload
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.drv...
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’s much less than 2h30.  Could it be that you timing building of
additional derivations?  Even with a cold cache, it shouldn’t make that
big a difference no?

Thanks,
Ludo’.

  reply	other threads:[~2020-04-28 21:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 18:59 Image generation Mathieu Othacehe
2020-04-21 19:16 ` Leo Famulari
2020-04-24  9:31   ` Mathieu Othacehe
2020-04-28 21:15     ` Ludovic Courtès [this message]
2020-04-24  9:27 ` Mathieu Othacehe
2020-04-28 21:01   ` Ludovic Courtès
2020-04-28 21:10 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mu6vs450.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=m.othacehe@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.