linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: "Sven Köhler" <skoehler@upb.de>, "Jeff Dike" <jdike@addtoit.com>
Subject: Re: [uml-devel] UML hanging while deactivating swap
Date: Fri, 10 Sep 2004 19:36:46 +0200	[thread overview]
Message-ID: <200409101936.46107.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <41411B7B.5060300@upb.de>

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

      reply	other threads:[~2004-09-10 17:43 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
2004-09-10 17:36     ` BlaisorBlade [this message]

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=200409101936.46107.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=skoehler@upb.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox