问题2现象:通过mpstat 查看cpu软锁中断值,发现逻辑cpu编号14和15号的soft值异常高,相对其他平均不到0.5%.idle值很低. 解决方法:开启irqbalence服务,重启主机后恢复正常.
指在irq_handle之后重新开启硬件irq的中断下半部实现,常见有
#17[ffff88407f263fb0]call_softirq at ffffffff81ac66ac---<IRQstack>---#18[ffff883f96bbb7d0]inet_csk_diag_dump at ffffffffa0174db9[inet_diag]#19[ffff883f96bbb820]inet_diag_dump_icsk at ffffffffa017580d[inet_diag]#20[ffff883f96bbb930]tcp_diag_dump at ffffffffa02110bc[tcp_diag]...
__do_softirq+0xc1/0x1e0 [<ffffffff810b049a>] ? tick_program_event+0x2a/0x30 [<ffffffff8100c38c>] ? call_softirq+0x1c/0x30 [<ffffffff8100fbd5>] ? do_softirq+0x65/0xa0 [<ffffffff8107d7b5>] ? irq_exit+0x85/0x90 [<ffffffff81533d5a>] ? smp_apic_timer_interrupt+0x4a/0x60...
--- <IRQ stack> --- #9 [ffff88000399b738] apic_timer_interrupt at ffffffff816b5c1d [exception RIP: smp_call_function_many+514] RIP: ffffffff810f99a2 RSP: ffff88000399b7e8RFLAGS: 00000202 RAX: 0000000000000003 RBX: 00000000000000fc RCX: ffff88043fd9adb8 ...
[103532.492560] BUG: soft lockup - CPU#11 stuck for 23s! [migration/11:322] [ 5078.174544] Non critical power or cooling issue cleared [103532.492578] Modules linked in: [103532.492581] pseries_energy fuse btrfs raid6_pq xor vfat msdos fat xfs libcrc32c bridge stp llc bonding uinput pserie...
unsignedlongtouch_ts =__this_cpu_read(watchdog_touch_ts);structpt_regs *regs =get_irq_regs();intduration;intsoftlockup_all_cpu_backtrace =sysctl_softlockup_all_cpu_backtrace;if(!watchdog_enabled)returnHRTIMER_NORESTART;/*kick the hardlockup detector*/watchdog_interrupt_count();/*kick the...
2.3万 6 44:59 App 针对电赛新玩家:一小时速通基本功能—GPIO、PWM、ADC、IRQ、TIMER、UART、USB、Multicore 浏览方式(推荐使用) 哔哩哔哩 你感兴趣的视频都在B站 打开信息网络传播视听节目许可证:0910417 网络文化经营许可证 沪网文【2019】3804-274号 广播电视节目制作经营许可证:(沪)字第01248号 增值电信业...
print_irqtrace_events(current); dump_stack(); add_taint(TAINT_SOFTLOCKUP, LOCKDEP_STILL_OK); if(softlockup_panic)//CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE配置为1时触发softlockup panic panic("softlockup: hung tasks"); __this_cpu_write(soft_watchdog_warn,true); ...
文章提到:在开启 CONFIG_PREEMPT=y 的时候,且没有关闭本地irq的时候,在内核中断el1_irq: SYM_CODE_START_LOCAL_NOALIGN(el1_irq) kernel_entry 1 gic_prio_irq_setup pmr=x20, tmp=x1 enable_da_f mov x0, sp bl enter_el1_irq_or_nmi