Ubuntu 内核启动卡在“raid6: sse2x1 gen() 858 MB/s”

Ubuntu 内核启动卡在“raid6: sse2x1 gen() 858 MB/s”

有这个时间跳过期间内核启动

Jul 19 14:07:02 deetabokkusu kernel: [    2.874776] hub 1-1.4:1.0: USB hub found
Jul 19 14:07:02 deetabokkusu kernel: [    2.877993] hub 1-1.4:1.0: 4 ports detected
Jul 19 14:07:02 deetabokkusu kernel: [   94.080339] raid6: sse2x1   gen()   858 MB/s
Jul 19 14:07:02 deetabokkusu kernel: [   94.128306] raid6: sse2x1   xor()  2371 MB/s
Jul 19 14:07:02 deetabokkusu kernel: [   94.176324] raid6: sse2x2   gen()  1730 MB/s
Jul 19 14:07:02 deetabokkusu kernel: [   94.224328] raid6: sse2x2   xor()  2816 MB/s
Jul 19 14:07:02 deetabokkusu kernel: [   94.272285] raid6: sse2x4   gen()  2430 MB/s
Jul 19 14:07:02 deetabokkusu kernel: [   94.320302] raid6: sse2x4   xor()  2333 MB/s
Jul 19 14:07:02 deetabokkusu kernel: [   94.323121] raid6: using algorithm sse2x4 gen() 2430 MB/s
Jul 19 14:07:02 deetabokkusu kernel: [   94.325949] raid6: .... xor() 2333 MB/s, rmw enabled
Jul 19 14:07:02 deetabokkusu kernel: [   94.328762] raid6: using ssse3x2 recovery algorithm
Jul 19 14:07:02 deetabokkusu kernel: [   94.335698] xor: measuring software checksum speed
Jul 19 14:07:02 deetabokkusu kernel: [   94.376549]    prefetch64-sse:  7668.000 MB/sec
Jul 19 14:07:02 deetabokkusu kernel: [   94.416564]    generic_sse:  6661.000 MB/sec
Jul 19 14:07:02 deetabokkusu kernel: [   94.419385] xor: using function: prefetch64-sse (7668.000 MB/sec)
Jul 19 14:07:02 deetabokkusu kernel: [   94.426733] async_tx: api initialized (async)
Jul 19 14:07:02 deetabokkusu kernel: [   94.555496] Btrfs loaded, crc32c=crc32c-intel

我是不是在系统上运行 RAID。我需要做哪些更改才能使内核启动得更快?

答案1

你使用 吗btrfs?如果是,那么可能无法加快启动速度,因为它对代码btrfs有很强的依赖性raid6_pq,如输出所示modinfo

~$ sudo modinfo btrfs
filename:       /lib/modules/4.9.0-9-amd64/kernel/fs/btrfs/btrfs.ko
softdep:        pre: crypto-crc32c
license:        GPL
alias:          devname:btrfs-control
alias:          char-major-10-234
alias:          fs-btrfs
depends:        raid6_pq,xor
retpoline:      Y
intree:         Y
vermagic:       4.9.0-9-amd64 SMP mod_unload modversions

如果您不使用,btrfs那么您可以简单地将模块列入黑名单,这样它就不会在启动时加载。为此,只需btrfs.conf/etc/modprobe.d(路径可能因您的 Linux 发行版而异,此路径存在于 Debian)中创建一个文件,其中包含以下内容:

blacklist btrfs

相关内容