__Problem description:_
I have noticed that when desktop screen applications peg cpu usage, such as by having many browser tabs open or a bug in a web page's javascript, the windowing system X appears to freeze so that the offending application
cannot be closed by the user. The mouse and keyboard are non-responsive requiring a power cycle reboot.
_To replicate:_
Open many tabs on your browser to heavy javascript pages or other high
screen usage sites such as youtube.com. System will become non-responsive. Mouse with lag and then freezes. Keyboard and mouse become useless.
It seems also desirable that some screen apps have high process priority
than other apps.
1.* Tried this command on an xterm:
$ for i in $(seq 50) ; do openssl speed & done
Whether the renice was applied to the Xorg task or not, the screen does not lock up and I can successfully pkill. So, no problem.
*3.* The problem observed is consistent of having the windowing system task (Xorg) being run at the same or less priority than the applications under
the windowing system.
Last night I was lucky to capture some evidence that exemplifies the problem. I left the machine with a renice higher Xorg priority (top value 8). The next morning, it can be seen that the chromium window became non-responsive and would draw a replicated image mess from other windows
when mousing over. However, the windowing system remained responsive. See screenshot.
On 7/25/25 4:04 AM, Nicolas George wrote:
No, it is not: you had xterm and it subprocess eating all your CPU and nothing happened.
The xterm openssl script does not exemplify the problem since it does not exercise graphics I/O. The issue is that the Xorg task is being starved when screen application tasks are at the same or higher priority level than the Xorg task.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 45:02:15 |
Calls: | 10,392 |
Files: | 14,066 |
Messages: | 6,417,260 |