xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "James Harper" <james.harper@bendigoit.com.au>
To: MaoXiaoyun <tinnycloud@hotmail.com>
Cc: xen devel <xen-devel@lists.xensource.com>
Subject: RE: RE: blue screen in windows balloon driver
Date: Wed, 2 Mar 2011 17:28:48 +1100	[thread overview]
Message-ID: <AEC6C66638C05B468B556EA548C1A77D01C55B39@trantor> (raw)
In-Reply-To: <BLU157-w35E669BF00DC04327E4E93DAC00@phx.gbl>

Can you please try again with the following patch attached:

diff -r 34e72b071e51 xenpci/xenpci_dbgprint.c
--- a/xenpci/xenpci_dbgprint.c	Tue Mar 01 23:47:47 2011 +1100
+++ b/xenpci/xenpci_dbgprint.c	Wed Mar 02 17:27:31 2011 +1100
@@ -69,10 +69,23 @@
 static void XenDbgPrint(PCHAR string, ULONG length)
 {
   ULONG i;
+  ULONGLONG j;
+  LARGE_INTEGER current_time;
   //KIRQL old_irql = 0;
 
   while(InterlockedCompareExchange(&debug_print_lock, 1, 0) == 1)
     KeStallExecutionProcessor(1);
+  
+  KeQuerySystemTime(&current_time);
+  current_time.QuadPart /= 10000; /* convert to ms */
+  for (j = 1000000000000000000L; j >= 1; j /= 10)
+    if (current_time.QuadPart / j)
+      break;
+  for (; j >= 1; j /= 10)
+    WRITE_PORT_UCHAR(XEN_IOPORT_LOG, '0' + ((current_time.QuadPart / j)
% 10));
+  WRITE_PORT_UCHAR(XEN_IOPORT_LOG, ':');
+  WRITE_PORT_UCHAR(XEN_IOPORT_LOG, ' ');
+      
   for (i = 0; i < length; i++)
     WRITE_PORT_UCHAR(XEN_IOPORT_LOG, string[i]);
   /* release the lock */

That will put a timestamp on each debug message which will help a lot in
diagnosing the problem.

James

> -----Original Message-----
> From: MaoXiaoyun [mailto:tinnycloud@hotmail.com]
> Sent: Wednesday, 2 March 2011 14:02
> To: James Harper
> Cc: xen devel
> Subject: RE: [Xen-devel] RE: blue screen in windows balloon driver
> 
> 
> Attached is the three logs for crash.
> cp17 & 21 crash on
> Assertion failed: srb != NULL
> 
> thanks.
> 
> > Subject: RE: [Xen-devel] RE: blue screen in windows balloon driver
> > Date: Tue, 1 Mar 2011 23:48:04 +1100
> > From: james.harper@bendigoit.com.au
> > To: tinnycloud@hotmail.com
> > CC: xen-devel@lists.xensource.com
> >
> > I've pushed a possible fix for the reset code for Windows 2000, XP
and
> > 2003. I haven't fixed the Vista/2008/7/2008R2 storport driver yet.
> >
> > I'll see what I can do tomorrow to actually test a scsi reset but I
> > can't reproduce the problem you are seeing on my system. You'll
still
> > see the reset messages in the logs which I think simply indicates
that
> > your system is too loaded to complete the requests in time and
Windows
> > thinks the scsi bus is hung, but this way it might pick itself up
again
> > afterwards. On the other hand it may be that too many timeouts and
> > resets will cause windows to throw its hands in the air and give up
and
> > declare the scsi device offline, in which case there might not be
much
> > we can do.
> >
> > James
> >
> > > -----Original Message-----
> > > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-
> > > bounces@lists.xensource.com] On Behalf Of James Harper
> > > Sent: Tuesday, 1 March 2011 23:36
> > > To: MaoXiaoyun
> > > Cc: xen devel
> > > Subject: [Xen-devel] RE: blue screen in windows balloon driver
> > >
> > > Hold off on testing. I'm fixing up the reset code so that it does
what
> > > Windows wants. I'll post something soon if it doesn't take too
long.
> > >
> > > James
> > >
> > > > -----Original Message-----
> > > > From: MaoXiaoyun [mailto:tinnycloud@hotmail.com]
> > > > Sent: Tuesday, 1 March 2011 23:34
> > > > To: James Harper
> > > > Cc: xen devel
> > > > Subject: RE: blue screen in windows balloon driver
> > > >
> > > > I will have new driver tested.
> > > > Attached is the xentop snapshot.
> > > >
> > > > thanks.
> > > >
> > > > > Subject: RE: blue screen in windows balloon driver
> > > > > Date: Tue, 1 Mar 2011 23:11:14 +1100
> > > > > From: james.harper@bendigoit.com.au
> > > > > To: tinnycloud@hotmail.com
> > > > >
> > > > > >
> > > > > > exe attached, thanks.
> > > > > >
> > > > > > I have three machines, on each sum the
*XenVbd_HwScsiResetBus*
> > > event.
> > > > > > 24 VMS, so
> > > > > > grep XenVbd_HwScsiResetBus qemu-dm-w3.MR_cp* | wc -l
> > > > > >
> > > > > > machine 25: VM easily got crash, the sum is 200
> > > > > > machine 23: VM never got crash, the sum is 10
> > > > > > machine 212: VM never got crash, the sum is 16
> > > > > >
> > > > > > it seems that machine 25 has much more XenVbd_HwScsiResetBus
> > event
> > > > > > than other two machines.
> > > > > >
> > > > > > BTW, when start 24VM concurrently, the starting process is
quite
> > > slow,
> > > > > takes
> > > > > > about 20 minutes more to whole started.
> > > > > >
> > > > > > I commented line 505 in xenpci_pdo.c to avoid timed out.
> > > > > >
> > > > > > 505 //remaining -= thiswait;
> > > > > >
> > > > >
> > > > > It sounds like you are overloading your disk IO bandwidth.
With
> > many
> > > > > DomU's swapping heavily, Dom0 may simply not be able to keep
up
> > with
> > > the
> > > > > IO throughput required resulting in windows thinking that the
scsi
> > > > > device isn't responding. Can you check xentop and see what
sort of
> > > IO
> > > > > operations per second you are getting?
> > > > >
> > > > > I have just pushed a change to dump out the in-flight scsi
> > requests
> > > > > (srb) when HwScsiResetBus is called. Please apply the patch
and
> > send
> > > me
> > > > > the next crash.
> > > > >
> > > > > Thanks
> > > > >
> > > > > James
> > >
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2011-03-02  6:28 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-26 13:01 re:RE: blue screen in windows balloon driver MaoXiaoyun
2011-02-27 11:25 ` James Harper
2011-02-28  4:33   ` MaoXiaoyun
     [not found]     ` <BLU157-w3689F78415A43CC5997DD7DADE0@phx.gbl>
2011-02-28  8:29       ` MaoXiaoyun
2011-02-28 11:45         ` James Harper
2011-02-28 23:45         ` James Harper
2011-03-01  2:37           ` MaoXiaoyun
2011-03-01  5:01             ` James Harper
2011-03-01  5:28               ` MaoXiaoyun
     [not found]                 ` <AEC6C66638C05B468B556EA548C1A77D01C55AC7@trantor>
     [not found]                   ` <BLU157-w655070D9CFE092D78C011DDAC10@phx.gbl>
     [not found]                     ` <AEC6C66638C05B468B556EA548C1A77D01C55ACA@trantor>
