unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Performance issues with /gnu/store in virtual machines
@ 2017-08-17 20:05 Christopher Baines
  2017-08-20  9:02 ` Ricardo Wurmus
  2017-08-22 10:11 ` Ludovic Courtès
  0 siblings, 2 replies; 8+ messages in thread
From: Christopher Baines @ 2017-08-17 20:05 UTC (permalink / raw)
  To: help-guix

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-22 14:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2017-08-22 12:51   ` 宋文武
2017-08-22 14:33     ` Ludovic Courtès

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).