看板FreeBSD
标 题Re: [问题] 请问可以用 make -j4 来编译 kernel 吗??
发信站星情小筑 (Wed Oct 7 22:54:15 2009)
转信站ptt!news.ntu!news.au!zoonews.ee.ntu!Leo.mi.chu!SF
※ 引述《[email protected] (请加入HOT_Game板)》之铭言:
> 简而言之就是 -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.
现在不建议用 -j# 了,在 /usr/src/UPDATING 有以下这段:
COMMON ITEMS:
General Notes
-------------
Avoid using make -j when upgrading. From time to time in the
past there have been problems using -j with buildworld and/or
installworld. This is especially true when upgrading between
"distant" versions (eg one that cross a major release boundary
or several minor releases, or when several months have passed
on the -current branch).
--
☆Origin: 星情小筑 ( Star.leobbs.net )
★Author: JoeHorn
☆From: 123-204-156-248.static.seed.net.tw