unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: zimoun <zimon.toutoune@gmail.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>,
	"Tobias Geerinckx-Rice" <me@tobias.gr>,
	guix-devel@gnu.org, "Maxime Devos" <maximedevos@telenet.be>,
	Csepp <raingloom@riseup.net>
Subject: Re: substitute derivation: also substitute grafts?
Date: Mon, 10 Oct 2022 19:50:21 +0200	[thread overview]
Message-ID: <87r0zfimzu.fsf@elephly.net> (raw)
In-Reply-To: <CAJ3okZ0Aq83Q+sMm4d2cDwnHRHN679V+b=4_mdKcGfjwqpJ2sw@mail.gmail.com>


zimoun <zimon.toutoune@gmail.com> writes:

> Hi Ludo,
>
> On Mon, 10 Oct 2022 at 17:32, Ludovic Courtès <ludo@gnu.org> wrote:
>
>> This has to be compared with the cost of a rebuild/redownload of the
>> same set of packages.  Even in the worst case, grafts are faster than
>> that.  Now, the difference is that those grafts need to be recomputed
>> regularly, where the rebuild/redownload would be relatively rare.
>
> I have not done some stats, indeed. :-)
>
> The build/download or rebuild/redownload is really faster (at least
> for some R packages) than the graft part for some machines with
> spinning disks.  Well, I have been enough annoyed for some packages on
> that machine to end by systematically run the '--no-grafts' option for
> all packages. :-/

I’m not worried about grafts as such; I only think it’s a pity to have
grafts recomputed on machines on the very same network.  When I have a
direct link from one machine to another it is very fast to just copy
things over instead of performing the graft locally.

This is not something that can be decided generally.  When substituting
from a remote server it’s probably the right thing to compute the graft
locally, but there are a number of cases where that’s not a good idea
(e.g. machines on the same network, underpowered aarch64 machines
downloading substitutes from a faster machine, etc).

-- 
Ricardo


  reply	other threads:[~2022-10-10 18:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-15 12:58 substitute derivation: also substitute grafts? Ricardo Wurmus
2022-09-15 14:46 ` Csepp
2022-09-15 15:06   ` Maxime Devos
2022-09-15 17:43     ` Csepp
2022-09-15 17:51       ` Maxime Devos
2022-09-19 16:26         ` Josselin Poiret
2022-09-19 16:57           ` Maxime Devos
2022-09-19 22:00     ` Ricardo Wurmus
2022-10-01 16:43       ` Ludovic Courtès
2022-10-01 17:29         ` Ricardo Wurmus
2022-10-01 18:00           ` Tobias Geerinckx-Rice
2022-10-01 18:27             ` Ricardo Wurmus
2022-10-05 10:03               ` Ludovic Courtès
2022-10-05 11:41                 ` zimoun
2022-10-07 22:21                   ` Mark H Weaver
2022-10-10 15:32                   ` Ludovic Courtès
2022-10-10 15:55                     ` zimoun
2022-10-10 17:50                       ` Ricardo Wurmus [this message]
2022-10-05 12:53                 ` Ricardo Wurmus

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=87r0zfimzu.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=maximedevos@telenet.be \
    --cc=me@tobias.gr \
    --cc=raingloom@riseup.net \
    --cc=zimon.toutoune@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).