View previous topic :: View next topic |
Author |
Message |
tazinblack Veteran
Joined: 23 Jan 2005 Posts: 1146 Location: Baden / Germany
|
Posted: Sat Nov 05, 2016 5:48 pm Post subject: distcc: failed to distribute [solved] |
|
|
Hallo zusammen,
ich hab hier ein kleines ATOM Board (amd64), welches ich gerne für Backupzwecke verwenden möchte.
Leider ist das Ding doch recht langsam.
Idee: distcc verwenden und auf meinem PC mit kompilieren.
Hier die Konfig auf dem PC:
Code: |
cat /etc/conf.d/distccd
# /etc/conf.d/distccd: config file for /etc/init.d/distccd
DISTCCD_OPTS=""
# this is the distccd executable
DISTCCD_EXEC="/usr/bin/distccd"
# this is where distccd will store its pid file
DISTCCD_PIDFILE="/var/run/distccd/distccd.pid"
# set this option to run distccd with extra parameters
# Default port is 3632. For most people the default is okay.
DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
# Logging
# You can change some logging options here:
# --log-file FILE
# --log-level LEVEL [critical,error,warning, notice, info, debug]
#
# Leaving --log-file blank will log to syslog
# example: --log-file /dev/null --log-level warning
# example: --log-level critical
DISTCCD_OPTS="${DISTCCD_OPTS} --log-level critical"
# SECURITY NOTICE:
# It is HIGHLY recommended that you use the --listen option
# for increased security. You can specify an IP to permit connections
# from or a CIDR mask
# --listen accepts only a single IP
# --allow is now mandatory as of distcc-2.18.
# example: --allow 192.168.0.0/24
# example: --allow 192.168.0.5 --allow 192.168.0.150
# example: --listen 192.168.0.2
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.22.0/24"
DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.22.2"
# set this for niceness
# Default is 15
DISTCCD_OPTS="${DISTCCD_OPTS} -N 15"
cat /etc/distcc/hosts
127.0.0.1,cpp,lzo
192.168.22.10,cpp,lzo
|
Auf dem ATOM:
Code: | cat /etc/conf.d/distccd
# /etc/conf.d/distccd: config file for /etc/init.d/distccd
DISTCCD_OPTS=""
# this is the distccd executable
DISTCCD_EXEC="/usr/bin/distccd"
# this is where distccd will store its pid file
DISTCCD_PIDFILE="/var/run/distccd/distccd.pid"
# set this option to run distccd with extra parameters
# Default port is 3632. For most people the default is okay.
DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
# Logging
# You can change some logging options here:
# --log-file FILE
# --log-level LEVEL [critical,error,warning, notice, info, debug]
#
# Leaving --log-file blank will log to syslog
# example: --log-file /dev/null --log-level warning
# example: --log-level critical
DISTCCD_OPTS="${DISTCCD_OPTS} --log-level critical"
# SECURITY NOTICE:
# It is HIGHLY recommended that you use the --listen option
# for increased security. You can specify an IP to permit connections
# from or a CIDR mask
# --listen accepts only a single IP
# --allow is now mandatory as of distcc-2.18.
# example: --allow 192.168.0.0/24
# example: --allow 192.168.0.5 --allow 192.168.0.150
# example: --listen 192.168.0.2
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.22.0/24"
DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.22.10"
# set this for niceness
# Default is 15
DISTCCD_OPTS="${DISTCCD_OPTS} -N 15"
cat /etc/distcc/hosts
192.168.22.2,cpp,lzo
127.0.0.1,cpp,lzo
in der make.conf:
MAKEOPTS="-j9" # distcc
FEATURES="distcc distcc-pump"
|
Sieht doch so schlecht gar nicht aus.
Aber irgendwie bekomme ich das nicht hin, dass er die Compilejobs auch auf den PC schiebt.
Ich verwende auf keiner Seite CFLAGS="-mach=native".
Kann mir da mal jemand etwas unter die Arme greifen?
Sonst compiliere ich mir hier den Rest des Wochenendes den Wolf. _________________ Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
Last edited by tazinblack on Fri Nov 25, 2016 8:05 am; edited 1 time in total |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Mon Nov 07, 2016 6:50 am Post subject: |
|
|
Hi,
ich habe distcc auch am laufen. Eigentlich ist die Konfiguration sehr einfach. Auf der Seite des "Helfers" (Servers) musst du nur in der Datei /etc/conf.d/distcc folgende Zeile bearbeiten:
Code: |
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.22.0/24"
|
Das "--listen" kannst du dir sparen. Dann den distcc-Dienst neu starten.
Auf der "Client-Seite" einfach mal folgendes eingeben:
Code: |
distcc-config --set-hosts "192.168.22.10 localhost"
|
Du kannst auch noch angeben wie viele gleichzeitige Jobs auf die Maschinen verteilt werden sollen, indem du nach der/dem IP/Hostname mit einem Slash und einer Zahl die Anzahl angibst. Z.B. 5 Jobs auf 192.168.22.10 und 4 Jobs auf localhost wäre dann folgendermaßen:
Code: |
distcc-config --set-hosts "192.168.22.10/5 localhost/4"
|
Dann sollte schon alles funktionieren.
MfG. Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
tazinblack Veteran
Joined: 23 Jan 2005 Posts: 1146 Location: Baden / Germany
|
Posted: Fri Nov 25, 2016 8:04 am Post subject: |
|
|
Habs hinbekommen.
Hab wohl gerade das eine Paket mit distcc gebaut, dass sich damit nicht bauen lässt!?!
Habe das ohne distcc gebaut und danach wieder umgeschaltet, jetzt läuft es bisher einwandfrei.
Sehr komisch _________________ Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes |
|
Back to top |
|
|
|
|
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
|
|