|
发表于 2004-7-6 09:23:44
|
显示全部楼层
我给贴过来吧, 免得大家跑来跑去的 :p
Submitted by Landon C. Evans (Serberus)
May 14, 2001
Speeding up `make world`
Seeing that /usr/src is ~ 280 MB its safe to assume you need at least that much RAM as well to have a functional MFS.
Step 1.
After grabbing your new source via cvsup you can drop down into single user mode.
Step 2.
# fsck -p
# mount -u /
# mount -a -t -ufs
# swapon -a
Step 3.
# mount_mfs -s 614400 /dev/ad0s1b /usr/obj
This command is doing the following:
mount_mfs is the program to essentially mount a MFS to a path. The -s flag is is for the size of your MFS. I usually use this simple math equation to caculate my size: (amount of memory you want to use) * 1024*2 (614400 == 300mb). Then you want to specify what swap device you want to use, in my case its /dev/ad0s1b. Then set your mount point which will be /usr/obj.
Step 4.
# cd /usr/src
# time make world
Watch this baby fly now. To give you a idea how fast it really is, I have a PIII 733mhz with 512mb pc133 SDRAM with a 7200RPM UTA66 Seagate, and I would usually have make worlds run at least 1 hr 30 minutes. Now under a MFS, it runs at a flat 30 minutes. A MFS is also good for other things other than speeding up make world. You can setup a MFS for /tmp so things like X can access them quickly, and when you reboot, it's all gone so you have a clean /tmp directory.
AGAIN, use at your own risk.
Submitted By BSDVault member Serberus |
|