Bug 2119028

Summary: [oomd] systemd-oomd kills Gnome on Fedora and my mental health with it
Product: [Fedora] Fedora Reporter: Sagi Shnaidman <sshnaidm>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 36CC: dtardon, fedoraproject, filbranden, flepied, lnykryn, msekleta, ryncsn, ssahani, s, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-25 07:42:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sagi Shnaidman 2022-08-17 10:20:20 UTC
Description of problem:

systemd-oomd kills Gnome session on Fedora (35, 36) because it detects lack of memory. In this case it's nothing different from shutting down the computer. It's not what I'd expect from "help utility" to do. If I see nothing moves or any other problem with memory, I know how to shut down my laptop, I don't need a tool to do it in random moment for me. And probably I just close one or two not necessary memory-eating programs, instead of throwing my laptop to wall.

Version-Release number of selected component (if applicable):

Suffering from F34.

How reproducible:

Just work in your normal, code something in VSCode and open a Chrome browser, in some random moment WITHOUT ANY WARNING you'll see the blank screen. Congrats, all you worked on just gone. Is it an implementation of "blue screen" for Fedora? When we talked about features parity between Windows and Fedora, we didn't mean that feature exactly!

Steps to Reproduce:
1. Install Fedora on your workstation.
2. Work for the company.
3. Suffer.

How to survive?

1. DO NOT use cgroups based killing. It just doesn't make any sense on workstation, it's for servers. Just DO NOT.
2. Please tell me that you are going to explode and kill everything with fire, let me decide if I want to shut down the laptop and go drink coffee, or maybe I'll close this Youtube tutorial how to stop oomd killer and it will be back to normal. TALK, don't be silent! Sharing is caring.
3. DO NOT kill Gnome session, JUST DO NOT IN ANY CASE. It doesn't make any sense to continue without it. Just DO NOT. Isn't that easy?

Additional info:

$ free -g
               total        used        free      shared  buff/cache   available
Mem:              30           7           8           3          14          19
Swap:              7           1           6

Isn't it enough for just browsing and coding? Why should the workstation be shut down???

Aug 17 12:40:20 sshnaidm.remote systemd-oomd[1783]: Killed /user.slice/user-1000.slice/user/session.slice/org.gnome.Shell due to memory used (32942882816) / total (33280045056) and swap used (7734882304) / total (8589930496) being more than 90.00%

Comment 1 David Tardon 2022-08-25 07:42:03 UTC

*** This bug has been marked as a duplicate of bug 2034746 ***