Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Ultrapeer" for Gentoo?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Soul-Crusher
n00b
n00b


Joined: 08 Sep 2002
Posts: 50
Location: Silicon Valley

PostPosted: Fri Sep 27, 2002 7:26 am    Post subject: "Ultrapeer" for Gentoo? Reply with quote

When using a Gnutella client, particularly LimeWire, I'm presented with the option of using my ultra high-speed connection to help send files to slower people. I think something like this would be a good idea for Gentoo to help take some of the load off their mirrors, like if there was some sort of deamon which used FTP to transfer files that are temporarily stored on a user's computer from previous installs. So for example, if I recently built KDE, then this deamon would send information to some database that would store my IP and use it just like any currently existing Gentoo mirrors for someone else who wants to build KDE.

Just an idea to toy with. I know bandwidth isn't free, maybe Gentoo can use some p2p technology to it's advantage.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Sep 27, 2002 7:36 am    Post subject: Reply with quote

Not a support request, moving from OTG to Gentoo Chat where hopefully people can help flesh this idea out.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Soul-Crusher
n00b
n00b


Joined: 08 Sep 2002
Posts: 50
Location: Silicon Valley

PostPosted: Fri Sep 27, 2002 7:59 am    Post subject: Reply with quote

D'oh! Sorry!
Back to top
View user's profile Send private message
Pitr
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jun 2002
Posts: 90

PostPosted: Fri Sep 27, 2002 8:09 am    Post subject: Reply with quote

Are you talking about distributing ebuilds, precompiled packages or both... either way I like it.
Back to top
View user's profile Send private message
Soul-Crusher
n00b
n00b


Joined: 08 Sep 2002
Posts: 50
Location: Silicon Valley

PostPosted: Fri Sep 27, 2002 9:04 pm    Post subject: Reply with quote

Both, I guess. Sorry my idea isn't very well developed, I'm kind of a newbie to Gentoo.

I noticed there are a bunch of files in my /var/tmp/portage directory, roughly 120MB in my case. I figure that it's an awful waste for me to just wipe them off my harddrive.

I haven't the foggiest where the source packages go, those are what I had in mind. Users should have the option to share source pakages among peers (Provided the source file remains somewhere at least for a little while) rather than having everyone download from one of the official mirrors.

I suppose that could cause security problems as well.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20485

PostPosted: Fri Sep 27, 2002 9:40 pm    Post subject: Reply with quote

Source ends up in /usr/portage/distfiles. If you emerge using the -b option, the binary packages end up in /usr/portage/packages.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Soul-Crusher
n00b
n00b


Joined: 08 Sep 2002
Posts: 50
Location: Silicon Valley

PostPosted: Sat Sep 28, 2002 3:50 am    Post subject: Reply with quote

Neat! I have about 820MB of source packages 8O that I wouldn't mind sharing with other people in efforts to alleviate stress on the official Gentoo mirrors if only I knew how. I would imagine these are fairly common packages too--Things like KDE + QT, XFree86, Gnome, kernel source, Mozilla, a couple versions of GCC, etc.
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Sat Sep 28, 2002 5:15 pm    Post subject: Reply with quote

If you have a reeeally fast connection, you can probably become a Gentoo mirror. But short of that - I think it would be interesting if the portage tree and distfiles were distributed in a p2p fashion. The only problem is the necessary trust that must be put in whomever you get the packages and portage tree from. I don't know md5 signatures are an adequate level of security for this. There was another thread discussing more robust package signing mechanisms.

It might be cool if people could act as low-bandwidth or part-time mirrors. Maybe they have a good interenet connection but not so good that they could become a full-fledged mirror. Maybe they could get a small number of requests (i.e. less likely than normal to show up in the round-robin DNS), or only operate at certain times of the day, or only distribute certain packages.
_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Sep 28, 2002 6:16 pm    Post subject: Reply with quote

phong wrote:
The only problem is the necessary trust that must be put in whomever you get the packages and portage tree from. I don't know md5 signatures are an adequate level of security for this. There was another thread discussing more robust package signing mechanisms.

With the approach I was suggesting in here, mirrors need not be trusted at all, and this P2P system would be no less secure than downloading from a known source.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Tue May 06, 2003 7:08 pm    Post subject: Reply with quote

I have thought about the same idea and I have now seen that "Soul-Crusher" has already brought up this idea.

For overnet there does exist serveral catalogs on the net like sharereactor and the like. They contain a short description of the "packages" (mostly illegal) with a hash to identify the file on the p2p-net.
So, maybe one could put a sort of hash in every ebuild to identify the files one could donwload on the official-gentoo-p2p-net.

Emerge could than try to download first the file on the p2p-net and if the download is to slow, or the file is not already on the p2p-net it downloads the source the old-fashioned way from a known-source with the ftp-protocol.

Maybe one could adapt an opensource p2p system like gnutella for this purpose and create an official gentoo p2p network.

So people could not only help the opensource-idea by donating, posting in the forum, ... but also by giving a small amount of their bandwith to the community.

I hope some people with the necessary skills in the programming area will take up this idea and develop it.
I will be among the first people to test such a system :wink:
Back to top
View user's profile Send private message
yokem55
Guru
Guru


Joined: 18 Apr 2002
Posts: 360
Location: Oregon

PostPosted: Tue May 06, 2003 7:31 pm    Post subject: Reply with quote

Would the fact that bittorrent is written in python make it a good candidate for this type of p2p file distribution? They use some pretty strong hash key checking to make sure the file remains consistent.
Back to top
View user's profile Send private message
djco
Retired Dev
Retired Dev


Joined: 29 Mar 2003
Posts: 67
Location: 52.36, 4.89

PostPosted: Tue May 06, 2003 8:59 pm    Post subject: Reply with quote

yokem55 wrote:
Would the fact that bittorrent is written in python make it a good candidate for this type of p2p file distribution? They use some pretty strong hash key checking to make sure the file remains consistent.
I think BitTorrent was already discussed in the other thread talking about this kind of stuff.
Back to top
View user's profile Send private message
peepsalot
n00b
n00b


Joined: 05 Apr 2003
Posts: 52
Location: Texas

PostPosted: Tue May 06, 2003 10:50 pm    Post subject: Reply with quote

I got this idea afeter reading https://forums.gentoo.org/viewtopic.php?t=52348 (now locked), as I was going to suggest a free distributed emerge solution instead of a pay for compilation solution(as suggested in that post). Then, just before starting a new thread, I saw this thread, which my idea also seems to very relevant to... Here is the idea I have in my head:

I think a cooler thing to do would be to have a distributed Emerge@home client similar to seti@home, genome@home, etc.

Anyone that wanted to participate could contribute spare bandwidth and CPU cycles to the community. Then, whenever someone wants to emerge something, you send a request out to the network, and each computer in the network could separately download and compile part of the code. As soon as one part of the code is compiled, it is sent to the requester where all the seperate pieces are put together. I think that distcc is pretty close to this idea already, so maybe it wouldn't even be that hard to put it all together. It seems the only extra thing needed is to turn it into a world-wide community, by having a way to discover hosts that are part of Emerge@home, and to add your computer to the list of hosts. Although I must mention that I know very little about distcc: don't know exactly how it works, so maybe it ain't that simple.

One other problem that might be difficult to overcome would be: in order to compile even one small part of a package, each participating computer would need to download the entire tarball for that package. That would be very wasteful, and probably even impractical for modem users. Here is one solution: each host in the network would only respond to a request to compile a package if it already had that package on it's hard drive. Also, hosts could specify an amount of disk space that they are willing to contribute to the network. So, when a host gets a request to compile a package that is not already installed on their computer and if their specified amount of shared disk space is not already used, they would download the source. They would then also be able reply to all subsequent request for that package, and keep that package in their shared space until it is deemed obsolete.

Gentoo users helping other gentoo users emerge things at blazing speed. Now that would be cool! Kinda seems to fit with the whole Gentoo sense of community too.
_________________
Call me butter, 'cause I'm on a roll!
Back to top
View user's profile Send private message
Naughtyus
Guru
Guru


Joined: 14 Jul 2002
Posts: 463
Location: Vancouver, BC

PostPosted: Wed May 07, 2003 12:15 am    Post subject: Reply with quote

Another way of doing the above (emerge@home style) would be for packages to automatically build with '-b', and keep a record of the compiler options used, so if someone requests 'Openoffice for Athlon-xp -03 .. etc.', anyone who has already compiled with those options will have the binaries on their computer.
Back to top
View user's profile Send private message
tsawyer
n00b
n00b


Joined: 06 Jun 2002
Posts: 22

PostPosted: Mon Jun 02, 2003 6:43 pm    Post subject: A solution for game cd's and other .iso's Reply with quote

As Gentoo becomes more popular, especially with the introduction Gentoo Games, I would guess that serving ISO’s generates much of the load on the mirrors. Seems to me that if the Gentoo community would adopt an open p2p solution, such as Gnutella, we could make the ISO’s more readily available. This would hopefully reduce load on the mirrors for rsync purposes. Gnutella has the additional benefit of being widely used by Windorks who are likely to download the game CD’s.

We could finally use p2p for legitimate purposes. :P

Thoughts? Ideas?
_________________
There are 10 types of people in this world, those who understand binary and those who do not.
Back to top
View user's profile Send private message
dweigert
Guru
Guru


Joined: 04 Oct 2002
Posts: 369
Location: Somerset, NJ USA

PostPosted: Mon Jun 02, 2003 6:59 pm    Post subject: Reply with quote

Hmmmm... I wonder if the new WASTE p2p thing would work well for this.....
Private nets, encrypted links, hmmmmm....


Dan
_________________
"Always remember to mount a scratch monkey..."
Back to top
View user's profile Send private message
TazG
Guru
Guru


Joined: 22 May 2004
Posts: 320
Location: Canada

