簡體   English   中英

CPU 卡住 Centos 7.2 on Azure

[英]CPU stuck Centos 7.2 on Azure

我在 Azure 上運行 CentOS 7.2 VM,並收到 CPU 卡住內核錯誤警告。 top顯示CPU#0已 100% 使用。

[admin@bench2 ~]$
Message from syslogd@bench2 at Feb  9 10:06:43 ...
kernel:BUG: soft lockup - CPU#0 stuck for 22s! [kworker/u128:1:13777]

這是最top的output:

Tasks: 258 total,   7 running, 251 sleeping,   0 stopped,   0 zombie
%Cpu0  :  0.0 us,100.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0  st
%Cpu1  :  0.3 us,  0.3 sy,  0.0 ni, 99.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu2  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu3  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 28813448 total, 26938144 free,   653860 used,  1221444 buff/cache
KiB Swap:        0 total,        0 free,        0 used. 27557900 avail Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
73 root      20   0       0      0      0 S   0.7  0.0   1:03.03 rcu_sched
1 root      20   0   43668   6204   3796 S   0.0  0.0   0:04.70 systemd
2 root      20   0       0      0      0 S   0.0  0.0   0:00.03 kthreadd
3 root      20   0       0      0      0 R   0.0  0.0   0:00.10 ksoftirqd/0
5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H

Centos + Kernel 版本:

CentOS Linux release 7.1.1503 (Core)
Linux bench2 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

如果注意到這個錯誤也出現在 CentOS 7.2 版本上。

[84176.089080] BUG: soft lockup - CPU#0 stuck for 23s! [kworker/u128:1:13777]
[84176.089080] Modules linked in: vfat fat isofs xfs libcrc32c iptable_filter ip_tables udf crc_itu_t hyperv_fb hyperv_keyboard hv_utils i2c_piix4 i2c_core serio_raw pcspkr crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd ext4 mbcache jbd2 sd_mod crc_t10dif crct10dif_common hv_netvsc hv_storvsc hid_hyperv sr_mod cdrom ata_generic pata_acpi ata_piix libata floppy hv_vmbus
[84176.089080] CPU: 0 PID: 13777 Comm: kworker/u128:1 Tainted: G        W   --------------   3.10.0-229.7.2.el7.x86_64 #1
[84176.089080] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090006  05/23/2012

如果這個版本在Azure上出問題,切換是沒有問題的。 如果是這種情況,我想知道哪個 CentOS 版本最適合在 Azure 環境中運行。

我通過將VHD上的Host caching設置為None解決了該問題。 奇怪的行為,但是可以。

在這里看到屏幕

我有同樣的問題,這是一個磁盤性能問題(高 IOPS/延遲等),與 CPU 或 RAM 無關(至少在我的情況下)。 存儲 (NetApp) 負載非常大,我通過移動到 SSD 來解決它,即使使用帶有 HDD 的大型 raid 組(沒有特殊負載)也無濟於事。

我們使用了 K8S 設置,但我在很多 CentOS 上看到它也有簡單的應用程序。

問候,

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM