Jay,
Can you modify your `buildx.sh` script so that the `make` commands in it are 
utilizing all processors in a machine?

I have successfully modified it so the `make` statements (I believe 2 lines) 
look like this:
     make -j 10

You can have a higher number but it takes the number of processors + 1, 
according to the make documentation you can really put any number in there as 
make will only utilize the number of processors that are actually in the 
machine.  I am now building X11rdp in about 30 minutes compared to 60 mins on a 
Virtual Machine sitting on an older Microsoft Hyper-V server which has disk IO 
problems.

If you wanted to dynamically set it, you could run a something like:

   arg_procs=$(expr $(cat /proc/cpuinfo | grep processor | wc -l) + 1)

   make -j $arg_procs

I am  not very good at shell scripting but the above works for me.  =)


Greatly appreciated,
-Stephen
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to