All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [Patch] UML: spurious interrupt freezes guest
@ 2009-01-20  3:53 ` Shane Hathaway
  0 siblings, 0 replies; 7+ messages in thread
From: Shane Hathaway @ 2009-01-20  3:53 UTC (permalink / raw)
  To: linux-kernel, user-mode-linux-devel

A new instance of user mode linux that I created over the past couple of
days worked pretty well except that it had a habit of freezing after a
few minutes.  Every time it froze, the last message on the console was
either:

spurious interrupt in ubd_handler, err = 4

or:

spurious interrupt in ubd_handler, err = 0

This message is generated by arch/um/drivers/ubd_kern.c.  I did not work
out the cause of the spurious interrupts, but I did come up with a patch
that makes the guest recover from spurious interrupts without freezing.
 It appears that the interrupt handler needs to be reactivated before
every exit of ubd_handler().  The patch is below.

Shane


--- linux-2.6.27.12-orig/arch/um/drivers/ubd_kern.c
+++ linux-2.6.27.12/arch/um/drivers/ubd_kern.c
@@ -489,6 +489,7 @@
                                break;
                        printk(KERN_ERR "spurious interrupt in
ubd_handler, "
                               "err = %d\n", -n);
+                       reactivate_fd(thread_fd, UBD_IRQ);
                        return;
                }




------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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] 7+ messages in thread

* [Patch] UML: spurious interrupt freezes guest
@ 2009-01-20  3:53 ` Shane Hathaway
  0 siblings, 0 replies; 7+ messages in thread
From: Shane Hathaway @ 2009-01-20  3:53 UTC (permalink / raw)
  To: linux-kernel, user-mode-linux-devel

A new instance of user mode linux that I created over the past couple of
days worked pretty well except that it had a habit of freezing after a
few minutes.  Every time it froze, the last message on the console was
either:

spurious interrupt in ubd_handler, err = 4

or:

spurious interrupt in ubd_handler, err = 0

This message is generated by arch/um/drivers/ubd_kern.c.  I did not work
out the cause of the spurious interrupts, but I did come up with a patch
that makes the guest recover from spurious interrupts without freezing.
 It appears that the interrupt handler needs to be reactivated before
every exit of ubd_handler().  The patch is below.

Shane


--- linux-2.6.27.12-orig/arch/um/drivers/ubd_kern.c
+++ linux-2.6.27.12/arch/um/drivers/ubd_kern.c
@@ -489,6 +489,7 @@
                                break;
                        printk(KERN_ERR "spurious interrupt in
ubd_handler, "
                               "err = %d\n", -n);
+                       reactivate_fd(thread_fd, UBD_IRQ);
                        return;
                }




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [uml-devel] [Patch] UML: spurious interrupt freezes guest
  2009-01-20  3:53 ` Shane Hathaway
@ 2009-01-20  4:59   ` Jeff Dike
  -1 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2009-01-20  4:59 UTC (permalink / raw)
  To: Shane Hathaway; +Cc: linux-kernel, user-mode-linux-devel

On Mon, Jan 19, 2009 at 08:53:25PM -0700, Shane Hathaway wrote:
> A new instance of user mode linux that I created over the past couple of
> days worked pretty well except that it had a habit of freezing after a
> few minutes.  Every time it froze, the last message on the console was
> either:
> 
> spurious interrupt in ubd_handler, err = 4

What version and what's the workload?

     	     	 	Jeff

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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] 7+ messages in thread

* Re: [Patch] UML: spurious interrupt freezes guest
@ 2009-01-20  4:59   ` Jeff Dike
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2009-01-20  4:59 UTC (permalink / raw)
  To: Shane Hathaway; +Cc: linux-kernel, user-mode-linux-devel

On Mon, Jan 19, 2009 at 08:53:25PM -0700, Shane Hathaway wrote:
> A new instance of user mode linux that I created over the past couple of
> days worked pretty well except that it had a habit of freezing after a
> few minutes.  Every time it froze, the last message on the console was
> either:
> 
> spurious interrupt in ubd_handler, err = 4

What version and what's the workload?

     	     	 	Jeff

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [uml-devel] [Patch] UML: spurious interrupt freezes guest
  2009-01-20  4:59   ` Jeff Dike
