Unix Technical Forum

Swap does not get freed on resume

This is a discussion on Swap does not get freed on resume within the Debian Linux support forums, part of the Debian Linux category; --> Hello, I have a dual core laptop with 2GB RAM (Nvidia graphics card) that hibernates and resumes correctly close ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-16-2008, 01:37 PM
Geico Caveman
 
Posts: n/a
Default Swap does not get freed on resume

Hello,

I have a dual core laptop with 2GB RAM (Nvidia graphics card) that
hibernates and resumes correctly close to 90% of the time. OS : Linux
Ubuntu Hardy. Great improvement in that success rate over Gutsy.

However, there is one wrinkle to this. When I resume, I find that a x MB of
RAM is still occupied while y MB of RAM is listed as free (from the output
of top). And x = approx. 0.5 * y, so there is plenty of RAM available. This
is the case even 5-10 minutes after resume.

Since using the swap inevitably slows down the machine (not to mention cause
needless disk activity), I usually rectify the situation by :

$ sudo /sbin/swapoff -a; sudo /sbin/swapon -a

This takes some time(approx 2 minutes) but frees up the swap.

Why doesn't resume do this on its own ? I am using in-kernel suspend (not
suspend2 or tuxonice). Further, if it matters, all my partitions
except /boot, including swap, are LUKS encrypted.
** Posted from http://www.teranews.com **
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com