Author Topic: Hibernation failing when high system memory usage  (Read 312 times)

0 Members and 1 Guest are viewing this topic.

Offline viento

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Hibernation failing when high system memory usage
« on: February 28, 2021, 07:13:15 pm »
Hi folks,

Wondering if anyone has any ideas. At first I thought this was a problem with VirtualBox but a test outside of this exhibited the same fault. Basically I have a 16GB of RAM and a 16GB swapfile (which not normally this high but needed and higher in size for hibernation purposes). Hibernation will work fine all day long until I creep above 10GB of RAM usage. It then fails and the syslog reports that it cannot allocate the memory.

Code: [Select]
Feb 27 20:16:17 dell-Vostro-5481 systemd[1]: Starting Hibernate...
Feb 27 20:16:18 dell-Vostro-5481 wpa_supplicant[896]: nl80211: deinit ifname=wlo1 disabled_11b_rates=0
Feb 27 20:16:18 dell-Vostro-5481 kernel: [ 465.490007] PM: hibernation entry
Feb 27 20:16:18 dell-Vostro-5481 systemd-sleep[7074]: Suspending system...
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.512763] Filesystems sync: 0.018 seconds
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.512765] Freezing user space processes ... (elapsed 0.002 seconds) done.
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515069] OOM killer disabled.
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515180] PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515181] PM: Marking nosave pages: [mem 0x0005e000-0x0005efff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515182] PM: Marking nosave pages: [mem 0x000a0000-0x000fffff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515184] PM: Marking nosave pages: [mem 0x40000000-0x403fffff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515201] PM: Marking nosave pages: [mem 0x6fe89000-0x6fe89fff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515202] PM: Marking nosave pages: [mem 0x6fea6000-0x6fea7fff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515203] PM: Marking nosave pages: [mem 0x6feb7000-0x6feb7fff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515203] PM: Marking nosave pages: [mem 0x72573000-0x72574fff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515204] PM: Marking nosave pages: [mem 0x78ac2000-0x78b47fff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515207] PM: Marking nosave pages: [mem 0x7d9d3000-0x7fffefff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515360] PM: Marking nosave pages: [mem 0x80000000-0x87ffffff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.515420] PM: Marking nosave pages: [mem 0x88200000-0xffffffff]
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.516753] PM: Basic memory bitmaps created
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 465.517245] PM: Preallocating image memory...
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 468.049164] acpi LNXPOWER:04: Turning OFF
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 468.049192] acpi LNXPOWER:00: Turning OFF
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 468.049250] PM: Basic memory bitmaps freed
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 468.049251] OOM killer enabled.
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 468.049251] Restarting tasks ... done.
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 468.057770] thermal thermal_zone8: failed to read out thermal zone (-61)
Feb 27 20:16:20 dell-Vostro-5481 kernel: [ 468.085077] PM: hibernation exit
Feb 27 20:16:21 dell-Vostro-5481 systemd-sleep[7074]: Failed to suspend system. System resumed again: Cannot allocate memory
Feb 27 20:16:21 dell-Vostro-5481 systemd-sleep[7246]: /dev/sda:
Feb 27 20:16:21 dell-Vostro-5481 systemd-sleep[7246]: setting Advanced Power Management level to 0xfe (254)
Feb 27 20:16:21 dell-Vostro-5481 systemd-sleep[7246]: APM_level#011= 254
Feb 27 20:16:21 dell-Vostro-5481 systemd-sleep[7269]: /dev/sdb:
Feb 27 20:16:21 dell-Vostro-5481 systemd-sleep[7269]: setting Advanced Power Management level to 0xfe (254)
Feb 27 20:16:21 dell-Vostro-5481 systemd-sleep[7269]: APM_level#011= 254
Feb 27 20:16:21 dell-Vostro-5481 systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Feb 27 20:16:21 dell-Vostro-5481 systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Feb 27 20:16:21 dell-Vostro-5481 systemd[1]: Failed to start Hibernate.
Feb 27 20:16:21 dell-Vostro-5481 systemd[1]: Dependency failed for Hibernate.
Feb 27 20:16:21 dell-Vostro-5481 systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
Feb 27 20:16:21 dell-Vostro-5481 systemd[1]: Stopped target Sleep.
Feb 27 20:16:21 dell-Vostro-5481 NetworkManager[840]: <info> [1614456981.3916] manager: sleep: wake requested (sleeping: yes enabled: yes)
Feb 27 20:16:21 dell-Vostro-5481 NetworkManager[840]: <info> [1614456981.4135] device (enp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Feb 27 20:16:21 dell-Vostro-5481 udisksd[893]: Applying configuration from /etc/udisks2/WDC--WDS500G2B0A-00SM50-19098F801601.conf to /dev/sda
Feb 27 20:16:21 dell-Vostro-5481 udisksd[893]: Applying configuration from /etc/udisks2/WDC-WDS500G2B0B-192651804032.conf to /dev/sdb
Feb 27 20:16:21 dell-Vostro-5481 udisksd[893]: Set APM level to 64 on /dev/sdb [WDC-WDS500G2B0B-192651804032]
Feb 27 20:16:21 dell-Vostro-5481 udisksd[893]: Set APM level to 51 on /dev/sda [WDC--WDS500G2B0A-00SM50-19098F801601]
Feb 27 20:16:21 dell-Vostro-5481 kernel: [ 468.776137] Generic FE-GE Realtek PHY r8169-100:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-100:00, irq=IGNORE)

It's not (or I can't see how) it's the size of the swapfile as I've tried a 32GB swapfile and results in the same. I initially had a 8GB swapfile but upped this to 16GB for testing to match the physical RAM.

If I do a swapon I get:

Code: [Select]
NAME       TYPE     SIZE    USED PRIO
/swapfile    file      24G     1.8G -2

RAM usage is
total     used    free     shared    buff/cache available
Mem:    15Gi    8.5Gi    5.6Gi    501Mi 1.2Gi 6.0Gi
Swap:   23Gi    1.8Gi    22Gi


If I close a few applications to get the usage down to around 7-8GB of RAM usage it works without a problem.

Anyone got any thoughts on this?

LM 20 Cinnamon
16GB RAM
Intel© Core™ i5-8265U CPU @ 1.60GHz × 4

Many thanks

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal