swapon hangs when using file on kernels 2.6.28-13 and 2.6.28-11 but works perfect on kernel 2.6.27.11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have tested a lot, changing VFAT (FAT32) umask, uid and gid on /etc/fstab, allways happens the same:
On kernels 2.6.28.13 and 2.6.28.11 swapon /media/
On kernel 2.6.27-11 swapon /media/
Since i can select what kernel to load thanks to grub i can do the next test with this results:
-Boot selecting kernel 2.6.28-13 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
-Boot selecting kernel 2.6.28-13 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
... so on as i select kernel 2.6.28-13 ...
-Boot selecting kernel 2.6.28-11 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
-Boot selecting kernel 2.6.28-11 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
... so on as i select kernel 2.6.28-11 ...
-Boot selecting kernel 2.6.27-11 -> swapon works perfect at boot time and activate swap area on file.
-Shutdown Ubuntu 9.04 normaly
-Boot selecting kernel 2.6.28-11 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
-Boot selecting kernel 2.6.28-11 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
... so on as i select kernel 2.6.28-11 ...
-Boot selecting kernel 2.6.28-11 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
-Boot selecting kernel 2.6.28-11 -> swapon hangs the PC at boot time when activating swap area on file.
-Reboot with Ctrl+Alt+Sup
... so on as i select kernel 2.6.28-11 ...
-Boot selecting kernel 2.6.27-11 -> swapon works perfect at boot time and activate swap area on file.
-Shutdown Ubuntu 9.04 normaly
So i can see it only occurs when kernel 2.6.28-11 is selected and also when kernel 2.6.28-13 is selected.
Also i have commented swapon line, so i can boot with kernels 2.6.28-11 and 2.6.28-13, then i go to a prompt and type:
[Booting 2.6.28-13]
$uname -s -n -r -m
Linux ubuntu 2.6.28-13-generic i686
$sudo swapon -s
[sudo] password for usuario:
Filename Type Size Used Priority
$sudo mkswap /media/
$sudo swapon /media/
<--< It hangs on swapon and console must be terminated, unable to kill swapon process, neither with kill -9
[Booting 2.6.28-11]
$uname -s -n -r -m
Linux ubuntu 2.6.28-11-generic i686
$sudo swapon -s
[sudo] password for usuario:
Filename Type Size Used Priority
$sudo mkswap /media/
$sudo swapon /media/
<--< It hangs on swapon and console must be terminated, unable to kill swapon process, neither with kill -9
If i do the same but selecting kernel 2.6.27-11 at boot time i get:
$uname -s -n -r -m
Linux ubuntu 2.6.27-11-generic i686
$sudo swapon -s
[sudo] password for usuario:
Filename Type Size Used Priority
$sudo mkswap /media/
$sudo swapon /media/
$sudo swapon -s
Filename Type Size Used Priority
/media/
$
Obviously /media/SWAP is mounted as on both cases as:
/dev/sda1 on /media/SWAP type vfat (rw,utf8,
Also the file pagefile.sys is defragmented.
I have also done the next just to avoid any possible of being the content of the file:
$sudo umount /media/SWAP
$sudo mkfs.vfat -F 32 -n PAGEFILE -v /dev/sda1
$sudo mount /dev/sda1 /media/SWAP
$sudo dd bs=1MB cont=4081 if=/dev/zero of=/media/
$sudo mkswap /media/
$swapon /media/
If i do this on kernel 2.6.27-11 works perfect but if done in kernels 2.6.28-13 and 2.6.28-11 it hangs on swapon
I think it is a kernel bug.
Also i had tried to put sync command between commands, but same occurs swapon hangs on kernels 2.6.28-13 and 2.6.28-11 but on kernel 2.6.27-11 works fine.
Hope this info could help to solve such bug.
Thanks.
P.D.: If i had the oportunity i will check exactly the same, but with a file size exactly of 4GB (4096MB) instead of actual size of 4081MB, it is supposed not to affect, but who knows!
description: | updated |
summary: |
- swapon hangs when using file on kernel 2.6.28-11 but works perfect on - kernel 2.6.27.11 + swapon hangs when using file on kernels 2.6.28-13 and 2.6.28-11 but + works perfect on kernel 2.6.27.11 |
description: | updated |
affects: | ubuntu → linux (Ubuntu) |
Same problem. Swapon seems to be hangs for infinite time.