* Why "update substitutes?"
@ 2024-10-25 20:50 Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-10-25 23:42 ` Attila Lendvai
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Felix Lechner via Development of GNU Guix and the GNU System distribution. @ 2024-10-25 20:50 UTC (permalink / raw)
To: guix-devel
Hi,
When updating, my equipment spends nearly as much time "updating
substitutes" as it does downloading substitutes.
The activity is probably exacerbated because I cross-publish substitutes
in my local network.
Would it be more efficient to check whether a particular substitute is
available in an individual query (like DNS) and stop querying for that
substitute after a server was found?
Kind regards
Felix
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-25 20:50 Why "update substitutes?" Felix Lechner via Development of GNU Guix and the GNU System distribution.
@ 2024-10-25 23:42 ` Attila Lendvai
2024-10-26 17:07 ` Tobias Geerinckx-Rice
2024-10-26 15:12 ` Ludovic Courtès
2024-10-26 16:54 ` Tobias Geerinckx-Rice
2 siblings, 1 reply; 11+ messages in thread
From: Attila Lendvai @ 2024-10-25 23:42 UTC (permalink / raw)
To: Felix Lechner; +Cc: guix-devel
> When updating, my equipment spends nearly as much time "updating
> substitutes" as it does downloading substitutes.
while we are at it, these messages never made sense to me:
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 50.0%
i still don't really know what's happening there, but maybe something like "fetching the registry" or "fetching metadata" would be more descriptive of it?
to me "the substitutes" means the binary artifacts.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“The only time my education was interrupted was when I was in school.”
— George Bernard Shaw (1856–1950)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-25 23:42 ` Attila Lendvai
@ 2024-10-26 17:07 ` Tobias Geerinckx-Rice
2024-10-28 10:18 ` Efraim Flashner
2024-11-01 16:53 ` Attila Lendvai
0 siblings, 2 replies; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2024-10-26 17:07 UTC (permalink / raw)
To: guix-devel, Attila Lendvai, Felix Lechner
Hi Attila,
On 25 October 2024 23:42:32 UTC, Attila Lendvai <attila@lendvai.name> wrote:
>i still don't really know what's happening there, but maybe something like "fetching the registry" or "fetching metadata" would be more descriptive of it?
Howsabout… ‘looking for suitable substitutes on <server>’ if we must change the string?
It describes what's happening, implies why it's happening, and avoids clichéd jargon. I wouldn't even know what ‘fetching the registry’ means.
>to me "the substitutes" means the binary artifacts.
Yes.
Kind regards,
T G-R
Sent on the go. Excuse or enjoy my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-26 17:07 ` Tobias Geerinckx-Rice
@ 2024-10-28 10:18 ` Efraim Flashner
2024-11-01 16:53 ` Attila Lendvai
1 sibling, 0 replies; 11+ messages in thread
From: Efraim Flashner @ 2024-10-28 10:18 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: guix-devel, Attila Lendvai, Felix Lechner
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]
On Sat, Oct 26, 2024 at 05:07:21PM +0000, Tobias Geerinckx-Rice wrote:
> Hi Attila,
>
> On 25 October 2024 23:42:32 UTC, Attila Lendvai <attila@lendvai.name> wrote:
> >i still don't really know what's happening there, but maybe something like "fetching the registry" or "fetching metadata" would be more descriptive of it?
>
> Howsabout… ‘looking for suitable substitutes on <server>’ if we must change the string?
>
> It describes what's happening, implies why it's happening, and avoids clichéd jargon. I wouldn't even know what ‘fetching the registry’ means.
>
> >to me "the substitutes" means the binary artifacts.
>
> Yes.
I think it comes from the assumption that if a substitute isn't
available then it's dependencies are (all) available. Thus we get stuck
in a recursion of looking further and further to try to find the base of
what is available and will allow us to build the derivation we're
actually looking for.
One option I've been mulling over would be to look for a substitute, and
if that failed to automatically look ALL the way back immediately. I
don't like it because I'm sure it's overkill and would probably add
strain on the substitute servers, but it would decrease the number of
times 'searching for substitutes' is printed.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-26 17:07 ` Tobias Geerinckx-Rice
2024-10-28 10:18 ` Efraim Flashner
@ 2024-11-01 16:53 ` Attila Lendvai
1 sibling, 0 replies; 11+ messages in thread
From: Attila Lendvai @ 2024-11-01 16:53 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: guix-devel, Felix Lechner
> Howsabout… ‘looking for suitable substitutes on <server>’ if we must change the string?
yep, that sounds better.
a bit long, but it has an entire line.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Each new generation born is in effect an invasion of civilization by little barbarians, who must be civilized before it is too late.”
— Thomas Sowell (1930–)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-25 20:50 Why "update substitutes?" Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-10-25 23:42 ` Attila Lendvai
@ 2024-10-26 15:12 ` Ludovic Courtès
2024-10-26 16:54 ` Suhail Singh
2024-10-26 16:54 ` Tobias Geerinckx-Rice
2 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2024-10-26 15:12 UTC (permalink / raw)
To: Felix Lechner via Development of GNU Guix and the GNU System distribution.
Cc: Felix Lechner
Hi,
Felix Lechner via "Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org> skribis:
> When updating, my equipment spends nearly as much time "updating
> substitutes" as it does downloading substitutes.
>
> The activity is probably exacerbated because I cross-publish substitutes
> in my local network.
>
> Would it be more efficient to check whether a particular substitute is
> available in an individual query (like DNS) and stop querying for that
> substitute after a server was found?
The “updating substitutes” bit corresponds to making pipelined GET
requests for narinfos¹ to figure out upfront what’s going to be
available as substitutes and what will have to be built.
There’s a cache at /var/guix/substitute/cache so Guix doesn’t send the
same request several times in a row.
I’m not sure there’s much to be optimized in this area, but perhaps we’d
find something by studying more closely pathological cases?
Thanks,
Ludo’.
¹ Like <https://ci.guix.gnu.org/fk39d3y3zyr6ajyzy8d6ghd0sj524cs5.narinfo>.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-26 15:12 ` Ludovic Courtès
@ 2024-10-26 16:54 ` Suhail Singh
2024-10-26 17:08 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 11+ messages in thread
From: Suhail Singh @ 2024-10-26 16:54 UTC (permalink / raw)
To: Ludovic Courtès
Cc: Felix Lechner via Development of GNU Guix and the GNU System distribution.,
Felix Lechner
Ludovic Courtès <ludo@gnu.org> writes:
> The “updating substitutes” bit corresponds to making pipelined GET
> requests for narinfos¹ to figure out upfront what’s going to be
> available as substitutes and what will have to be built.
"Fetching list of available substitutes" would be clearer, IMHO.
--
Suhail
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-26 16:54 ` Suhail Singh
@ 2024-10-26 17:08 ` Tobias Geerinckx-Rice
2024-10-26 17:23 ` Suhail Singh
0 siblings, 1 reply; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2024-10-26 17:08 UTC (permalink / raw)
To: guix-devel, Suhail Singh, Ludovic Courtès
Cc: Felix Lechner via Development of GNU Guix and the GNU System distribution.,
Felix Lechner
On 26 October 2024 16:54:04 UTC, Suhail Singh <suhailsingh247@gmail.com> wrote:
>"Fetching list of available substitutes" would be clearer, IMHO.
Less accurate though. We never care about or download a complete list of available substitutes.
Kind regards,
T G-R
Sent on the go. Excuse or enjoy my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-26 17:08 ` Tobias Geerinckx-Rice
@ 2024-10-26 17:23 ` Suhail Singh
2024-10-26 17:55 ` Tobias Geerinckx-Rice
0 siblings, 1 reply; 11+ messages in thread
From: Suhail Singh @ 2024-10-26 17:23 UTC (permalink / raw)
To: Tobias Geerinckx-Rice
Cc: guix-devel, Suhail Singh, Ludovic Courtès, Felix Lechner
Tobias Geerinckx-Rice <me@tobias.gr> writes:
>>"Fetching list of available substitutes" would be clearer, IMHO.
>
> Less accurate though. We never care about or download a complete list
> of available substitutes.
To be fair it didn't say "the list" nor "complete list". Regardless,
would "updating list of available substitutes" be better?
Surely we can do better than the cryptic "updating substitutes" which
never made sense to me prior to this discussion =/.
--
Suhail
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-26 17:23 ` Suhail Singh
@ 2024-10-26 17:55 ` Tobias Geerinckx-Rice
0 siblings, 0 replies; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2024-10-26 17:55 UTC (permalink / raw)
To: Suhail Singh; +Cc: guix-devel, Ludovic Courtès, Felix Lechner
On 26 October 2024 17:23:37 UTC, Suhail Singh <suhailsingh247@gmail.com> wrote:
>To be fair it didn't say "the list"
Very fair, sorry. I wasn't even aware than my brain added the ‘the’ there.
>would "updating list of available substitutes" be better?
Well, I prefer my suggestion, but then I would, wouldn't I? ;-) You go looking for things. Somebody saying that they are going looking for a list of things is how you know they are secretly a robot.
Still, I think both are better than ‘updating [implied words that do make sense but you need to know them] substitutes’.
Kind regards,
T G-R
Sent on the go. Excuse or enjoy my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Why "update substitutes?"
2024-10-25 20:50 Why "update substitutes?" Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-10-25 23:42 ` Attila Lendvai
2024-10-26 15:12 ` Ludovic Courtès
@ 2024-10-26 16:54 ` Tobias Geerinckx-Rice
2 siblings, 0 replies; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2024-10-26 16:54 UTC (permalink / raw)
To: Felix Lechner,
Felix Lechner via Development of GNU Guix and the GNU System distribution.,
guix-devel
Hi Felix,
On 25 October 2024 20:50:46 UTC, "Felix Lechner via Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org> wrote:
>Would it be more efficient to check whether a particular substitute is
>available in an individual query (like DNS) and stop querying for that
>substitute after a server was found?
Doesn't this describe what Guix already does? If not, how?
I don't understand the 'like DNS' part, though, so maybe that's where it differs. Do you mean substitute a different protocol for HTTP?
We already use a single TCP connection per server for all narinfo queries, and nars found on one server aren't queried again.
Kind regards,
T G-R
Sent on the go. Excuse or enjoy my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-11-01 18:41 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25 20:50 Why "update substitutes?" Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-10-25 23:42 ` Attila Lendvai
2024-10-26 17:07 ` Tobias Geerinckx-Rice
2024-10-28 10:18 ` Efraim Flashner
2024-11-01 16:53 ` Attila Lendvai
2024-10-26 15:12 ` Ludovic Courtès
2024-10-26 16:54 ` Suhail Singh
2024-10-26 17:08 ` Tobias Geerinckx-Rice
2024-10-26 17:23 ` Suhail Singh
2024-10-26 17:55 ` Tobias Geerinckx-Rice
2024-10-26 16:54 ` Tobias Geerinckx-Rice
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.