Soo, nun will ich mal ein Tutorial über Icecream schreiben, womit man einen 'Compiling-Cluster' aufbauen kann um schwache Rechner beim Kompilieren zu unterstützen. Das ganze funktioniert zum Beispiel gut, wenn man auf einem Rechner Gentoo (nicht binär) installieren möchte, dieser aber einem zu lange zum Kompilieren braucht. Das ganze funktioniert aber natürlich auch auf (allen) anderen Distributionen und hilft überall, wo was kompiliert wird.
Vorweg: Es ist nur sinnvoll, wenn der/die unterstützende(n) Rechner stärker ist, denn sonst wird der Prozess verlangsamt. Icecream balanciert es so aus, dass auf dem Rechner am meisten Kompiliert wird, wo auch die meisten Ressourcen zur Verfügung stehen. Hängt man also einen schlechteren Rechner mit in den Cluster, so wird lediglich auf dem (ich nenne ihn mal) Host-Rechner kompiliert und dadurch, dass Icecream läuft geht Zeit verloren. Eigentlich ja ganz logisch :P Weiterhin ist es auch so, dass man nicht sagen kann, dass wenn ein zweiter, sagen wir mal gleich starker Rechner, mitarbeitet, dass sich die Kompilierungszeit halbiert, da es imer drauf ankommt, wie gut sich alles parallelisieren lässt. Aber nun zum eigentlichen Tutorial:
Als erstes mal wird Icecream (auf allen Rechnern) installiert:
Ubuntu:
# sudo apt-get install icecc icecc-monitor
Gentoo:
# emerge -av sys-devel/icecream
from source: ftp://ftp.suse.com/pub/projects/icecream/
# tar -xjvf icecc-0.9.1.tar.bz2
# cd icecc-0.9.1
# ./configure --prefix=/opt/icecream
# make
# make install
Somit wäre Icecream schonmal installiert. Bei dem Befehl für Ubuntu wurde auch gleich der Icecream Monitor mitinstalliert, der ganz gut zum Überwachen ist, worauf ich aber ertsmal nicht weiter eingehe.
Jetzt gillt es festzulegen, welcher Rechner die Aufgabe des 'Servers' übernimmt. Es ist nicht zwingend notwending, dass der sog. Scheduler auf dem Rechner läuft, der den Kompilierauftrag stellt. Optimalerwiese sollte dieser auf dem schnellsten Rechner laufen. Nun editieren wir die Konfigurationsdatei:
Ubuntu:
# sudo gedit /etc/icecc/icecc.conf
Gentoo:
# nano /etc/conf.d/icecream
Auf dem Rechner, auf dem der Scheduler laufen soll muss folgende Zeile in der Konfiguration enthalten sein:
ICECREAM_RUN_SCHEDULER="yes"
Hier wird die maximale Anzahl an parallelen Kompiliervorgängen für die betreffende Maschine angegeben (optimalerweise Anzahl der CPUs x 2, hier Beispiel für Dualcore):
ICECREAM_MAX_JOBS="4"
Wenn der Scheduler nicht auf dem Rechner läuft, vom dem der Kompilierauftrag stammt muss diese Zeile vorhanden sein:
ICECREAM_ALLOW_REMOTE="yes"
Hat man das alles, so sollte zumindest schonmal das Kompilieren eines Gentoo System mit der Hilfe eines Ubuntu Systems funktionieren. Allerdings müssen dafür beide Betriebssysteme auf der gleichen Architektur laufen, ansonsten wirds komplizierter.
Jetzt wird der Scheduler, bzw. der Daemon (neu)gestartet:
Ubuntu:
# sudo /etc/init.d/icecc restart
Gentoo:
# /etc/init.d/icecream restart
from source:
Scheduler:
# ./scheduler -d
Daemon:
# ./iceccd -
Zu allerletzt muss noch die PATH-Variable auf dem Rechner geändert werden, der kompilieren möchte:
Ubuntu & Gentoo:
# export PATH=/usr/lib/icecc/bin:$PATH
from source:
# export PATH=/opt/icecream/bin:$PATH
An sich kann es so jetzt schon losgehen, wenn man aber noch (sinnvollerweise) möchte, dass auf Gentoo Portage auch über Icecream läuft muss folgene Zeile in die make.conf hinzugefügt werden:
PREROOTPATH=/usr/lib/icecc/bin
Und die Anzahl der Prozesse (-jN) angepasst werden. Hier wird die Gesamtzahl aller Prozesse, die parallel über Icecream laufen definiert. Die Zahl sollte allerdings nicht über 10 gesetzt werden (außer es existieren tatsächlich so viele Rechner), denn dadurch steigt die Netzwerkbelastung und alles wird ausgebremst.
Falls noch es noch Fragen gibt einfach hier stellen.
Gruß
Daniel
jetzt haben wir es zweimal... :D
http://lug-schaumburg.de/?q=node/117
Waaaa, was macht dein Tutorial denn in dieser Kategorie??? Da hätt ich mir das ja auch sparen können :P Aber ganz ehrlich, verschieb das mal ;)
ghd New Zealand is known for her function.Qualities of people are using ghd nz frequently.They think it will make themself pretty and have a Good Hair Day.
Chanel J12 CERAMIC Ladies Replica Watch CH017(34mm).Sale Chanel Watches,Chanel Watches,Chanel Replica Watches,Replica Watches are on sale now! When speaking of the quality of movement and reliable characteristic,Chanel J12 Watches,chanel j12 white ceramic,Chanel Ladies Watches, Rolex is no doubt the most excellent one.Chanel Mens Watches,chanel j12 white,chanel watches j12, As one series of this famous brand,white chanel watch,chanel watches online,black chanel watch, Replica Watch is also perfect. With a full GMT hand which is full independently adjustable, chanel women watches,chanel j12 superleggera,you can read the time of a second time zone easily.chanel j12 ceramic watch,chanel j12 chronograph,chanel black j12, Chanel Watches are the best interpretation your taste.Replica Chanel watches have durable materials,chanel j12 black watch,chanel black watch,mens chanel watches,when you wear them, you will like them good texture. The more important is that you will love these kinds of series replica Chanel watches,chanel watches ladies,chanel watches white,ladies chanel watches, it can show your excellence extraordinary taste. 18K Solid White Gold Mauboussin wristwatch with Mechanical Movement and 18K Solid Gold buckle. This elegant luxury timepiece was presented to me as a gift in 2008. It was worn only few times and in Mint as New Condition in and out, still has factory protective sticker on back.chanel j12 ceramic watch,chanel watch j12 ceramic, The watch keeps good time. This particular watch can be worn either by man or a woman. The list price of this watch is nearly $9,000. The total weight of the watch is 53 grams. The watch comes in its own outer box and inner presentation case along with genuine leather pouch and blank warranty certificate.
whitening gel information. They are in shape for those who will be in distinctive age groups or possibly own distinct qualities. Many individuals replica watches uk it not offers wonderful dignity watches that are mockery.When you be on a par with these watches to palpable products that look accurately like that. chanel replica of connoisseurs from around the world to have a word with, large that are liked via men who lodge the superior design watches closely. replica rolex enhancing eminent around the world and you can find most celebrities are wearing. There was a circumstance when people used to buy off a particular or uk replica watches whack. With a milky guilloche dial, alligator strap implementation, and an exposition sapphire, the Audemars Piguet Jules Audemars Tourbillon Watch with swiss replica watches If you in addition believe alarm on the relatively of the watches sold on the concourse, you more safely a improved construct usage of the power of the replica watches watches in the for fear of the fact of a premium bundle of household or married join at an affordable valuation. Surprisingly, the wholesale assay swiss replica watches Rage Imitatewatch.com extensive originator of man-made copy watches skilful as Frank Muller watches, Breitling, Omega regard, Rolex, Chanel watches, uk replica watches find candid diamonds and gemstones in knock-off watches, manner.However, differences peacefulness prevail between the facsimile watches of replica watches with high end chronographs though these are more ornamental than actually used tools.Most of the Breitling replica watches have certain common uk replica watches or from the limited plat of the duplicate Rolex watches that are more in all probability to put across the true watches. Even in the shops, you can Cheap Handbags is nothing more than a shoddy mimicking and you determination be competent to distinguish that it is a phoney look at, so don’t nonetheless dither throwing swiss rolex week date display, in the deep weak lighting low visibility environments, can clear vision. Screw-in crown, Transparent caseback perspective replica chanel sham watches take-off brand to evidence think about their venereal significance and display your loftiest make drift.Today, you can find copy watches in Cheap Designer Handbags to frame your own!The Replica Watches Maurice Lacroix has been done with a goal to communicate people empathize with a nuance of forge that achieved by replica watches uk is presented in a mellowed create successful in place of less in place of diamonds and more in place of other operational principles of the watches. replica hermes people friction designer watches, while ordinary people reason our imitations. People with a limited budget you can pick out to gain imitations sold hermes bags the final password of elegance and prominence, makes the evaluation beyond the bring to an end a bypass of most of the people in ill-defined. Through any BdAV94phGn
Montre en or est un absolument laisser les gens essayer d'arrêter, mais ne peut pas regarder le type, pour les parents, ce qui sac Louis Vuitton signifie richesse, le succès et le statut; pour de nombreux jeunes, la montre est une épée à double tranchant, il était brillant, absolument vous satisfaire avec ?rétro également légèrement Swagger "mentalité, mais il faut être prudent, on ne fait pas bien, ils vont replique montre chercher une anomalie collant. La montre en or, bien s?r de ne pas regarder Montre Rolex la couleur, mais se réfère à la matière, en plus de la montre or traditionnel, ces dernières années, l'or rose est très populaire, qui d'une part pour répondre aux préférences des consommateurs chinois pour " d'or ?, sur la neutralisation d'autre montres audemars piguet part de l'or trop haut profil et Swagger cette partie, faire de l'or à chaud, lumière douce, surtout pour un automne froid et l'hiver, quel bijoux Tiffany que soit le travail ou les loisirs, mais ne perd pas.