看板 FreeBSD 關於我們 聯絡資訊
簡而言之就是 -jX 就是最多會同時執行幾個compiler程式, 會增加效能的前提是 您有多顆或多core的CPU可讓每個compiler個別使用不同的core執行. 若只有一個core, 那就沒什麼差別了, 頂多是等I/O的時間會少一點點... ※ 引述《operationcow (香蕉公車)》之銘言: : # make -j4 buildworld : make(1) will then have up to 4 processes running at any one time. : Empirical evidence posted to the mailing lists shows this generally : gives the best performance benefit. : 小弟看到這邊有兩個疑問 : (1) 為甚麼 compiling 這個動作是 io bound, 將一個語言編譯成另一個語 : 言應該需要大量的運算, 不是 cpu bound 嗎? : (2) 因為在文件後面編譯 kernel 時所下的指令是 make buildkernel : KERNCONF=MYKERNEL, 請問這邊可以改用 make -j4 buildkernel : KERNCONF=MYKERNEL 嗎?? 會因此而使得編譯時間變短嗎?? : 以上的問題爬文找不到解答 : 在這邊先感謝大家的回答 <(__)> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.200.156