Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to deal with distcc task time limit?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 518
Location: San Diego, California USA

PostPosted: Fri Feb 14, 2025 12:20 am    Post subject: How to deal with distcc task time limit? Reply with quote

Been compiling KDE and the Plasma workspace for my RPi 5. There are a couple glitches, but mostly it's working. I find it pretty awesome given the complexity of the environment.

I have 2 RPi 5's and a RPi 4 so I've used distcc to help with compiling which mostly works. But there are a couple packages that contain complex C++ files to compile. I've noticed there seems to be a limit of 5 minutes that each distcc compile task can take. If the compile operation doesn't complete in 5 minutes the job is killed and re-distributed to another node. The problem is that some single compile operations in some packages takes more than five minutes to complete on a RPi 5. I'm forced to turn off the portage distcc feature to compile those packages or the build will never complete.

With distcc turned off the build completes. I've seen one compile operation take as much as 12 minutes for one file! I've Googled but haven't seen anything about this apparent task time limit. Before I start searching through source code, does anyone know anything about how to change this limit to something higher?
Back to top
View user's profile Send private message
sublogic
Guru
Guru


Joined: 21 Mar 2022
Posts: 312
Location: Pennsylvania, USA

PostPosted: Fri Feb 14, 2025 1:00 am    Post subject: Reply with quote

from man distcc:
Quote:
TIMEOUTS
Both the distcc client and server impose timeouts on transfer of data
across the network. This is intended to detect hosts which are down or
unreachable, and to prevent compiles hanging indefinitely if a server is
disconnected while in use. If a client-side timeout expires, the job
will be re-run locally.

The transfer timeout is not configurable at present. The timeout that
detects stale distributed job is configurable via DISTCC_IO_TIMEOUT en‐
vironment variable.
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 518
Location: San Diego, California USA

PostPosted: Fri Feb 14, 2025 7:09 pm    Post subject: Reply with quote

Interesting. Doesn't quite seem like the same issue but this lever might end up having the same effect. Thanks for the idea.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
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