Hi all,
A few months ago (see this) I upgraded my home PC from 9.2-STABLE + UFS to 10.0-STABLE + ZFS. Everything works fine, but I still have the "slow boot" problem, and I'm unable to find useful information on the net.
The "slow speed" is visible during the third stage of the boot process. The "\|/-" characters rotation is slightly slower than usual (with "usual", I mean every other FreeBSD version I've used in the past), but the real difference is visible during the kernel and modules loading process.
Loading the kernel and a few modules (like nvidia and zfs, 3 or 4 in total) took about 30 seconds.
After that, the speed seems to increment a bit, but the whole boot process took about 90 seconds. The first 60-70 seconds are barely sufficient to reach the
line, and during the kernel boot process I don't see any hangs or timeouts. The kernel keeps loading at a constant speed. Once the root filesystem is mounted, everything else (starting services) seems to work fine (and fast as expected).
I've done a test by installing a minimal system on a blank disk using a 10-RELEASE install CD:
The slowdown again is visible mainly in the kernel + modules loading phase. Using UFS, kernel and modules are loaded almost instantly.
As far as I know, the disk partition(s) are correctly aligned:
The problem seems to be related to the filesystem access (reading /boot/kernel/kernel from ZFS is ~10 times slower than from UFS).
Any idea?
A few months ago (see this) I upgraded my home PC from 9.2-STABLE + UFS to 10.0-STABLE + ZFS. Everything works fine, but I still have the "slow boot" problem, and I'm unable to find useful information on the net.
The "slow speed" is visible during the third stage of the boot process. The "\|/-" characters rotation is slightly slower than usual (with "usual", I mean every other FreeBSD version I've used in the past), but the real difference is visible during the kernel and modules loading process.
Loading the kernel and a few modules (like nvidia and zfs, 3 or 4 in total) took about 30 seconds.
After that, the speed seems to increment a bit, but the whole boot process took about 90 seconds. The first 60-70 seconds are barely sufficient to reach the
Code:
Trying to mount root from...
I've done a test by installing a minimal system on a blank disk using a 10-RELEASE install CD:
- using UFS, the system boots in less than 30 seconds
- using ZFS, the system boots in about 60 seconds
The slowdown again is visible mainly in the kernel + modules loading phase. Using UFS, kernel and modules are loaded almost instantly.
As far as I know, the disk partition(s) are correctly aligned:
Code:
=> 34 156301421 ada0 GPT (75G)
34 6 - free - (3.0K)
40 1024 1 freebsd-boot (512K)
1064 984 - free - (492K)
2048 156299264 2 freebsd-zfs (75G)
156301312 143 - free - (72K)
The problem seems to be related to the filesystem access (reading /boot/kernel/kernel from ZFS is ~10 times slower than from UFS).
Any idea?