UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Well, since swap space is only used when it's needed, and you seem to have a Gb of real RAM, you could pull half of your RAM out of your system and force swap to be used.
Or, start several applications so they're running at the same time.
Or use the "suspend" option when logging off - The swap space is used for storage of the RAM image during a "suspend."
All of the above is by way of saying, "Why do you suppose that you aren't using your swap space when it's needed?"
Let's see if we can be a little more constructive here, shall we.
@dhrumantgoradia, your swap isn't being mounted - hence you're not accessing it. "swapon -s" will tell you if it's mounted. Most likely reason is the UUID doesn't match what is in fstab - any re-run of mkswap will change the UUID. Best bet is to have a look in dmesg for swap related messages.
Try "blkid | grep -i swap" and check the UUID - update fstab in need. You can just issue "swapon /dev/sda5" to get it active for now.
Thank you Guru syg00, for being more constructive and actually trying to help. I will try what you instructed. You are probably right as i restored my ubuntu partition from a backup but re-created the swap in this HDD.
You have solved my problem, it was the UUID mis-match. I replaced the UUID for swap in /etc/fstab with the one from 'swapon-s' and a system restart. Hey presto, worked.
I misread the free -m output since my output was the same, and I thought I was using swap. Turns out I, too, had my swap space inactive. Since this laptop has 3 Gb of memory (It came with vista installed.), I never noticed that swap was off.
This seems to be a bug in the last SEVERAL ubuntu releases, including up to and including Jaunty 9.04.
It is easily duplicated if you rebuild or change your swap file in any way that changes the UUID.
BTW: I think putting the UUID in the fstab is just a TERRIBLE hack.
"Ah, yes. The OLD ones. Yes. I remember the OLD ways."
Not quite the correct quote from "What Are Little Girls Made Of" ... but you get the idea I trust.
;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.