On my Ubuntu 22.04 LTS (installed on an ASUS ZenBook with Intel i5 11th gen), I get a weird thing happening.
Every time I try to do something a bit more heavy, like image opening more apps at the same time, Ubuntu freezes (the mouse stops working and UI is frozen).
The fan starts going but never too much, and the weird thing is that is just frozen: no access to ttys as well, I can only force shutdown with power button.
If I try and check with journalctl the last session logs, I always find random/normal stuff, but nothing that is always the same or indicates any specific reason.
Any suggestion on what could be and how I can investigate this after a forced reboot?
UPDATE: after trying many things, I investigated more into memory and swap, and because I use zfs with a zvol partition for swap, I arrived to this page https://github.com/openzfs/zfs/issues/7734 and I was able to re-create the issue using stress-ng sending big amounts of pages into RAM and so triggering big amounts of swap...system frozen!
So the problem is described in that 4 years old issue (absurd that Ubuntu still offers zfs!)...if you need performance with lots of potential use of swap, do not use zfs, as it's not maintained and is not working properly with swap.
I posted about this in another different topic: Ubuntu 22.04 LTS with zfs filesystem and swap: deadlock! How to solve?
echo "1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
. See also here. – Doug Smythies Jun 18 '22 at 14:19stress-ng --cpu N --cpu-method matrixprod
where "N" is the number of CPUs that you have in your processor. – Doug Smythies Jun 18 '22 at 15:58echo "45" | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct
for example. Is there a level where it works? Please provide your exact processor model number i5-11XXX? – Doug Smythies Jun 18 '22 at 16:01journalctl
from last boot just before it froze might help. – WinEunuuchs2Unix Jun 20 '22 at 00:10