@ 2009-01-20  5:32     ` Shane Hathaway
  -1 siblings, 0 replies; 7+ messages in thread
From: Shane Hathaway @ 2009-01-20  5:32 UTC (permalink / raw)
  To: Jeff Dike; +Cc: linux-kernel, user-mode-linux-devel

Jeff Dike wrote:
> On Mon, Jan 19, 2009 at 08:53:25PM -0700, Shane Hathaway wrote:
>> A new instance of user mode linux that I created over the past couple of
>> days worked pretty well except that it had a habit of freezing after a
>> few minutes.  Every time it froze, the last message on the console was
>> either:
>>
>> spurious interrupt in ubd_handler, err = 4
> 
> What version and what's the workload?

I got the spurious interrupt with both Linux 2.6.28.1 and 2.6.27.12 as
guests.  The host runs 2.6.9-42.0.3.ELsmp.

I am putting OpenVPN and Asterisk inside the guest.  The guest is based
on Ubuntu 8.10.  The spurious interrupt happened more often when I
restricted the guest's RAM.  The processes in the guest normally consume
a total of about 20-24 MB of RAM.  I limited the guest's RAM to 48 MB
and gave it a 64 MB swap partition.  When I gave the guest only 32 MB,
the spurious interrupt seemed to happen more often.

The best way I found to trigger the spurious interrupt was to try to
"apt-get install" many packages at once.  The download would succeed,
but the guest would freeze partway through the install.

Shane

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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] 7+ messages in thread

* Re: [Patch] UML: spurious interrupt freezes guest
@ 2009-01-20  5:32     ` Shane Hathaway
  0 siblings, 0 replies; 7+ messages in thread
From: Shane Hathaway @ 2009-01-20  5:32 UTC (permalink / raw)
  To: Jeff Dike; +Cc: linux-kernel, user-mode-linux-devel

Jeff Dike wrote:
> On Mon, Jan 19, 2009 at 08:53:25PM -0700, Shane Hathaway wrote:
>> A new instance of user mode linux that I created over the past couple of
>> days worked pretty well except that it had a habit of freezing after a
>> few minutes.  Every time it froze, the last message on the console was
>> either:
>>
>> spurious interrupt in ubd_handler, err = 4
> 
> What version and what's the workload?

I got the spurious interrupt with both Linux 2.6.28.1 and 2.6.27.12 as
guests.  The host runs 2.6.9-42.0.3.ELsmp.

I am putting OpenVPN and Asterisk inside the guest.  The guest is based
on Ubuntu 8.10.  The spurious interrupt happened more often when I
restricted the guest's RAM.  The processes in the guest normally consume
a total of about 20-24 MB of RAM.  I limited the guest's RAM to 48 MB
and gave it a 64 MB swap partition.  When I gave the guest only 32 MB,
the spurious interrupt seemed to happen more often.

The best way I found to trigger the spurious interrupt was to try to
"apt-get install" many packages at once.  The download would succeed,
but the guest would freeze partway through the install.

Shane

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [uml-devel] [Patch] UML: spurious interrupt freezes guest
  2009-01-20  5:32     ` Shane Hathaway
  (?)
@ 2009-01-20 11:29     ` lanas
  -1 siblings, 0 replies; 7+ messages in thread
From: lanas @ 2009-01-20 11:29 UTC (permalink / raw)
  To: user-mode-linux-devel

On Mon, 19 Jan 2009 22:32:24 -0700,
Shane Hathaway <shane@hathawaymix.org> wrote :

> The best way I found to trigger the spurious interrupt was to try to
> "apt-get install" many packages at once.  The download would succeed,
> but the guest would freeze partway through the install.

That makes me think, recently I did an 'apt-get dist-upgrade' on about
10 UMLs at the same time and many of them segfaulted.  UMLs are 2.6.26
and host is Fedora 8 32 bits with 1 GB RAM.  UMLS have their memory set
at 128 MB.  I figured I was pushing a bit, so I did not took notes and
ended up rebooting the host to get a clean slate.

Al

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2009-01-20 11:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20  3:53 [uml-devel] [Patch] UML: spurious interrupt freezes guest Shane Hathaway
2009-01-20  3:53 ` Shane Hathaway
2009-01-20  4:59 ` [uml-devel] " Jeff Dike
2009-01-20  4:59   ` Jeff Dike
2009-01-20  5:32   ` [uml-devel] " Shane Hathaway
2009-01-20  5:32     ` Shane Hathaway
2009-01-20 11:29     ` [uml-devel] " lanas

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.