* [uml-devel] UML hanging while deactivating swap
@ 2004-09-03 21:34 Sven Köhler
2004-09-10 3:56 ` Jeff Dike
0 siblings, 1 reply; 4+ messages in thread
From: Sven Köhler @ 2004-09-03 21:34 UTC (permalink / raw)
To: user-mode-linux-devel
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] UML hanging while deactivating swap
2004-09-10 3:56 ` Jeff Dike
@ 2004-09-10 3:11 ` Sven Köhler
2004-09-10 17:36 ` BlaisorBlade
0 siblings, 1 reply; 4+ messages in thread
From: Sven Köhler @ 2004-09-10 3:11 UTC (permalink / raw)
To: Jeff Dike; +Cc: user-mode-linux-devel
>>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.
> 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] UML hanging while deactivating swap
2004-09-03 21:34 [uml-devel] UML hanging while deactivating swap Sven Köhler
@ 2004-09-10 3:56 ` Jeff Dike
2004-09-10 3:11 ` Sven Köhler
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Dike @ 2004-09-10 3:56 UTC (permalink / raw)
To: Sven Köhler; +Cc: user-mode-linux-devel
skoehler@upb.de 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] UML hanging while deactivating swap
2004-09-10 3:11 ` Sven Köhler
@ 2004-09-10 17:36 ` BlaisorBlade
0 siblings, 0 replies; 4+ messages in thread
From: BlaisorBlade @ 2004-09-10 17:36 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Sven Köhler, Jeff Dike
On Friday 10 September 2004 05:11, Sven Köhler wrote:
> >>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.
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.
> > 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.
Could it be because there is not enough free memory to free the swap?
--
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-09-10 17:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-03 21:34 [uml-devel] UML hanging while deactivating swap Sven Köhler
2004-09-10 3:56 ` Jeff Dike
2004-09-10 3:11 ` Sven Köhler
2004-09-10 17:36 ` BlaisorBlade
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.