View Single Post
  #6   (View Single Post)  
Old 15th September 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by scotsman View Post
I had thought of attempting my own linux distribution
Please don't.

how about a utility to build/upgrade ports similiar to portmaster but multi-process (or muti-threaded) so that ports can be build much faster on multi-core processors.

one option to speed up builds is to use make -j but that doesn't work with all the ports (or so i heard).

i thought of another approach:
let say we want to build port 'A'. 'A' will recursive depend on other ports. this gives a dependency tree rooted at 'A'.
Now scan all the leaf nodes and assign them to be build concurrently on the n cpus (leaf nodes don't have any dependencies). when a port build completes remove its node from the tree, then scan the tree for any new leaf nodes and assign it to an idle cpu. the process repeats until the root node 'A' is build.
thats the general idea, you could add other refinements.
or maybe you could come up with some other idea?

Last edited by ephemera; 15th September 2008 at 08:18 PM.
Reply With Quote