unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 49174@debbugs.gnu.org
Subject: bug#49174: Poor 'guix substitute' performance when receiving Zstd-compressed substitutes
Date: Wed, 23 Jun 2021 15:26:43 +0200	[thread overview]
Message-ID: <87eecsyang.fsf@gnu.org> (raw)
In-Reply-To: <87fsx93f99.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 22 Jun 2021 14:50:42 -0400")

Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> It's something I've been observing for a while, but substitutes are very
> IO intensive (as can be seen in iotop, the substitute process is waiting
> on IO > 99% of the time) and is much slower than expected (3 minutes to
> transfer 100 MiB uncompressed over a 50 mbps downstream link):
>
> TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND
> 13934 be/4 root     1033.09 K/s 1485.06 K/s  0.00 % 93.36 % guile \ /gnu/store/vphx2839xv0qj9xwcwrb95592lzrrnx7-guix-1.3.0-3.50dfbbf/bin/guix substitute --substitute
>
>
> The publisher (remote machine) is has its guix-daemon configured via:
>
>       (service guix-publish-service-type
>                (guix-publish-configuration
>                 (advertise? #t)
>                 (compression '(("zstd" 3)))
>                 (host "0.0.0.0")))	;listen on all interfaces

Note that in this case nars are built and compressed on the fly on the
server side, which puts an upper bound on the bandwidth you can achieve.

I showed earlier how I profiled these things:

  https://guix.gnu.org/en/blog/2021/getting-bytes-to-disk-more-quickly/

If the client is I/O-bound, that’s good: it means we can’t do any better
(unless we skip unpacking as demonstrated by distri).

If you can provide detailed profiles of either the server side or the
client side (but in that case, make sure the server is caching things),
that’d be great!

Otherwise I’m afraid this is not actionable.  :-)

Thanks,
Ludo’.




  reply	other threads:[~2021-06-23 13:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22 18:50 bug#49174: Poor 'guix substitute' performance when receiving Zstd-compressed substitutes Maxim Cournoyer
2021-06-23 13:26 ` Ludovic Courtès [this message]
2022-10-07  1:11   ` Maxim Cournoyer

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=87eecsyang.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=49174@debbugs.gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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