All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sven Köhler" <skoehler@upb.de>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] UML hanging while deactivating swap
Date: Fri, 10 Sep 2004 05:11:55 +0200	[thread overview]
Message-ID: <41411B7B.5060300@upb.de> (raw)
In-Reply-To: <200409100356.i8A3uQg1005723@ccure.user-mode-linux.org>

>>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

  reply	other threads:[~2004-09-10  4:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2004-09-10 17:36     ` BlaisorBlade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41411B7B.5060300@upb.de \
    --to=skoehler@upb.de \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.