Bug 217684

Summary: not enough free memory on hibernation though plenty of space should be given
Product: Memory Management Reporter: Elmar Stellnberger (estellnb)
Component: Page AllocatorAssignee: Andrew Morton (akpm)
Status: NEW ---    
Severity: normal    
Priority: P3    
Hardware: i386   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg
free -m
swapon -s
free -m before and after second hibernation attempt (same boot)
whole system journal since boot

Description Elmar Stellnberger 2023-07-19 10:21:07 UTC
I have 4GB of swap space, 2GB of memory and currently 800MB of RAM as well as 600MB of Swap including 500MB of buffers in use. That should amount to no more than 1.9GB of swap (used also for hibernation here) being required. Please have a short look on the issue! Might be related to Bug 217544 (can´t exclude).

>uname -a 
... 6.3.9-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 16:54:49 UTC 2023 i686 GNU/Linux
Comment 1 Elmar Stellnberger 2023-07-19 10:21:44 UTC
Created attachment 304663 [details]
dmesg
Comment 2 Elmar Stellnberger 2023-07-19 10:22:13 UTC
Created attachment 304664 [details]
free -m
Comment 3 Elmar Stellnberger 2023-07-19 10:22:44 UTC
Created attachment 304665 [details]
swapon -s
Comment 4 Elmar Stellnberger 2023-07-19 10:32:19 UTC
Having refused to install distro updates for some time here, I could restart to install them, if these two reports may be of concern. You know, sometimes problems get resolved and sometimes they worsen intermittently, so I felt better served in not installing them for a while.
Comment 5 Elmar Stellnberger 2023-07-21 09:12:56 UTC
Created attachment 304676 [details]
free -m before and after second hibernation attempt (same boot)

The display manager restarted my X-server and the whole Xfce-GUI + other X-clients. After that there was more free memory than before and hibernation did work well as to be expected. As tested just now the resume from hibernation mode was effective and working well. Possibly there was an inconsistency in some data sub-structure and freeing all of it did also resolve the problem.
Comment 6 Elmar Stellnberger 2023-07-21 09:17:05 UTC
Created attachment 304677 [details]
whole system journal since boot

That is the whole journalctl --boot | grep -v msec (don´t like the messages from msec in there as they would expose what files are in my home directory). It includes the first (two) unsuccessful hibernation attempts, the X-server restart as well as the successful hibernation and resume thereafter.