this post was submitted on 20 Jan 2025
38 points (91.3% liked)
Linux
49154 readers
566 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I've definitely had Windows hard lock before and stop responding to the keyboard, from Win95 all the way to Win10. I have no experience with Win11 so I can't speak for that, but all others have situations where it can happen.
In fact, Windows is bad enough that the disk usage being high can cause the system to stop responding until it's done and drops back down.
You can jam the Windows UI by spawning loads of processes with equivalent or higher priority to
explorer.exe
, which runs the desktop as they'll compete for CPU time. The same will happen if you do the equivalent under Linux. However if you have one process that does lots of small allocations, under Windows, once the memory and page file are exhausted, eventually an allocation will fail, and if the application's not set up to handle that, it'll die and you'll have free memory again. Doing the same under every desktop Linux distro I've tried (which have mostly been Ubuntu-based, so others may handle it better) will just freeze the whole machine. I don't know the details, but I'd guess it's that the process gets suspended until its request can be fulfilled, so as long as there's memory, it gets it eventually, but it never gets told to stop or murdered, so there's no memory for things like the desktop environment to use.On Linux, the OOM reaper should come for the memory cannibal eventually, but it can take quite a while. Certainly it's unlikely to be quick enough to avoid the desktop going unresponsive for a while. And it may take out a couple of other processes first, since it takes out the process holding the most memory rather than the one that's trying to allocate, if I recall correctly.