Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Best way for building packages on faster PC [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
suroa
n00b
n00b


Joined: 03 Sep 2018
Posts: 2

PostPosted: Mon Sep 03, 2018 3:46 am    Post subject: Best way for building packages on faster PC [SOLVED] Reply with quote

Hey guys! I come here for help in regards to building packages for my relatively slow notebook on my faster desktop. And so far these are the ideas I've come up with and I'd like to know which is the best / fastest one and why.
A: Create a chroot on my desktop on which I have everything setup especifically for my notebook and create a binary portage repository on it from which my notebook will pull the packages.
B: Setup distcc on my notebook and desktop in order to build the packages.
C: The same as option A but adding distcc on my chroot and notebook.
Now the the one I'd like to do and seems to be the fastest one from my knowledge is option C. But I'm worried I might be actually bottlenecking build times by doing it comparing to option A.
Here's my setup:
Desktop:Ryzen 2400G,16GB of RAM 2400mhz
Notebook:i5-3230M, 8GB of RAM 1600mhz
They're both connected directly trough an ethernet cable.(The notebook is what I use to connect to the wifi since my desktop doesn't have a wifi card)
I'm also worried about bottlenecking since they're connected trough a 100mb/s only ethernet cable / network cards.Also I don't know if it's woth mentioning but my /var/tmp/portage and /tmp are both on tmpfs.


Last edited by suroa on Mon Sep 03, 2018 7:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Sep 03, 2018 4:49 am    Post subject: Reply with quote

the i5 is probably fine compared to older slow cpus like the intel atom, but i'd say you're probably fine with just distcc.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Mon Sep 03, 2018 8:54 am    Post subject: Reply with quote

suroa,

distcc will be slow with only a 100MBit network link.

Your AMD Ryzen and Intel i5 are not completely instruction set compatible. If you go with the chroot option, which will be the fastest, you will need to compromise on the instructions sets, since the Ryzen has to run the code in the chroot.
A few packages will need to be (re)built on the i5.

Not all packages can use distcc. e.g., gcc, rust, glibc? and a few others.
Using distcc means that your Ryzen will build i5 code, since it will never run on the Ryzen.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
suroa
n00b
n00b


Joined: 03 Sep 2018
Posts: 2

PostPosted: Mon Sep 03, 2018 7:13 pm    Post subject: Reply with quote

Thank you guys for the answers!
I'll use distcc then.If it turns out a 100mbit connection really does bottleneck it I'll just compile everything on the notebook.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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