I’m using an XPS 13 9350 with 16GB of RAM and the Intel Graphics 540. I am using Fedora KDE spin. When I am using computer, either randomly or when I start a program, my computer will slow down and quickly fully freeze. In this state, the only thing I can do is shut it down. Is there any way to make it so that a program is killed, or something else that doesn’t fully stop my system?

3 points

systemd-oomd?

permalink
report
reply
31 points
  • Ctrl + Alt + F[1-0] to access other TTYs which might still be responsive even if your desktop environment is unresponsive. Pull up top/htop and ID the problematic process to kill.

  • Agree with using an oom killer.

  • Do you need more swap? Can use swap file if expanding swap partition is problematic.

permalink
report
reply
7 points
*

Slows down then freezes sure sounds like an out of memory situation, so to add to yours here they might actually want less swap. Sometimes you would rather hit the oom killer sooner instead of waiting on swap to fill.

Ideally login via SSH from another machine to figure out what is using the memory (hopefully the system is responsive enough for SSH), and if it is your critical programs causing the problem then you should consider a memory upgrade.

permalink
report
parent
reply
2 points

Seconded on less swap. It depends on if you’d prefer to have a process be killed (have less swap) or the system go unresponsive for a while and eventually (hopefully) come back (more swap).

Also if the swap is on a slow disk, try moving it to a faster one if possible.

permalink
report
parent
reply
1 point

Thanks, I’ll check these out the next time this happens.

permalink
report
parent
reply
6 points

Ahh, the old ‘ssh into my primary from my old laptop’ trick. Works well.

permalink
report
parent
reply
13 points
7 points

Some distros disable these by default such as Arch.

permalink
report
parent
reply
6 points

Yeah, try pressing Alt+[PrintScreen, F] to invoke the OOM killer. It kills the memory-hoggingest process, usually the web browser.

Fedora documentation says this sysrq functionality may be disabled by default. You can enable it once by typing at a terminal: echo 1 | sudo tee /proc/sys/kernel/sysrq or permanently with echo 'kernel.sysrq = 1' | sudo tee /etc/sysctl.d/90-sysrq.conf

If it turns out that memory overconsumption is the problem, you can sometimes fix this lag by disabling swap. 16GB is easily enough RAM to do all normal desktop things.

permalink
report
parent
reply
2 points

Most systems automatically invoke the oom killer. If your work is super important, just let your system sit for a day or two the problem may resolve itself.

If you don’t get any logs about why it locked up I recommend enabling kernel message logging to disk.

permalink
report
parent
reply
1 point

When I was but a lad, I learned the phrase “raising skinny elephants is utterly boring.” At my first job where I had a messenger (and thus could set a status message), I set this to display.

I was chastised because the leadership didn’t know what it meant, but thought it might be offensive. I don’t know whom they thought I might offend; one of the many skinny elephants on the team?

I was too nervous to set it again for several subsequent jobs, but eventually I got in a pretty technical one and displayed the message there. Not only did no one express offense, but I actually taught it to someone who put it to use when a mission critical server died.

permalink
report
parent
reply
1 point

I don’t have advice to offer but depending on the program you are using, it might be autosaving your work to a temporary file, for example vim does this by default.

You could look into settings for autosaving or temporary files in your programs.

permalink
report
reply
3 points

That used to happen to me A LOT. Right now it only happens because I have a faulty RAM that I’m planning to replace very soon, but before that, I think the CPU was overheated and it forcefully rebooted my laptop, at least that was my impression by the logs at boot.

After a long time of debugging, I decided to, first, disable hibernation to see if that was a problem, then I disabled CPU boost and I think that was the cause of overheating, since, for some reason, my distro decided that it was a good idea to use CPU boost for any common task and it caused overheating.

I haven’t had any problems not related to faulty RAM since then lol

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

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

Community stats

  • 6.8K

    Monthly active users

  • 6.8K

    Posts

  • 185K

    Comments