Swap partition enabled twice

Bug #68710 reported by Nicolas Riesco
6
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
New
Undecided
Gabriel Patiño

Bug Description

Somehow, after upgrading from Dapper to Edgy, my laptop started to report double the previous swap memory. At the same time, I noticed that under certain circumstances the laptop became very slow and some applications got stalled. For instance, when running synaptic, sometimes complained it has failed when forking due to a lack of memory.

The problem disappears if I disable and then enable the swap partition:

$ sudo swapon -s
Password:
Filename Type Size Used Priority
/dev/hda2 partition 979956 0 -1
/dev/mapper/hda2 partition 979956 0 -2

$ sudo swapoff -a

$ sudo swapon -a

$ sudo swapon -s
Filename Type Size Used Priority
/dev/mapper/hda2 partition 979956 0 -3

The problem seems to be related to the use of UUID in /etc/fstab. If I replace the line:

UUID=2f7932b2-2272-41a5-a421-427d88fa852b none swap sw 0 0

with:

/dev/hda2 none swap sw 0 0

after rebooting, the laptop reports the right swap size:

$ sudo swapon -s
Password:
Filename Type Size Used Priority
/dev/hda2 partition 979956 128560 -1

Hope this is helpful,

Nico

Tags: edgy feisty
Revision history for this message
Michael R. Head (burner) wrote :

I'm seeing the same thing (in feisty now). I have the UUID line in my fstab, and tools like "top", and gnome-system-monitor report that I have 4GB of swap, despite the fact that I have just one 2GB swap partition.

burner@phoenix:~$ cat /proc/swaps
Filename Type Size Used Priority
/dev/hda5 partition 2273156 669408 -1
/dev/mapper/hda5 partition 2273156 0 -2
burner@phoenix:~$ grep "swap\|hda5" /etc/fstab
# /dev/hda5 -- converted during upgrade to edgy
UUID=50d295d4-efcf-4f58-a84a-85f7365903fe none swap sw 0 0

Changed in util-linux:
assignee: nobody → gepatino
Revision history for this message
Gabriel Patiño (gepatino) wrote :

Thanks for your bug report.
This bug has been marked as duplicate for bug #86234

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.