all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Simen Endsjø" <contact@simendsjo.me>
To: "Edouard Klein" <edou@rdklein.fr>
Cc: "Hilton Chain" <hako@ultrarare.space>, help-guix@gnu.org
Subject: Re: Avoid sending sources to offload servers
Date: Thu, 07 Nov 2024 12:08:17 +0100	[thread overview]
Message-ID: <b62b7715-daa6-42da-a9bd-090545d8765e@app.fastmail.com> (raw)
In-Reply-To: <87o72rl32g.fsf@rdklein.fr>

Yes, but it is very cumbersome. I can no longer just "reconfigure" my home or system, but have to manually to a build for all packages with the correct parameters first.
Same for guix shell; I'd have to first split them into "with offload" and "without offload".

I guess what I would like is at least that the sources for the builds to be downloaded by the build server instead of transferred by my system. But this might be a side effect of sources being built as store items? So it's a dependency for the build, and passed to the build server so it doesn't have to compute it? Maybe having a size limit for passing to the build server could be a solution. If an item is greater than the threshold, the build server will compute it.

On Thu, Nov 7, 2024, at 12:00, Edouard Klein wrote:
> I may be mistaken, but you I think you can run guix build a with
> offloading, and guix build b c without, then when you run guix shell, a,
> b, and c will all be in your store and won't need to be rebuilt.
> 
> 
> Simen Endsjø <contact@simendsjo.me> writes:
> 
> > Yes, that's what I'm using, but it's not granular. The problem is things like `guix shell a b c`.
> > - a has a small source and long build time
> > - b has a large source and short build time
> > - c has a large output
> >
> > a is no problem to offload, but b will cause a lot of unnecessary traffic, and I might want to run c locally to to avoid passing a lot of data.
> >
> > I cannot tell --no-offload skip b and c, so If I have a single problematic package in my system, home or in a guix shell, I have to disable offloading for all packages.
> >
> > On Thu, Nov 7, 2024, at 10:14, Hilton Chain wrote:
> >> Hi Simen,
> >>
> >> On Thu, 07 Nov 2024 16:57:26 +0800,
> >> Simen Endsjø wrote:
> >> >
> >> > I notice package sources are sent to offload servers. I have a build that has
> >> > 1.9GB sources, and results in a 4.7GB store item. I would have thought only the
> >> > definitions were sent to the build machine, and it would download the 1.9GB
> >> > file, but it seems this file is sent from my machine. I cannot see a way around
> >> > this, and it makes it difficult to combine this package with packages I wish to
> >> > offload as I cannot state certain packages shouldn't be offloaded.
> >> >
> >> > Not sure what I'm asking here, just wanted to point out an issue which causes
> >> > problems.
> >>
> >> Guix commands that can spawn builds have a ‘--no-offload’ option, you can see
> >> more these options here[1].
> >>
> >>
> >> Thanks
> >> ---
> >> [1]: https://guix.gnu.org/manual/devel/en/html_node/Common-Build-Options.html
> >>
> 

  reply	other threads:[~2024-11-07 11:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-07  8:57 Avoid sending sources to offload servers Simen Endsjø
2024-11-07  9:14 ` Hilton Chain
2024-11-07 10:07   ` Simen Endsjø
2024-11-07 11:00     ` Edouard Klein
2024-11-07 11:08       ` Simen Endsjø [this message]
2024-11-08 20:55         ` Tomas Volf
2024-11-08 21:08           ` Simen Endsjø

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=b62b7715-daa6-42da-a9bd-090545d8765e@app.fastmail.com \
    --to=contact@simendsjo.me \
    --cc=edou@rdklein.fr \
    --cc=hako@ultrarare.space \
    --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.