Re: Parallel downloads

2019-12-13 Thread Brett Gilio
Pierre Neidhardt writes: > Update: I've been using --max-jobs=2 by default for about 2 weeks now, > and it feels like a much smoother experience overall: faster downloads, faster > builds. > > This is obviously a very dumb "optimization" but at least it serves to > underline that Guix could still

Re: Parallel downloads

2019-11-17 Thread Ludovic Courtès
Hi Mark, Mark H Weaver skribis: > For these reasons, I'm inclined to think that parallel downloads is the > wrong approach. If a single download process is not making efficient > use of the available bandwidth, I'd be more inclined to look carefully > at why it's fai

Re: Parallel downloads

2019-11-17 Thread Ludovic Courtès
Hi, Leo Famulari skribis: > On Sat, Nov 09, 2019 at 06:40:56PM +0100, Ludovic Courtès wrote: >> Like I wrote, it’s not that simple (we’d first need the daemon to >> distinguish substitution jobs from other jobs, but note that there are >> also “downloads” that are actually derivation builds), an

Re: Parallel downloads

2019-11-13 Thread Leo Famulari
On Wed, Nov 13, 2019 at 11:16:53AM -0500, Mark H Weaver wrote: > For these reasons, I'm inclined to think that parallel downloads is the > wrong approach. If a single download process is not making efficient > use of the available bandwidth, I'd be more inclined to look care

Re: Parallel downloads

2019-11-13 Thread Mark H Weaver
load them sequentially. I'll also note that parallel downloads would increase the memory usage on the server. If users, on average, configured 4 parallel downloads, I guess that would have the effect of multiplying the server memory usage by about 4. It might also create an incentive for u

Re: Parallel downloads

2019-11-13 Thread zimoun
Hi Efraim, On Wed, 13 Nov 2019 at 08:44, Efraim Flashner wrote: > > guix build `guix show PKG | recsel -R dependencies` > > guix build PKG --no-substitutes > 'guix environment PKG -- guix build PKG --no-subsitutes' Thank you. It is a better solution, indeed! :-) All the best, simon

Re: Parallel downloads

2019-11-12 Thread Efraim Flashner
On Tue, Nov 12, 2019 at 05:48:16PM +0100, zimoun wrote: > Hi, > It is not related with parallel download but on old machines "guix > build --no-substitutes" can eat a lot of resources; for example if the > package has a lot of dependencies. I would like to be able to list > which dependencies I wan

Re: Parallel downloads

2019-11-12 Thread Leo Famulari
On Sat, Nov 09, 2019 at 06:40:56PM +0100, Ludovic Courtès wrote: > Like I wrote, it’s not that simple (we’d first need the daemon to > distinguish substitution jobs from other jobs, but note that there are > also “downloads” that are actually derivation builds), and it’s not > clear to me that it’s

Re: Parallel downloads

2019-11-12 Thread zimoun
Hi, It is not related with parallel download but on old machines "guix build --no-substitutes" can eat a lot of resources; for example if the package has a lot of dependencies. I would like to be able to list which dependencies I want to build and which I want to substitute. Maybe it is already pos

Re: Parallel downloads

2019-11-12 Thread John Soo
Hi everyone, I’ve been watching this from afar and one thing and while I have to agree with this: > .. I suspect there’s little to > be gained by having several connections in parallel. I do have to say that more fine grained concurrency would really help speed up builds without substitutes.

Re: Parallel downloads

2019-11-12 Thread Ludovic Courtès
Hello, Pierre Neidhardt skribis: > Ludovic Courtès writes: > >> it’s not supposed to be >> faster to download 10 things in parallel from ci.guix.gnu.org, than to >> download them sequentially. > > I was thinking a little bit ahead in the future, e.g. when we have more > build farms (if it ever

Re: Parallel downloads

2019-11-09 Thread Ludovic Courtès
Hi Pierre! Pierre Neidhardt skribis: > Ludovic Courtès writes: > >>> - Can we configure the default value? >> >> Yup, just pass ‘--max-jobs=N’ to the daemon. > > So I suppose you mean to use the `extra-options` field, e.g. > > (guix-service-type config => >(guix-configuratio

Re: Parallel downloads

2019-11-06 Thread Bengt Richter
On +2019-11-06 16:34:17 +0100, Ludovic Courtès wrote: > Hi, > > Pierre Neidhardt skribis: > > > A few questions: > > > > - How does --mac-jobs work with regard to progress bars? > > When there are several jobs running at the same time, it doesn’t display > any progress bar. (In theory, it coul

Re: Parallel downloads

2019-11-06 Thread Ludovic Courtès
Hi, Pierre Neidhardt skribis: > A few questions: > > - How does --mac-jobs work with regard to progress bars? When there are several jobs running at the same time, it doesn’t display any progress bar. (In theory, it could do a multi-line display but that wouldn’t work with all terminals, it’s

Re: Parallel downloads

2019-11-03 Thread Ludovic Courtès
Hi, Joshua Branson skribis: > Pierre Neidhardt writes: > >> Hi, >> >> Is there any plan to support parallel downloads? Currently downloads are a >> bottleneck for `guix install / upgrade`, parallel downloads could reduce >> the operation duration by an

Re: Parallel downloads

2019-11-03 Thread Ludovic Courtès
Hi Pierre, Pierre Neidhardt skribis: > I'm not sure I understand: if I run > > guix build -M 4 vlc > > download progress bars are updated one at a time. Or am I mistaken? With -M4 you could potentially have 4 substitutions (downloads) going on in parallel. Tobias is right: the daemon works in

Re: Parallel downloads

2019-11-01 Thread Joshua Branson
Pierre Neidhardt writes: > Hi, > > Is there any plan to support parallel downloads? Currently downloads are a > bottleneck for `guix install / upgrade`, parallel downloads could reduce > the operation duration by an order of magnitude. On a related note, would getting g

Re: Parallel downloads

2019-10-31 Thread zimoun
Hi Pierre, Maybe you would like an concurrent output in this spirit: https://joeyh.name/code/concurrent-output/ Right? However, I am not sure that parallel downloads drastically change the performance (bottleneck) because first often it is not linear and second it strongly depends on the

Re: Parallel downloads

2019-10-31 Thread Pierre Neidhardt
Hi Tobias, I'm not sure I understand: if I run --8<---cut here---start->8--- guix build -M 4 vlc --8<---cut here---end--->8--- download progress bars are updated one at a time. Or am I mistaken? Also is there a way to chan

Re: Parallel downloads

2019-10-31 Thread Tobias Geerinckx-Rice
Hullo Pierre! Pierre Neidhardt 写道: Is there any plan to support parallel downloads? Guix already downloads sources and substitutes in parallel with other builds/downloads through the --max-jobs option. You could add a separate knob for downloads that defaults to --max-jobs. Or even

Parallel downloads

2019-10-31 Thread Pierre Neidhardt
Hi, Is there any plan to support parallel downloads? Currently downloads are a bottleneck for `guix install / upgrade`, parallel downloads could reduce the operation duration by an order of magnitude. Thoughts? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP