PDA

View Full Version : [SOLVED] mounted SwapFile not in use...



a7j_72
November 24th, 2009, 01:45 AM
About 2 weeks ago I installed Ubuntu Studio 64-bit with the encryption setting on.
Everything went well, except that at startup I would get:
One or more of the mounts listed in /etc/fstab cannot yet be mounted:
swap: waiting for /dev/mapper/cryptswap1
Press ESC to enter a recovery shell
at boot. It seems a lot of users had issues with the encryption setting.



After trying a couple of things, and not wanting to reinstall... I unmounted the partition, deleted it, and created a 2gig swapfile called:

/swap_file

mounted it,
set it as swap under fstab.

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=e5d60159-62cd-43fd-9351-3d20edea3d43 / ext4 errors=remount-ro 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/swap_file none swap sw 0 0

free -m show it as mounted but it is never used, no matter how much load I put on my system
I have included a screenshot of free -m.
I was rendering a video in the background using Kino.

a7j_72
November 26th, 2009, 09:43 AM
bump...

John Bean
November 26th, 2009, 09:52 AM
Have you tried "swapon -a" ?

a7j_72
November 26th, 2009, 10:17 AM
first, thanks for ur response...

Yes... I dont get any errors when using swapon -a .
I verify w/ "free -m"
and I have listed for swap
total: 2199mb
used: 0mb
free: 2199mb

therefore it is mounted.
I understand that swap it is not used heavily until ram has nearly filled up.
But I'm not getting any usage at all. Even when rendering videos, using multiple simultaneous apps. etc
I don't believe swappiness is an issue here

a7j_72
November 29th, 2009, 10:06 PM
bump...

presence1960
November 29th, 2009, 11:06 PM
bump...

How much RAM do you have? I have 4GB and have never seen my swap in use.

a7j_72
November 30th, 2009, 08:08 AM
UPDATE: Well turns out that I finally got to see extremely small action from my swapfile...
I had to encode a video, play a flash app, fire up multiple firefox instances simultaneously to use up >.25mb of swap...

Now all I have to do is edit my swappiness.

So presence1960, u were right. thanx.