window 2003 blue screen under IO stress test
Hi James:
Recently we are continue more and more test on window HVM with PV driver installed. We start about 20 HVMs on a single host, and do IO stress test inside HVM.
Well some of the VM hit blue screen in half an hour also. The BSD Code is: KERNEL_DATA_INPAGE_ERROR
STOP: 0x0000007A(0x07B8C38, 0xC07B8C28, 0xF718771C, 0X36DF6860)
or 0x0000007E (0x80000003, 0x80878113, 0xF7912254, 0xF7911F50)
Attached logs is the debug output, you can find the BSD code at the End. Althrough two logs has different BSD code, but they have common abnormal logs like:
12955411748328: XenVbd SCSIOP_MODE_SENSE llbaa = 0, dbd = 0, page_code = 63, allocation_length = 192 12955411748328: XenVbd SCSIOP_MODE_SENSE llbaa = 0, dbd = 0, page_code = 63, allocation_length = 192 12955411752281: XenVbd SCSIOP_MODE_SENSE llbaa = 0, dbd = 0, page_code = 63, allocation_length = 192 12955411752281: XenVbd SCSIOP_MODE_SENSE llbaa = 0, dbd = 0, page_code = 63, allocation_length = 192
and later many XenVbd_HwScsiResetBus.
Could enlighten me what is going on in the VM, does VM read corrupted data
(since we have our on distributed storage), or due to the large IO response in heavy stress.
Thanks for your help.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Question on XenVbd_HwScsiResetBus in PV driver
Hi:
Well, AFAK, There is a KeSwapProcessOrStack thread in Windonws kernel to swap in/out thread
kernel Stack, and it is possible to cause BOSD code 0x77/0x7E, Which means the IO page requestion can not be complete successfully due to disk fail. This is reproduceable by periodically "gdb attach tapdsik" process in dom0, to simulate IO large response, larger than 10s.
In fact, the IO stream from tapdisk is written to our own storage cluster, and it supports
failover, but it takes time, so it means, when failover, the IO is hang from VM side. When this happen, we confront some bluescreens.
Also I've done some experiments, test two scenerios,
1) use current XenVbd_HwScsiResetBus, that is complete IO with SRB_STATUS_BUS_RESET
2) do nothing in XenVbd_HwScsiResetBus
Just use gdb tapdisk to hold IO periodically, it shows that 1) makes higher possibilty blue
screen than 2)(in fact, we have'nt met bluescreen in 2)).
Form the log, I see XenVbd_HwScsiResetBus every 14seconds( 10 Seconds + 4S hold time)
in scenerio 1), but in 2) I just saw a fem of them(less than 10), It looks like the driver call resetbus on a few of times.
So, I have below assumptions or questions:
1) Only some of the IO failure will cause BOSD
2) Do nothing in XenVbd_HwScsiResetBus is relatively good to minimize the bluescreen posibity
3) Well, I still confuse how is XenVbd_HwScsiResetBus called, and why XenVbd_HwScsiResetBus not
called if nothing to be done in XenVbd_HwScsiResetBus.
4) Is it ok do nothing in XenVbd_HwScsiResetBus?
Could you help to clarify? Many thanks.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
RE: Question on XenVbd_HwScsiResetBus in PV driver
Quoted 4 lines
Hi:
Well, AFAK, There is a KeSwapProcessOrStack thread in Windonws
kernel to
Quoted 2 lines
swap in/out thread
kernel Stack, and it is possible to cause BOSD code 0x77/0x7E, Which
means the
Quoted 2 lines
IO page requestion can
not be complete successfully due to disk fail. This is reproduceable
by
Quoted 4 lines
periodically "gdb attach tapdsik"
process in dom0, to simulate IO large response, larger than 10s.In fact, the IO stream from tapdisk is written to our own
storage
Quoted 2 lines
cluster, and it supports
failover, but it takes time, so it means, when failover, the IO is
hang from
Quoted 8 lines
VM side. When this
happen, we confront some bluescreens.Also I've done some experiments, test two scenerios,
1) use currentXenVbd_HwScsiResetBus, that is complete IO withSRB_STATUS_BUS_RESET
2) do nothing inXenVbd_HwScsiResetBus
Just use gdb tapdisk to hold IO periodically, it shows that 1)
makes
Quoted 4 lines
higher possibilty blue
screen than 2)(in fact, we have'nt met bluescreen in 2)).Form the log, I see
XenVbd_HwScsiResetBusevery 14seconds( 10
Seconds +
Quoted 2 lines
4S hold time)
in scenerio 1), but in 2) I just saw a fem of them(less than 10), It
looks
Quoted 6 lines
like the driver call resetbus on a few of times.
So, I have below assumptions or questions:
1) Only some of the IO failure will cause BOSD
2) Do nothing inXenVbd_HwScsiResetBusis relatively good to
minimize
Quoted 2 lines
the bluescreen posibity
3) Well, I still confuse how isXenVbd_HwScsiResetBuscalled, and
why
Quoted 6 lines
XenVbd_HwScsiResetBusnot
called if nothing to be done inXenVbd_HwScsiResetBus.
4) Is it ok do nothing inXenVbd_HwScsiResetBus?Could you help to clarify? Many thanks.
When Windows calls a drivers HwScsiResetBus the driver is supposed to perform the procedure described at
http://msdn.microsoft.com/en-us/library/ff565331%28v=vs.85%29.aspx which is basically to cancel the IO and return all SRB's with a status of SRB_STATUS_BUS_RESET.
It occurs to me that completing the requests while Dom0 still owns the buffers really is the wrong thing to do. Windows might reuse the buffers for something else while Dom0 might still write to them, which may well cause the crash you are seeing.
There really is no mechanism for a DomU to indicate a reset to Dom0, so all we are doing is emulating it. We still have to wait for any outstanding requests. The only alternative would be to close and re-open the device, but that can't be done from within scsiport.
I'll see what needs to be done to fix this bug.
James
RE: Question on XenVbd_HwScsiResetBus in PV driver
Quoted 73 lines
Subject: RE: Question on
XenVbd_HwScsiResetBusin PV driver
Date: Fri, 22 Jul 2011 20:44:34 +1000
From: [email protected]
To: [email protected]; [email protected]Quoted 4 lines
Hi:
Well, AFAK, There is a KeSwapProcessOrStack thread in Windonws
kernel to
Quoted 2 lines
swap in/out thread
kernel Stack, and it is possible to cause BOSD code 0x77/0x7E, Whichmeans the
Quoted 2 lines
IO page requestion can
not be complete successfully due to disk fail. This is reproduceableby
Quoted 4 lines
periodically "gdb attach tapdsik"
process in dom0, to simulate IO large response, larger than 10s.In fact, the IO stream from tapdisk is written to our own
storage
Quoted 2 lines
cluster, and it supports
failover, but it takes time, so it means, when failover, the IO ishang from
Quoted 8 lines
VM side. When this
happen, we confront some bluescreens.Also I've done some experiments, test two scenerios,
1) use currentXenVbd_HwScsiResetBus, that is complete IO withSRB_STATUS_BUS_RESET
2) do nothing inXenVbd_HwScsiResetBus
Just use gdb tapdisk to hold IO periodically, it shows that 1)makes
Quoted 4 lines
higher possibilty blue
screen than 2)(in fact, we have'nt met bluescreen in 2)).Form the log, I see
XenVbd_HwScsiResetBusevery 14seconds( 10Seconds +
Quoted 2 lines
4S hold time)
in scenerio 1), but in 2) I just saw a fem of them(less than 10), Itlooks
Quoted 6 lines
like the driver call resetbus
on a few of times.So, I have below assumptions or questions:
1) Only some of the IO failure will cause BOSD
2) Do nothing inXenVbd_HwScsiResetBusis relatively good tominimize
Quoted 2 lines
the bluescreen posibity
3) Well, I still confuse how isXenVbd_HwScsiResetBuscalled, andwhy
Quoted 6 lines
XenVbd_HwScsiResetBusnot
called if nothing to be done inXenVbd_HwScsiResetBus.
4) Is it ok do nothing inXenVbd_HwScsiResetBus?Could you help to clarify? Many thanks.
When Windows calls a drivers HwScsiResetBus the driver is supposed to perform the procedure described at
http://msdn.microsoft.com/en-us/library/ff565331%28v=vs.85%29.aspx which is basically to cancel the IO and return all SRB's with a status ofSRB_STATUS_BUS_RESET.It occurs to me that completing the requests while Dom0 still owns the buffers really is the wrong thing to do. Windows might reuse the buffers for something else while Dom0 might still write to them, which may well cause the crash you are seeing.
Quoted 4 lines
There really is no mechanism for a DomU to indicate a reset to Dom0, so all we are doing is emulating it. We still have to wait for any outstanding requests. The only alternative would be to close and re-open the device, but that can't be done from within scsiport.
If there really something wrong happen in Dom0 backend, it looks like there is no chance do recover back from DomU side, even re-open the device. Since the new connection would fail too.
So, regards to normal Large IO response, caused by heavy IO load, I think infinite waiting in PV is enough, IO will come back finally.
Quoted 3 lines
I'll see what needs to be done to fix this bug.
James
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel