From owner-freebsd-ports@FreeBSD.ORG Fri Sep 9 04:01:01 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76CA6106566B for ; Fri, 9 Sep 2011 04:01:01 +0000 (UTC) (envelope-from schaecsn@gmx.net) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.freebsd.org (Postfix) with SMTP id DD2FC8FC08 for ; Fri, 9 Sep 2011 04:01:00 +0000 (UTC) Received: (qmail invoked by alias); 09 Sep 2011 04:00:59 -0000 Received: from adsl-71-134-240-128.dsl.pltn13.pacbell.net (EHLO keeper.homelinux.org) [71.134.240.128] by mail.gmx.net (mp037) with SMTP; 09 Sep 2011 06:00:59 +0200 X-Authenticated: #548211 X-Provags-ID: V01U2FsdGVkX18TNL0M1u0TLKOkF5k17F7+u7/GKPBUXQ48F9R5Z9 1tCJrw1rxGnL3/ Received: by keeper.homelinux.org (Postfix, from userid 1001) id 78BE01EE8F1; Thu, 8 Sep 2011 21:01:08 -0700 (PDT) From: Stefan Schaeckeler to: freebsd-ports@freebsd.org In-reply-to: <201109081326.11474.erichfreebsdlist@ovitrap.com> (message from Erich Dollansky on Thu, 8 Sep 2011 13:26:11 +0700) References: <20110908045328.C6E2E1EE8F1@keeper.homelinux.org> <201109081326.11474.erichfreebsdlist@ovitrap.com> Message-Id: <20110909040108.78BE01EE8F1@keeper.homelinux.org> Date: Thu, 8 Sep 2011 21:01:08 -0700 (PDT) X-Y-GMX-Trusted: 0 Subject: Re: The cost of a source based package system X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: schaecsn@gmx.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 04:01:01 -0000 Hi there, > On Thursday 08 September 2011 11:53:28 Stefan Schaeckeler wrote: > > Hi all, please don't take this posting too serious. I was just curious ... > > your are talking about a serious problem. Absolutely. Billions are spend on Green Computing and even PhD theses are written on it. > > Using source based ports is with almost 5 US cents 6.19 times (case 1 vs case 2a) or 1.73 times (case 1 vs case 2b) more expensive than using binary packages :) > > Yes, but: > > You are moving the cost from you to the the hosting companies. If > more people use packages, they will need more capacity to supply all > the different variants. A lot of variants are compile-time options, e.g. ./configure --enable-XXX. Looking at ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/, there is only one vlc binary, although vlc has a lot of variants. Independent of that, diskspace is cheap and there are only a few package mirrors. > Does anybody know what takes more capacity? The sources or the > binaries? I would believe that the sources would take more space and > bandwidth but the different variants of the binaries could be much > bigger at the end. Random check, binaries are 7 times slimmer 978427 bash-4.1.10.tbz // binary package 6598300 bash-4.1.tar.gz // source from ftp.gnu.org One could optimize ports a lot more for a) download speed and b) compile time: - downloading only a diff from the current version to the new, updated, version (that's virtually impossible for binary packages). That should save significant download time but might be difficult to implement as most software is only distributed as tar-balls. - no 'make clean' and reusing the object files of the current version for building the new, updated, version. That should save significant compilation time. Does that work as of today? So, in theory, ports could be made greener than packages :) > I remember some articles about the electricity bill Google gets every month. It is not that low. > > So, to paint a more complete picture, we must see both sides of the fence. ... and from your follow up email: > how did you manage to get an answer from Google that fast? > > http://www.google.com/hostednews/afp/article/ALeqM5gK2BT8m9EhMCL0gI-yqyut3UOz-A?docId=CNG.8da7524161341a630734bbb6cf9ce6e4.231 So, Google is going green. FreeBSD ports could try to do the same :) > To make matters worse, people like me do both. I upgrade via the packages and then compile while I am already able to work with the new ports. At least, if the packages worked. That's bad for the environment :P > At the end, we who want to go green have to stop using the Internet > and go back to postal services as it costs less energy. This contradicts your Google link: "Three days of streaming YouTube video requires as much energy as making, packaging and delivering a DVD". @ Eitan: > > The number of ports and binary packages varies slightly. I don't > > know why. This only introduces a small error. > > Likely due to "build dependencies" which are not needed when > installing via packages. Bingo! Stefan -- Scotty: Captain, we din' can reference it! Kirk: Analysis, Mr. Spock? Spock: Captain, it doesn't appear in the symbol table. Kirk: Then it's of external origin? Spock: Affirmative. Kirk: Mr. Sulu, go to pass two. Sulu: Aye aye, sir, going to pass two.