this post was submitted on 23 May 2024
244 points (100.0% liked)

linuxmemes

24840 readers
392 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    Not exactly as funny meme as I would like it to be, but I just found out about that feature after having to hold the power button due to a frozen system countless times, and I had to tell someone.

    all 34 comments
    sorted by: hot top controversial new old
    [–] [email protected] 38 points 11 months ago (4 children)

    Related and IMO a much better option for Linux desktops:

    Early OOM

    [–] [email protected] 15 points 11 months ago* (last edited 11 months ago) (2 children)

    This is great! Why doesnt distros use this by default???

    Just put plasmashell and a few in there and you will have a working oom killer. Finally.

    I will install this the first thing tomorrow

    Wait... Fedora has this since quite a while, strange.

    [–] [email protected] 13 points 11 months ago (1 children)

    Because if i'm rendering on blender on my lower end PC with expected freezes but it auto kills the render?

    [–] [email protected] 2 points 11 months ago (2 children)

    Sounds like niche use cases

    [–] [email protected] 9 points 11 months ago (2 children)

    Not niche there can be times when you want to run something heavy and it auto kills the exact thing you are trying to run. You have a 1gb ram device and it kills everything? Thats undesirable

    [–] [email protected] 1 points 11 months ago (1 children)

    Your usual pal won't be running Blender, they're going to be stumbling their way through LibreOffice and a browser. Massive echo chamber right there.

    [–] [email protected] 2 points 11 months ago

    Usual pal may tru run gta 3 on a potato though

    [–] [email protected] 1 points 11 months ago (1 children)

    Hm.... the process itself should not take that much RAM. I dont know if normally the OS should assign the max RAM to the program.

    But this should not happen and I wonder how "just letting it freeze" works

    [–] [email protected] 3 points 11 months ago (1 children)

    It makes system unresponsive, true. But its still running the main things, the render or decompressing or whatever. So it eventually unfreezes when it completes, by giving other programs(including GUI) back the CPU and ram.

    [–] [email protected] 1 points 11 months ago (1 children)

    Ok so killing is worse than just keeping alive.

    This is a fair point.

    I dont know a good solution for this, not killing but freezing is likely the best.

    I dont know

    [–] [email protected] 1 points 11 months ago

    Preferences matter too. Some like their progrms to be killed. Some may want it to run anyway however possible

    [–] [email protected] 2 points 11 months ago

    We do not break userspace in this household young man.

    [–] [email protected] 5 points 11 months ago* (last edited 11 months ago)

    Why doesnt distros use this by default???

    Nohang has some explanations to this.

    I.e. kernel devs are ignorant to the issue of oomkiller not working as intended on desktop.

    Edit: Lkml is down.

    [–] [email protected] 3 points 11 months ago (3 children)

    Just decrease your swap space.

    Unless you have an unusual system, there's no reason to have several GB of swap.

    [–] [email protected] 8 points 11 months ago (1 children)

    that won't solve the system unresponsiveness

    [–] [email protected] 2 points 11 months ago (1 children)

    Have you tried?

    Because it does.

    [–] [email protected] 10 points 11 months ago (1 children)

    yes, even turning swap off entirely doesn't solve it. It doesn't take much to find people reporting a similar experience.

    [–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

    Better enable swap again. Linux expects swap.

    [–] [email protected] 3 points 11 months ago

    or fiddle with the vm/swappiness value

    [–] [email protected] 1 points 11 months ago (1 children)

    Is hibernate no longer a thing? I thought that needed swap.

    [–] [email protected] 2 points 11 months ago

    Actually, not much.

    It always had reliability issues with bad hardware, and computers boot incredibly quickly nowadays. But yeah, it requires swap, and if you want it, there's a sibling answer here about sawppiness.

    [–] [email protected] 1 points 11 months ago* (last edited 11 months ago) (1 children)
    [–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

    Wasn't oomd the facebook thing for complicated server setups?

    edit: yeah, for large data centers. Imho overengineered for single user desktop sessions. Earlyoom is simple and tiny.

    [–] [email protected] 27 points 11 months ago (1 children)

    ok... I'll ask.. where the heck is the "sysreq" key on my standard keyboard?

    [–] [email protected] 13 points 11 months ago (2 children)

    Should be the screenshot key

    [–] [email protected] 9 points 11 months ago

    so it is! and I tested it, of course, with alt-sys-b which instantly rebooted my machine. nice.

    [–] [email protected] 1 points 11 months ago (1 children)
    [–] [email protected] 2 points 11 months ago

    Yeah, on my keyboard it's just an icon so I forgot the actual name lol

    [–] [email protected] 8 points 11 months ago (1 children)

    How come sysreq + f is not on by default? After discovering and enabling it I haven’t had to hard restart due to hangs or crashes.

    [–] [email protected] 12 points 11 months ago (1 children)

    Debian has it by default I think. Arch has it disabled because it might be a security risk if someone had physical access to your computer.

    [–] [email protected] 9 points 11 months ago

    those debian daredevils like the thrill of living on the edge

    [–] [email protected] 1 points 11 months ago (1 children)

    Raising Skinny Elephants Is Utterly Boring ... Or so I've heard.

    [–] [email protected] 3 points 11 months ago

    That restarts the system. This only attempts to kill the app that uses most memory.