The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EasyApache and parallel build with make -jN

Discussion in 'Workarounds and Optimization' started by den_svart, Nov 17, 2009.

  1. den_svart

    den_svart Registered
    PartnerNOC

    Joined:
    Jul 30, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to make EasyApache run make like "make -j4" on systems with 4 CPU cores? It could really speedup rebuilds.
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    I generally setup "CONCURRENCY_LEVEL" variable in .bashrc which unlike .bash_profile is called upon all shell requests (including scripts).

    You can also do an 'alias make="make -j(#)"' in there as well ...

    I'm sure you could just set things at EasyApache directly, but setting the environment works just as well and still works for manual compiles too ;)
     
  3. den_svart

    den_svart Registered
    PartnerNOC

    Joined:
    Jul 30, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I wonder if number of CPUs in cPanel config used to figure out concurrency for make.
     
Loading...

Share This Page