From: ludo@gnu.org (Ludovic Courtès)
To: Christopher Baines <mail@cbaines.net>
Cc: help-guix@gnu.org
Subject: Re: Performance issues with /gnu/store in virtual machines
Date: Tue, 22 Aug 2017 16:35:35 +0200 [thread overview]
Message-ID: <87r2w33c20.fsf@gnu.org> (raw)
In-Reply-To: <20170822122034.6879df0e@cbaines.net> (Christopher Baines's message of "Tue, 22 Aug 2017 12:20:34 +0100")
Christopher Baines <mail@cbaines.net> skribis:
> 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?
Oh you’re probably right. It might be that 9p over virtio is this slow.
We should look at what others are doing, I guess it’s a fairly common
use case.
Ludo’.
next prev parent reply other threads:[~2017-08-22 14:35 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
2017-08-22 14:35 ` Ludovic Courtès [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2w33c20.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=help-guix@gnu.org \
--cc=mail@cbaines.net \
/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.