I don't know how many times I've read that code, and every time I thought it was just returning a success code, and then just this evening I noticed that it calls dcc_parse_multiplier for the return value. So my concerns are unfounded. I hope I didn't confuse anyone.
Michael -----Original Message----- From: [EMAIL PROTECTED] on behalf of Donohue, Michael Sent: Fri 6/10/2005 9:05 AM To: [EMAIL PROTECTED]; distcc@lists.samba.org Subject: RE: [distcc] Little or no compilation at localhost I believe the code special-cases the text "localhost" Try "127.0.0.1" instead, to see if a higher slot count gives better results. The localhost parser sets the slots to 2, and it disregards the slots specified: static int dcc_parse_localhost(struct dcc_hostdef *hostdef, const char * token_start) { const char *token = token_start + strlen("localhost"); hostdef->mode = DCC_MODE_LOCAL; hostdef->hostname = strdup("localhost"); /* Run only two tasks on localhost by default. * * It might be nice to run more if there are more CPUs, but determining * the number of CPUs on Linux is a bit expensive since it requires * examining mtab and /proc/stat. Anyone lucky enough to have a >2 CPU * machine can specify a number in the host list. */ hostdef->n_slots = 2; return dcc_parse_multiplier(&token, hostdef); } -----Original Message----- From: [EMAIL PROTECTED] on behalf of Simon Mikkelsen Sent: Fri 6/10/2005 3:56 AM To: distcc@lists.samba.org Subject: RE: [distcc] Little or no compilation at localhost Martin Pool [mailto:[EMAIL PROTECTED] wrote: >> [EMAIL PROTECTED]:~/distcc> cat /usr/local/etc/distcc/hosts >> localhost 10.0.0.3/4 > > You'll probably want to set that to localhost/4 as well, since you > have four logical processors. In fact /6 or /8 might be better. > There is a TODO comment to make this automatic. I tried with /8 without any change to the result. > Simon, please post the verbose log and the answer should be easy. It is attached in the e-mail send to Martin Pool, to avoid posting a binary to the list (and the unziped file is almost 1 MB). -- Martin __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc