all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: help-guix@gnu.org
Subject: Performance issues with /gnu/store in virtual machines
Date: Thu, 17 Aug 2017 21:05:47 +0100	[thread overview]
Message-ID: <20170817210547.3fafde57@cbaines.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 3414 bytes --]

Hey,

So I was trying out using VMs created through Guix for more things,
particularly as they can be run as part of derivations, e.g. the system
tests for Guix.

However, I'm seeing anything that does I/O performing very poorly
compared with the host system. See the system call profiles from strace
below, for the following command:

  strace -c find /gnu/store/*-guile* -name guile | wc -l

Is anyone else having difficulties with this, or have any experience
with performance tuning for the software in use here?

Thanks,

Chris



On the host system, I see the following performance:

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 76.23    0.001286           0     31978           fcntl
 10.20    0.000172           0      6974           getdents
  7.53    0.000127           0     18673           newfstatat
  3.32    0.000056           0     14208           close
  1.60    0.000027           0      3872           fstat
  1.13    0.000019           0      3853           openat
  0.00    0.000000           0        20           read
  0.00    0.000000           0         4           write
  0.00    0.000000           0        69        50 open
  0.00    0.000000           0         6         6 stat
  0.00    0.000000           0        21           mmap
  0.00    0.000000           0         8           mprotect
  0.00    0.000000           0        33           brk
  0.00    0.000000           0         2         1 ioctl
  0.00    0.000000           0         1         1 access
  0.00    0.000000           0         1           execve
  0.00    0.000000           0         1           uname
  0.00    0.000000           0         1           fchdir
  0.00    0.000000           0         1           arch_prctl
------ ----------- ----------- --------- --------- ----------------
100.00    0.001687                 79726        58 total

Within the VM, I see the following performance:

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 59.83    0.851601          46     18673           newfstatat
 13.56    0.193014          50      3853           openat
 10.88    0.154935          22      6974           getdents
  7.95    0.113196           8     14208           close
  4.00    0.056956          15      3872           fstat
  3.58    0.050908           2     31978           fcntl
  0.14    0.002051          66        31        12 open
  0.02    0.000232          12        20           read
  0.01    0.000199           7        30           brk
  0.01    0.000107          18         6         6 stat
  0.01    0.000076           4        21           mmap
  0.00    0.000045           6         8           mprotect
  0.00    0.000030           8         4           write
  0.00    0.000018          18         1         1 access
  0.00    0.000006           3         2         1 ioctl
  0.00    0.000004           4         1           execve
  0.00    0.000003           3         1           uname
  0.00    0.000003           3         1           fchdir
  0.00    0.000001           1         1           arch_prctl
------ ----------- ----------- --------- --------- ----------------
100.00    1.423385                 79685        20 total



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

             reply	other threads:[~2017-08-17 20:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-17 20:05 Christopher Baines [this message]
2017-08-20  9:02 ` Performance issues with /gnu/store in virtual machines 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
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=20170817210547.3fafde57@cbaines.net \
    --to=mail@cbaines.net \
    --cc=help-guix@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.
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.