View previous topic :: View next topic |
Author |
Message |
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1892 Location: Switzerland (Romandie)
|
Posted: Wed Apr 20, 2022 11:21 am Post subject: [solved, maybe] system freeze |
|
|
On a new gentoo system, it run fine with a kernel base3d on the last gentoo-sources and genkernel, but with the rt-sources and genkernel, it just freeze. When this occur, 2 things are still working: the mouse cursor move but do nothing and the power button reset the computer when I press it during 5 seconds.
Which imply I have no clue about what to do in orde5r to debug this issue. I try to remove the cgroups from the rt-sources, that in order to only have 1 system to manage the rt priorities, that implied to remove elogind and install xorg-server with suid root. That changed nothing.
The sytem use startx to start fvwm with the fvwm-crystal themes. All is working fine until I start some windows like the files dialog of software like picpuz or the preferences window of glade. When doing so, the result is not systematic but occur very often: complete system freeze.
Code: | # dmesg | egrep -i 'console|fbcon'
[ 0.090766] Console: colour VGA+ 80x25
[ 0.102901] printk: console [tty0] enabled
[ 0.704068] printk: console [tty0]: printing thread started
[ 17.459668] nouveau 0000:01:00.0: vgaarb: deactivate vga console
[ 17.462382] Console: switching to colour dummy device 80x25
[ 18.523551] fbcon: nouveaudrmfb (fb0) is primary device
[ 18.568592] Console: switching to colour frame buffer device 240x67
tux ~ # dmesg | grep firmware
[ 24.200109] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
[ 24.245489] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.40
[ 24.284494] ieee80211 phy1: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 24.284696] ieee80211 phy1: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
# uname -r
5.16.2-rt-rt19-x86_64
$ fvwm3 --version
fvwm3 1.0.5 (1.0.4-124-g7ef3408f-dirty)
with support for: ReadLine, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS |
Last edited by Dominique_71 on Wed Apr 20, 2022 1:02 pm; edited 1 time in total |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
Posted: Wed Apr 20, 2022 12:07 pm Post subject: |
|
|
Moved from Kernel & Hardware to Unsupported Software. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3916
|
Posted: Wed Apr 20, 2022 12:11 pm Post subject: |
|
|
You need apparently
Code: |
CONFIG_PREEMPT_RT_FULL=y
|
in your .config
OR
in make menuconfig navigate to and enable
Code: |
Processor type and features -> Preemption Model -> Fully Preemptible Kernel (RT)
|
_________________
|
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1892 Location: Switzerland (Romandie)
|
Posted: Wed Apr 20, 2022 1:01 pm Post subject: |
|
|
alamahant wrote: | You need apparently
Code: |
CONFIG_PREEMPT_RT_FULL=y
|
in your .config
OR
in make menuconfig navigate to and enable
Code: |
Processor type and features -> Preemption Model -> Fully Preemptible Kernel (RT)
|
|
I know, it's done. The problem is not the premption but complete system freezes. I changed some options in grub.cfg and into the system, and with the time being, I am not able to reproduce that issue anymore. So maybe that is solved. For reference, I put here what I have done in chronological order:
Code: | # /etc/default/grub.cfg
GRUB_CMDLINE_LINUX="isolcpus=1-7 nohz_full=1-7 rcu_nocbs=1-7 nowatchdog acpi_irq_nobalance" |
Code: | # /etc/sysctl.d/local.conf
vm.swappiness = 10
dev.rtc.max-user-freq=3072
dev.hpet.max-user-freq=3072
fs.inotify.max_user_watches=524288 |
Code: | # /root/bin/tune_rt
# I run it before login as user
#!/bin/bash
# move non-rt irqs to core 0
for i in 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41
do
echo 1 >/proc/irq/$i/smp_affinity
done
#move rt irqs to core 1 (here audio irq =17 and irq = 40)
echo 2 >/proc/irq/17/smp_affinity
echo 2 >/proc/irq/40/smp_affinity
#disable rt throttling
echo -1 >/proc/sys/kernel/sched_rt_runtime_us
# disable smt
echo off > /sys/devices/system/cpu/smt/control |
For what I can get from the test I made, it is to disable smt that solved that issue. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|