2011-03-01 12:34                       ` MaoXiaoyun
2011-03-01 12:35                         ` James Harper
2011-03-01 12:48                           ` James Harper
2011-03-02  3:01                             ` MaoXiaoyun
2011-03-02  6:07                               ` James Harper
2011-03-02  6:44                                 ` MaoXiaoyun
2011-03-02  6:28                               ` James Harper [this message]
2011-03-02  9:23                                 ` MaoXiaoyun
2011-03-02 11:37                                   ` James Harper
     [not found]                                 ` <BLU157-w3311FE380E5D57DD810827DAC00@phx.gbl>
     [not found]                                   ` <AEC6C66638C05B468B556EA548C1A77D01C55B44@trantor>
     [not found]                                     ` <BLU157-w564C179CAAF26EC5D7559DAC00@phx.gbl>
     [not found]                                       ` <AEC6C66638C05B468B556EA548C, , , , , , 1A77D01, C, 5, 5, B, 4, 6@trantor>
     [not found]                                         ` <BLU157-w446CEE35E592FE12EF0180DAC30@phx.gbl>
     [not found]                                           ` <AEC6C66638C05B468B556EA548C1A77D01C55B88@trantor>
     [not found]                                             ` <BLU157-w5382FC5FCC26C6EE8EC18BDAC30@phx.gbl>
     [not found]                                               ` <AEC6C66638C05B468B556EA548C1A77D01C55BB3@trantor>
     [not found]                                                 ` <BLU157-w62FFC7240FD65345A0B3A8DAC30@phx.gbl>
     [not found]                                                   ` <AEC6C66638C05B468B556EA548C1A77D01C55BB7@trantor>
     [not found]                                                     ` <BLU157-w30368B861A4BFFF8A8DB9DDAC30@phx.gbl>
     [not found]                                                       ` <AEC6C66638C05B468B556EA548C1A77D01C55BBA@trantor>
     [not found]                                                         ` <BLU157-w28F0FE7DA9D129E9003136DAC30@phx.gbl>
     [not found]                                                           ` <AEC6C66638C05B468B556EA548C1A77D01C55BBD@trantor>
     [not found]                                                             ` <BLU157-w826F2EDB9C1A7077BA524DAC30@phx.gbl>
     [not found]                                                               ` <019001cbdd41$1ccfbc20$566f3460$@harper@bendigoit.com.au>
2011-03-14  2:24                                                                 ` MaoXiaoyun
2011-03-14  2:57                                                                   ` MaoXiaoyun
2011-03-14  3:52                                                                   ` James Harper
2011-03-14  5:08                                                                   ` James Harper
2011-03-14  5:19                                                                     ` MaoXiaoyun
2011-03-01  7:14               ` MaoXiaoyun
2011-03-01  9:36                 ` James Harper
     [not found]                 ` <AEC6C66638C05B468B556EA548C1A77D01C55AC5@trantor>
2011-03-01  9:51                   ` MaoXiaoyun
2011-03-01  9:54                     ` James Harper

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=AEC6C66638C05B468B556EA548C1A77D01C55B39@trantor \
    --to=james.harper@bendigoit.com.au \
    --cc=tinnycloud@hotmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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;
as well as URLs for NNTP newsgroup(s).