PostPosted: Mon Feb 07, 2005 1:30 pm    Post subject: Reply with quote

Did this idea ever get anywhere?
I really like the emerge@home idea...
Back to top
View user's profile Send private message
Antimatter
Guru
Guru


Joined: 11 Aug 2003
Posts: 463

PostPosted: Mon Feb 07, 2005 3:19 pm    Post subject: Reply with quote

TazG wrote:
Did this idea ever get anywhere?
I really like the emerge@home idea...


the biggest problem is the cflags are so varrying esp *pointing to the wierd and extreme flags* but hopfully those are the exeception and most people has stuck w/ relativly sane flags such as -O2, -O3, -mach=blah -mcpu=blah, -pipe,. and few other fairly mild flags
Back to top
View user's profile Send private message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Mon Feb 07, 2005 6:52 pm    Post subject: Reply with quote

If you want to help us poor old folks with 56k modems (since 1998 :x , by the end of this week I should be free though :D ), you may want to try a Deltup mirror. Basically it is a service that creates something simular to a compressed diff file between package versions and sends this out to the user.

As far as I can tell there are already quite a few servers sending out these packages but only one creating them. Setting up another server to create them would be good because sometimes there are queues or problems with the server. You should probably contact the author for more details on this.

Links:
https://forums.gentoo.org/viewtopic.php?t=215262
http://linux01.gwdg.de/~nlissne/

EDIT: Only just realised the first post is two years old. :roll:
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::


Last edited by LucaSpiller on Tue Feb 08, 2005 9:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
electrofreak
l33t
l33t


Joined: 30 Jun 2004
Posts: 713
Location: Ohio, USA

PostPosted: Tue Feb 08, 2005 12:26 am    Post subject: Reply with quote

I like the sound of this, however... it would have to be p2p because many connections for residents don't have much upload bw. However, I do not believe wget can do any sort of p2p downloading. There would have to be a completely different system used, one that when it can find "peers" with the file will then turn to wget and download from the gentoo mirrors.

Now for security... We would know that the files will be correct once downloaded because of the md5 checking. No problem there.

However, I think the deamon would have to have some sort of option for allowed bandwitdh because uploading all the time at full speed would definately slow my connection way down.

We can't share binary packages because they are probably different for each person. We would only be able to use the /usr/portage/distfiles/ . This would lessen the load on gentoo's servers and the mirrors.
Back to top
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 804

PostPosted: Tue Feb 08, 2005 12:41 am    Post subject: Reply with quote

interesting. so would this be like B.T. or like emule?
Back to top
View user's profile Send private message
electrofreak
l33t
l33t


Joined: 30 Jun 2004
Posts: 713
Location: Ohio, USA

PostPosted: Tue Feb 08, 2005 4:00 am    Post subject: Reply with quote

truekaiser wrote:
interesting. so would this be like B.T. or like emule?


I'd say it would be based on B.T. since its faster and more avaliable than the eDonkey network. I say more avaliable because many times I have to wait forever for anything to download through emule.
Back to top
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 804

PostPosted: Tue Feb 08, 2005 6:25 am    Post subject: Reply with quote

yea that would be a great way to releive the stress on the mirrors for the larger files. you know open office(both source and bins of xaiman and normal), kde, gnome, and kernels.
Back to top
View user's profile Send private message
Lews_Therin
l33t
l33t


Joined: 03 Oct 2003
Posts: 657
Location: Banned

PostPosted: Tue Feb 08, 2005 6:32 am    Post subject: Re: A solution for game cd's and other .iso's Reply with quote

tsawyer wrote:
As Gentoo becomes more popular, especially with the introduction Gentoo Games, I would guess that serving ISO’s generates much of the load on the mirrors. Seems to me that if the Gentoo community would adopt an open p2p solution, such as Gnutella, we could make the ISO’s more readily available. This would hopefully reduce load on the mirrors for rsync purposes. Gnutella has the additional benefit of being widely used by Windorks who are likely to download the game CD’s.

We could finally use p2p for legitimate purposes. :P

Thoughts? Ideas?


There are already official torrents for the ISOs. When I used them last, I got a steady 300 kb/s
Back to top
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 804

PostPosted: Tue Feb 08, 2005 6:43 am    Post subject: Re: A solution for game cd's and other .iso's Reply with quote

Lews_Therin wrote:
tsawyer wrote:
As Gentoo becomes more popular, especially with the introduction Gentoo Games, I would guess that serving ISO’s generates much of the load on the mirrors. Seems to me that if the Gentoo community would adopt an open p2p solution, such as Gnutella, we could make the ISO’s more readily available. This would hopefully reduce load on the mirrors for rsync purposes. Gnutella has the additional benefit of being widely used by Windorks who are likely to download the game CD’s.

We could finally use p2p for legitimate purposes. :P

Thoughts? Ideas?


There are already official torrents for the ISOs. When I used them last, I got a steady 300 kb/s


he means for the larger packages in portage.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum