public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file
@ 2007-02-24 21:00 Beginner
  2007-02-24 21:07 ` Andrew Gaffney
  2007-02-25  1:55 ` Robin H. Johnson
  0 siblings, 2 replies; 5+ messages in thread
From: Beginner @ 2007-02-24 21:00 UTC (permalink / raw
  To: gentoo-portage-dev

Hi,

I recommend not to use wget and not to reconnect to the server for every 
single packet, but to hold the connection
therefore spare traffic and download more fast.

Beginner
-- 
gentoo-portage-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file
  2007-02-24 21:00 [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file Beginner
@ 2007-02-24 21:07 ` Andrew Gaffney
  2007-02-25  0:59   ` Beginner
  2007-02-25  1:55 ` Robin H. Johnson
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Gaffney @ 2007-02-24 21:07 UTC (permalink / raw
  To: gentoo-portage-dev

Beginner wrote:
> Hi,
> 
> I recommend not to use wget and not to reconnect to the server for every 
> single packet, but to hold the connection
> therefore spare traffic and download more fast.

Uhh, what exactly are you talking about? There is very little overhead to 
reconnecting to a server to download a second file. Also, how often are multiple 
files downloaded from the same server? Probably not very often. I've heard of 
people trying to rice their binaries, but ricing your downloads? :P

-- 
Andrew Gaffney                            http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer                                   Installer Project
-- 
gentoo-portage-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file
  2007-02-24 21:07 ` Andrew Gaffney
@ 2007-02-25  0:59   ` Beginner
  0 siblings, 0 replies; 5+ messages in thread
From: Beginner @ 2007-02-25  0:59 UTC (permalink / raw
  To: gentoo-portage-dev

Andrew Gaffney schrieb:
> Beginner wrote:
>> Hi,
>>
>> I recommend not to use wget and not to reconnect to the server for 
>> every single packet, but to hold the connection
>> therefore spare traffic and download more fast.
>
> Uhh, what exactly are you talking about? There is very little overhead 
> to reconnecting to a server to download a second file. Also, how often 
> are multiple files downloaded from the same server? Probably not very 
> often. I've heard of people trying to rice their binaries, but ricing 
> your downloads? :P
>
When I make a -uDa world emerge loads an lot of files from a ftp-mirror 
and at every file wget ist logging in as anonymous/chdir/set passive 
mode, i thinked that it is better to keep the ftpconnection and only 
send a retr for every file, i think emerge is coded in python so this 
can be handeld by the ftplib.
-- 
gentoo-portage-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file
  2007-02-24 21:00 [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file Beginner
  2007-02-24 21:07 ` Andrew Gaffney
@ 2007-02-25  1:55 ` Robin H. Johnson
  2007-02-25  2:02   ` Brian Harring
  1 sibling, 1 reply; 5+ messages in thread
From: Robin H. Johnson @ 2007-02-25  1:55 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

On Sat, Feb 24, 2007 at 10:00:29PM +0100, Beginner wrote:
> I recommend not to use wget and not to reconnect to the server for every 
> single packet, but to hold the connection
> therefore spare traffic and download more fast.
If you are doing lots of downloads, use 'emerge -pvf FOO' and feed each
line of that output to whatever you want to do your fetching.

On that, I haven't kept up with the code in recent years, is there a way
that portage itself can hand off those entire lines to a fetching
application, instead of putting them in one by one? (Telling the app
about the expected size and checksums would be handy too).

-- 
Robin Hugh Johnson
Gentoo Linux Developer
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 329 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file
  2007-02-25  1:55 ` Robin H. Johnson
@ 2007-02-25  2:02   ` Brian Harring
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Harring @ 2007-02-25  2:02 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]

On Sat, Feb 24, 2007 at 05:55:47PM -0800, Robin H. Johnson wrote:
> On Sat, Feb 24, 2007 at 10:00:29PM +0100, Beginner wrote:
> > I recommend not to use wget and not to reconnect to the server for every 
> > single packet, but to hold the connection
> > therefore spare traffic and download more fast.
> If you are doing lots of downloads, use 'emerge -pvf FOO' and feed each
> line of that output to whatever you want to do your fetching.
> 
> On that, I haven't kept up with the code in recent years, is there a way
> that portage itself can hand off those entire lines to a fetching
> application, instead of putting them in one by one? (Telling the app
> about the expected size and checksums would be handy too).

Current fetch implementation... not worth trying.  No abstraction 
built into it- would suggest if you're looking to try this, either rip 
off the old EBD/saviour fetch refactoring (ick), or rip what we've got 
in pkgcore now.

EBD version had ftplib/httplib direct usage; for pkgcore, dropped the 
builtin mainly... since I was too lazy to update it.

Either way, trying it with current fetch implementation in portage, 
would suggest either gutting from codebases mentioned above, or 
refactoring fetch such that FETCHCOMMAND/RESUMECOMMAND are 
encapsulated and the fetcher functor/obj is pulled from the passed in 
settings instance.

~harring

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-25  2:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-24 21:00 [gentoo-portage-dev] Improvement suggestion for emerge: Not using a new connection for every file Beginner
2007-02-24 21:07 ` Andrew Gaffney
2007-02-25  0:59   ` Beginner
2007-02-25  1:55 ` Robin H. Johnson
2007-02-25  2:02   ` Brian Harring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox