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>,
	xen devel <xen-devel@lists.xensource.com>
Subject: RE: blue screen in windows balloon driver
Date: Mon, 28 Feb 2011 22:45:37 +1100	[thread overview]
Message-ID: <AEC6C66638C05B468B556EA548C1A77D01C55A2E@trantor> (raw)
In-Reply-To: <BLU157-w7B83FF68CB4CEE8B140C6DADE0@phx.gbl>

> 
> Hi James:
> 
> Unfortunately, We still hit the blue screen on the stress test.
> (Start total 24 HVMS on a single 16core, 24G host,
> each HVM owns 2G Memory, start with memory=512M,
> and inside two eating memory  processes, each of which will each 1G
> memory)
> 
> As I go though the code, I noticed that all memory allocation relates
to
> "ExAllocatePoolWithTag(NonPagedPool,...)", which is from NonePaged
Pool,
> As I know, the NonePagePool memory is the memory could not be paged
out,
> and that is limited, and for the blue screen VMS, I also found the
free
> memory is quite low, only about hundreds KB left.
> 
> So, when memory overcommit, some of the VM will not got enough memory,
> and if  most of its Memory is occupied by eating memory process, then
> ExAllocatePoolWithTag
> will fail, thus caused "NO_PAGES_AVALIABLE" blue screen. Is this
possible?
> 
> Meanwhile, I will have your PVdriver tested to see if blue exists,

Yes you are correct - NonPagedPool memory that will always be available.
Most of my driver code is required at some point to run at
DISPATCH_LEVEL (an IRQ priority level - not sure if you are familiar
with the concept) and at DISPATCH_LEVEL any attempt to access memory
that is paged out to disk will result in a blue screen.

There are overheads with adding more memory to the system. Windows has
to keep track of every page of memory so the more memory you have the
more memory windows has to keep track of, and this in turn uses up more
memory. If you had a system with maxmem=32768 and memory=256 or
something in that order of numbers then maybe Windows needs most of that
256MB to keep track of the 32GB of memory and doesn't have enough left
for itself.

In your original email you said you were using maxmem=2048 and
memory=512 so maybe that isn't the problem.

Looking at the bug check, parameter 1 and 2 are both 0x0002A8FB (about
714MB). This means that there is 714MB of 'dirty' pages to be written to
the pagefile. I think this might happen if you tried to allocate too
much memory too fast and Windows couldn't write it out to disk fast
enough (it could also happen if xenvbd had hung or something). Maybe a
delay is needed when allocating memory, or else some sort of feedback
into the ballooning down code.

I'll post on ntdev for advice.

James

  reply	other threads:[~2011-02-28 11:45 UTC|newest]

Thread overview: 29+ 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 [this message]
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
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
     [not found] <SNT0-MC4-F15TlpsWqi0002f5ac@snt0-mc4-f15.Snt0.hotmail.com>
2010-12-17  3:24 ` Win2003 got blue Screen when ballooning with serial out put: "Iomem mapping not permitted" tinnycloud
2010-12-17  8:53   ` Paul Durrant
2010-12-17  9:20     ` James Harper
2011-02-26 11:20       ` blue screen in windows balloon driver xiaoyun.maoxy
     [not found]       ` <000301cbd5a7$3245a1b0$96d0e510$@maoxy@aliyun-inc.com>
2011-02-26 11:59         ` 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=AEC6C66638C05B468B556EA548C1A77D01C55A2E@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).