From: Christopher Baines <mail@cbaines.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: Performance issues with /gnu/store in virtual machines
Date: Tue, 22 Aug 2017 12:20:34 +0100 [thread overview]
Message-ID: <20170822122034.6879df0e@cbaines.net> (raw)
In-Reply-To: <87shgj7vz4.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]
On Tue, 22 Aug 2017 12:11:43 +0200
ludo@gnu.org (Ludovic Courtès) wrote:
> Hi Chris,
>
> Christopher Baines <mail@cbaines.net> skribis:
>
> > 1.13 0.000019 0 3853 openat
>
> [...]
>
> > 13.56 0.193014 50 3853 openat
>
> So openat(2) is 4 orders of magnitude slower in the VM, which is a
> problem.
>
> I guess a large part of that is due to the fact that VM created with
> ‘guix system vm’ use unionfs as their root file system, which is a
> FUSE thing (see the “volatile” options in (gnu system vm), (gnu system
> linux-initrd), and (gnu build linux-boot).) I’m not sure how we could
> avoid it.
I'm unsure if the unionfs will be involved though, as find is searching
in the /gnu/store directory, which is shared with the host:
TAG_gnu_store on /gnu/store type 9p (ro,relatime,sync,dirsync,trans=virtio)
This might be misunderstanding how mounts work, but this could be
either layered on top, or below the unionfs, and I'm guessing its on
top, which in my mind would mean that the unionfs isn't involved?
> Can you confirm that the same ‘find’ command is faster in a full-blown
> “guix system disk-image” VM?
Yep, I see 8 usecs/call (compared to 50).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
next prev parent reply other threads:[~2017-08-22 11:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 20:05 Performance issues with /gnu/store in virtual machines Christopher Baines
2017-08-20 9:02 ` Ricardo Wurmus
2017-08-20 10:22 ` Christopher Baines
2017-08-22 10:11 ` Ludovic Courtès
2017-08-22 11:20 ` Christopher Baines [this message]
2017-08-22 14:35 ` Ludovic Courtès
2017-08-22 12:51 ` 宋文武
2017-08-22 14:33 ` 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
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=20170822122034.6879df0e@cbaines.net \
--to=mail@cbaines.net \
--cc=help-guix@gnu.org \
--cc=ludo@gnu.org \
/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).