Results 1 to 4 of 4

Thread: Problem with hibernate: swsusp reports not enough memory

  1. #1
    Join Date
    Jan 2007
    Beans
    5

    Problem with hibernate: swsusp reports not enough memory

    Here is the error I (almost always) get when trying to hibernate on hardy:
    Code:
    swsusp: Not enough free memory
    Error -12 while creating image
    This started right after I added ram to my machine. I assumed it had to do with the size of the swap partition, so I used gparted so that now my situation looks like this:

    Code:
    ewan@ewan-ubuntu:~$ cat /proc/meminfo 
    MemTotal:       968820 kB
    MemFree:        447904 kB
    Buffers:          3268 kB
    Cached:          89976 kB
    SwapCached:       5852 kB
    Active:         372760 kB
    Inactive:        21156 kB
    HighTotal:       64000 kB
    HighFree:          184 kB
    LowTotal:       904820 kB
    LowFree:        447720 kB
    SwapTotal:     2104472 kB
    SwapFree:      2043496 kB
    Dirty:              36 kB
    Writeback:           0 kB
    AnonPages:      298860 kB
    Mapped:          83412 kB
    Slab:            15036 kB
    SReclaimable:     6364 kB
    SUnreclaim:       8672 kB
    PageTables:       2672 kB
    NFS_Unstable:        0 kB
    Bounce:              0 kB
    CommitLimit:   2588880 kB
    Committed_AS:   739096 kB
    VmallocTotal:   114680 kB
    VmallocUsed:     20384 kB
    VmallocChunk:    93492 kB
    I have more than twice as much swap as ram and, at any rate, at the moment I have far more free swap than I need to write the contents of ram out to swap. It has worked once since adding ram (I might have done something special, but I don't remember anything) but this definitely never happened before I added ram. That might be a coincidence of course - so any thoughts are welcome.
    --ewan

  2. #2
    Join Date
    Jan 2007
    Beans
    5

    Re: Problem with hibernate: swsusp reports not enough memory

    *bump*

  3. #3
    Join Date
    Aug 2006
    Location
    20,000 structs inside C
    Beans
    321
    Distro
    Ubuntu Development Release

    Re: Problem with hibernate: swsusp reports not enough memory

    Also had this problem, it appears that my image size was to big ( cat /sys/power/image_size ) this apparently needs to be less than 50% of available memory

    I have 1Gb of memory so did:
    as root
    Code:
    echo $((400*1024*1024)) > /sys/power/image_size
    and now my system successfully hibernates and resumes, although resume takes forever for the hard disk to stop thrashing.
    "Everything that can be invented has been invented." -- Charles H. Duell, Commissioner, U.S. Office of Patents, 1899
    Ubuntu user #24001

  4. #4
    Join Date
    Aug 2005
    Beans
    39

    Re: Problem with hibernate: swsusp reports not enough memory

    Quote Originally Posted by Thingymebob View Post
    Also had this problem, it appears that my image size was to big ( cat /sys/power/image_size ) this apparently needs to be less than 50% of available memory

    I have 1Gb of memory so did:
    as root
    Code:
    echo $((400*1024*1024)) > /sys/power/image_size
    and now my system successfully hibernates and resumes, although resume takes forever for the hard disk to stop thrashing.
    This resolved my problem

    Hibernation was working perfectly (I always ibernate instead of shuting down) on Ubuntu 11.10 but after update to 12.04 hibernation failed with this error.

    My /sys/power/image_size was to big!! I just echo MY_RAM_SIZE > /sys/power/image_size and it now works as expected, perfectly

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •