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_pqmodinfo

~$ 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

相關內容