unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>, help-guix@gnu.org
Subject: Re: Fast `guix environment --container' switch
Date: Wed, 09 Dec 2020 11:07:54 +0100	[thread overview]
Message-ID: <86r1nzi96t.fsf@gmail.com> (raw)
In-Reply-To: <87o8j35ncu.fsf@ambrevar.xyz>

Hi Pierre,

On Wed, 09 Dec 2020 at 10:40, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> `guix environment --container ... -- my-foo-program` is great but a bit
> slow to start.
>
> Is there a way to speed this up?

I get, cold cache:

--8<---------------cut here---------------start------------->8---
$ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
$ time guix environment --container --ad-hoc hello -- hello
Hello, world!

real    0m2.815s
user    0m1.852s
sys     0m0.238s

$ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
$ time guix environment --pure --ad-hoc hello -- hello
Hello, world!

real    0m2.656s
user    0m1.733s
sys     0m0.240s
--8<---------------cut here---------------end--------------->8---

and warm cache:

--8<---------------cut here---------------start------------->8---
$ time guix environment --container --ad-hoc hello -- hello
Hello, world!

real    0m1.399s
user    0m1.544s
sys     0m0.104s

$ time guix environment --pure --ad-hoc hello -- hello
Hello, world!

real    0m1.250s
user    0m1.492s
sys     0m0.094s
--8<---------------cut here---------------end--------------->8---


Do you have examples where the difference is significant?


All the best,
simon


  reply	other threads:[~2020-12-09 10:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09  9:40 Fast `guix environment --container' switch Pierre Neidhardt
2020-12-09 10:07 ` zimoun [this message]
2020-12-09 10:13   ` Pierre Neidhardt
2020-12-09 10:37     ` zimoun
2020-12-09 10:55       ` Pierre Neidhardt
2020-12-09 11:47         ` zimoun
2020-12-09 12:02           ` Pierre Neidhardt
2020-12-17 21:52 ` Ludovic Courtès
2020-12-29 21:47   ` Pierre Neidhardt
2021-01-05 22:50   ` Christopher Lemmer Webber
2021-01-26 10:31   ` Pierre Neidhardt

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=86r1nzi96t.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).