LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-03-2011, 01:24 PM   #1
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 160

Rep: Reputation: 16
Distcc not work on Gentoo


I have Gentoo on my desktop and on my server. I want to speed up the compillation on the desktop a bit by using distcc. As far as I know i have configured everything correctly, however it isn't working. It just compiles the program on the desktop. I have set FEATURES="distcc" and MAKEOPTS="-j6" on both the desktop and the server.

For information i post the configuration files of distccd, from both the server and the desktop.

** Desktop's hostname: daedalus **
** Server's hostname: morpheus **

Desktop's /etc/conf.d/distccd
Code:
# /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 7000"

# 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-file /var/log/distccd.log --log-level critical"

# SECURITY NOTICE:
# It is HIGHLY recomended 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.1.0/24"
#DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.2"

# set this for niceness
# Default is 15
DISTCCD_OPTS="${DISTCCD_OPTS} -N 15"
Desktop's /etc/distcc/hosts
Code:
localhost morpheus
Server's /etc/conf.d/distccd
Code:
# /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 7000"

# 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-file /var/log/distccd.log --log-level warning"

# SECURITY NOTICE:
# It is HIGHLY recomended 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.1.0/24"
#DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.1.101 --allow 192.168.1.104"
#DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.2"
#DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.1.101 --allow 192.168.110"

# set this for niceness
# Default is 15
DISTCCD_OPTS="${DISTCCD_OPTS} -N 15"
Server's /etc/conf.d/hosts
Code:
localhost daedalus

I have no idea why it doesn't work. I hope you can help me.
 
Old 01-03-2011, 03:57 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,286

Rep: Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030
Have you got the daemon running on both ?.
 
Old 01-03-2011, 04:07 PM   #3
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 160

Original Poster
Rep: Reputation: 16
Yes offcourse I have the daemons running on both the desktop and the server.
 
Old 01-03-2011, 04:37 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Hi,
Quote:
#DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.2"
you'll have to enable the listen-option, the client listens to it's own IP-adress.

and check
Code:
nmap -p 3632 morpheus
if the port on the server is open. If you're using another port, you'll have to insert it in the nmap command.

Markus

Last edited by markush; 01-03-2011 at 05:17 PM.
 
Old 01-04-2011, 03:19 AM   #5
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 160

Original Poster
Rep: Reputation: 16
It seems to work now, although I had to change the CFLAGS on both machines. I replace -march=native to -march=pentium4 -mtune=pentium4

I can't clearly see if the compiling goes any faster. I will try this later on the day by compiling the same program twice.
 
Old 01-04-2011, 03:19 AM   #6
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 160

Original Poster
Rep: Reputation: 16
It seems to work now, although I had to change the CFLAGS on both machines. I replace -march=native to -march=pentium4 -mtune=pentium4

I can't clearly see if the compiling goes any faster, I will try this later on the day by compiling the same program twice.


Sorry, I made a mistake, by posting twice.

Last edited by konqi; 01-04-2011 at 03:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
distcc apenguinlinux Debian 1 12-18-2005 02:01 PM
distcc linuxhippy Slackware 4 05-05-2005 07:15 AM
Gentoo, distcc, and CHOSTs. Matir Linux - Software 2 04-29-2005 11:01 AM
Got distcc to work! wapcaplet LinuxQuestions.org Member Success Stories 1 11-28-2003 09:02 AM
Using distcc...? kleptophobiac Linux - Software 0 09-30-2003 09:32 AM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration