UML hanging while deactivating swap
Hi,
ubd1 of my UML is a swapfs, and when halting or rebooting it, it hangs while the swap is deactivated (i guess swapoff -a is executed).
I'm using 2.6.6-um1
Thx
Sven
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · [email protected] said:
ubd1 of my UML is a swapfs, and when halting or rebooting it, it hangs
while the swap is deactivated (i guess swapoff -a is executed).
Can you narrow it down within the shutdown process? Adding -x to the #! lines of the relevant scripts is a good way to do this.
Also, can you get a stack trace from UML?
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines
Quoted 2 lines
ubd1 of my UML is a swapfs, and when halting or rebooting it, it hangs while the swap is deactivated (i guess swapoff -a is executed).
Can you narrow it down within the shutdown process? Adding -x to the #! lines of the relevant scripts is a good way to do this.
the relevant lines of the init script are
if [ -n "swapon -s 2>/dev/null" ]
then
ebegin "Deactivating swap"
swapoff -a &>/dev/null
eend $?
fi
so it _must_ be the "swapoff -a" since i see the "Deactivating swap" message, but not the "OK" that eend would generate.
Quoted 1 line
Also, can you get a stack trace from UML?
I don't know how to do that, sorry :-(. I have never worked with gdb and suchlike, but i'd really like to help to track the error down somehow.
The UML seems to be still running, since it takes CPU-time on the host, but the swapoff seems to never return.
It also hard for me to reproduce this, but i think it only happens when swap is used. If i try to reproduce it by running some programs that use much memory and therefor things get swapped, the UML halts without problems. Other UMLs that ran for months and have about 1MB swap used hang while the swap gets deactivated.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 15 lines · Sven Köhler
Quoted 5 lines
Quoted 2 lines
ubd1 of my UML is a swapfs, and when halting or rebooting it, it hangs while the swap is deactivated (i guess swapoff -a is executed).
Can you narrow it down within the shutdown process? Adding -x to the #! lines of the relevant scripts is a good way to do this.
the relevant lines of the init script are
if [ -n "
swapon -s 2>/dev/null" ]
then
ebegin "Deactivating swap"
swapoff -a &>/dev/null
eend $?
fi
Quoted 2 lines
so it _must_ be the "swapoff -a" since i see the "Deactivating swap" message, but not the "OK" that eend would generate.
No, the message could be generated but the console not flushed.
However, I think you should manually comment out the "swapoff" line and retry. You will maybe discover that is not a fix. Someone else had problems with hwclock, instead, so you try this, too.
Quoted 5 lines
Quoted 1 line
Also, can you get a stack trace from UML?
I don't know how to do that, sorry :-(. I have never worked with gdb and suchlike, but i'd really like to help to track the error down somehow.
Quoted 8 lines
The UML seems to be still running, since it takes CPU-time on the host, but the swapoff seems to never return.
It also hard for me to reproduce this, but i think it only happens when swap is used. If i try to reproduce it by running some programs that use much memory and therefor things get swapped, the UML halts without problems. Other UMLs that ran for months and have about 1MB swap used hang while the swap gets deactivated.
Could it be because there is not enough free memory to free the swap?
Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel