From: "cloudroot" <cloudroot@sina.com>
To: 'tinnycloud' <tinnycloud@hotmail.com>,
'Dan Magenheimer' <dan.magenheimer@oracle.com>,
'xen devel' <xen-devel@lists.xensource.com>
Cc: george.dunlap@eu.citrix.com
Subject: re: Xen balloon driver discuss
Date: Sat, 27 Nov 2010 14:54:46 +0800 [thread overview]
Message-ID: <003501cb8dff$ffb96c70$ff2c4550$@com> (raw)
In-Reply-To:
[-- Attachment #1.1: Type: text/plain, Size: 6534 bytes --]
Hi Dan:
I have set the benchmark to test balloon driver, but unfortunately
the Xen crashed on memory Panic.
Before I attach the details output from serial port(which takes
time on next run), I am afraid of I might miss something on test
environment.
My dom0 kernel is 2.6.31, pvops.
Well currently there is no driver/xen/balloon.c on this kernel source tree,
so I build the xen-balloon.ko, Xen-platform-pci.ko form
linux-2.6.18.x86_64, and installed in Dom U, which is redhat 5.4.
What I did is put a C program in the each Dom U(total 24 HVM), the
program will allocate the memory and fill it with random string repeatly.
And in dom0, a phthon monitor will collect the meminfo from
xenstore and calculate the target to balloon from Committed_AS.
The panic happens when the program is running in just one Dom.
I am writing to ask whether my balloon driver is out of date, or
where can I get the latest source code,
I've googled a lot, but still have a lot of confusion on those
source tree.
Many thanks.
From: tinnycloud [mailto:tinnycloud@hotmail.com]
Date: 2010.11.23 22:58
TO: 'Dan Magenheimer'; 'xen devel'
CC: 'george.dunlap@eu.citrix.com'
Subject: re: Xen balloon driver discuss
HI Dan:
Appreciate for your presentation in summarizing the memory
overcommit, really vivid and in great help.
Well, I guess recently days the strategy in my mind will fall into
the solution Set C in pdf.
The tmem solution your worked out for memory overcommit is both
efficient and effective.
I guess I will have a try on Linux Guest.
The real situation I have is most of the running VMs on host are
windows. So I had to come up those policies to balance the memory.
Although policies are all workload dependent. Good news is host
workload is configurable, and not very heavy
So I will try to figure out some favorable policy. The policies referred in
pdf are good start for me.
Today, instead of trying to implement "/proc/meminfo" with shared
pages, I hacked the balloon driver to have another
workqueue periodically write meminfo into xenstore through xenbus,
which solve the problem of xenstrore high CPU
utilization problem.
Later I will try to google more on how Citrix does.
Thanks for your help, or do you have any better idea for windows
guest?
Sent: Dan Magenheimer [mailto:dan.magenheimer@oracle.com]
Date: 2010.11.23 1:47
To: MaoXiaoyun; xen devel
CC: george.dunlap@eu.citrix.com
Subject: RE: Xen balloon driver discuss
Xenstore IS slow and you could improve xenballoond performance by only
sending the single CommittedAS value from xenballoond in domU to dom0
instead of all of /proc/meminfo. But you are making an assumption that
getting memory utilization information from domU to dom0 FASTER (e.g. with a
shared page) will provide better ballooning results. I have not found this
to be the case, which is what led to my investigation into self-ballooning,
which led to Transcendent Memory. See the 2010 Xen Summit for more
information.
In your last paragraph below "Regards balloon strategy", the problem is it
is not easy to define "enough memory" and "shortage of memory" within any
guest and almost impossible to define it and effectively load balance across
many guests. See my Linux Plumber's Conference presentation (with complete
speaker notes) here:
http://oss.oracle.com/projects/tmem/dist/documentation/presentations/MemMgmt
VirtEnv-LPC2010-Final.pdf
http://oss.oracle.com/projects/tmem/dist/documentation/presentations/MemMgmt
VirtEnv-LPC2010-SpkNotes.pdf
From: MaoXiaoyun [mailto:tinnycloud@hotmail.com]
Sent: Sunday, November 21, 2010 9:33 PM
To: xen devel
Cc: Dan Magenheimer; george.dunlap@eu.citrix.com
Subject: RE: Xen balloon driver discuss
Since currently /cpu/meminfo is sent to domain 0 via xenstore, which in my
opinoin is slow.
What I want to do is: there is a shared page between domU and dom0, and domU
periodically
update the meminfo into the page, while on the other side dom0 retrive the
updated data for
caculating the target, which is used by guest for balloning.
The problem I met is, currently I don't know how to implement a shared page
between
dom0 and domU.
Would it like dom 0 alloc a unbound event and wait guest to connect, and
transfer date through
grant table?
Or someone has more efficient way?
many thanks.
> From: tinnycloud@hotmail.com
> To: xen-devel@lists.xensource.com
> CC: dan.magenheimer@oracle.com; George.Dunlap@eu.citrix.com
> Subject: Xen balloon driver discuss
> Date: Sun, 21 Nov 2010 14:26:01 +0800
>
> Hi:
> Greeting first.
>
> I was trying to run about 24 HVMS (currently only Linux, later will
> involve Windows) on one physical server with 24GB memory, 16CPUs.
> Each VM is configured with 2GB memory, and I reserved 8GB memory for
> dom0.
> For safety reason, only domain U's memory is allowed to balloon.
>
> Inside domain U, I used xenballooned provide by xensource,
> periodically write /proc/meminfo into xenstore in dom
> 0(/local/domain/did/memory/meminfo).
> And in domain 0, I wrote a python script to read the meminfo, like
> xen provided strategy, use Committed_AS to calculate the domain U balloon
> target.
> The time interval is ! 1 seconds.
>
> Inside each VM, I setup a apache server for test. Well, I'd
> like to say the result is not so good.
> It appears that too much read/write on xenstore, when I give some of
> the stress(by using ab) to guest domains,
> the CPU usage of xenstore is up to 100%. Thus the monitor running in
> dom0 also response quite slowly.
> Also, in ab test, the Committed_AS grows very fast, reach to maxmem
> in short time, but in fact the only a small amount
> of memory guest really need, so I guess there should be some more to
> be taken into consideration for ballooning.
>
> For xenstore issue, I first plan to wrote a C program inside domain
> U to replace xenballoond to see whether the situation
> will be refined. If not, how about set up event channel directly for
> domU and dom0, would it be faster?
>
> Regards balloon strategy, I would do like this, when there ! are
> enough memory , just fulfill the guest balloon request, and when shortage
> of memory, distribute memory evenly on the guests those request
> inflation.
>
> Does anyone have better suggestion, thanks in advance.
>
[-- Attachment #1.2: Type: text/html, Size: 20974 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2010-11-27 6:54 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <SNT0-MC3-F148nSuKiM000aac29@SNT0-MC3-F14.Snt0.hotmail.com>
2010-11-21 6:26 ` Xen balloon driver discuss tinnycloud
2010-11-22 4:33 ` MaoXiaoyun
2010-11-22 17:46 ` Dan Magenheimer
2010-11-23 14:58 ` tinnycloud
2010-11-27 6:54 ` cloudroot [this message]
2010-11-28 2:36 ` Dan Magenheimer
2010-11-29 4:20 ` tinnycloud
2010-11-29 6:34 ` xiaoyun.maoxy
[not found] ` <002b01cb8f8f$852bda10$8f838e30$@maoxy@aliyun-inc.com>
2010-11-29 8:37 ` tinnycloud
2010-11-29 10:09 ` George Dunlap
2010-11-29 10:12 ` George Dunlap
2010-11-29 15:42 ` Dan Magenheimer
2010-11-28 13:00 ` Pasi Kärkkäinen
2010-11-29 6:56 ` Chu Rui
2010-11-29 10:55 ` 答复: [Xen-devel] " tinnycloud
2010-11-29 11:19 ` George Dunlap
2010-11-29 15:41 ` hotmaim
2010-11-30 10:50 ` George Dunlap
2010-11-30 13:58 ` tinnycloud
2010-11-30 16:39 ` Dan Magenheimer
2010-12-01 5:07 ` xiaoyun.maoxy
[not found] ` <00fe01cb9115$98319c80$c894d580$@maoxy@aliyun-inc.com>
2010-12-01 6:29 ` tinnycloud
2011-01-12 14:41 ` strange CPU utilization, could related to credit schedule ? tinnycloud
2011-01-12 16:41 ` George Dunlap
2011-01-13 4:29 ` MaoXiaoyun
2011-01-17 3:52 ` MaoXiaoyun
2011-01-17 10:41 ` George Dunlap
2011-01-17 10:51 ` Re: [Xen-devel] strange CPU utilization, could related to creditschedule ? kim.jin
2011-01-17 10:56 ` George Dunlap
2011-01-17 11:30 ` Re: Re: strange CPU utilization, could related tocreditschedule ? kim.jin
2010-11-30 3:51 ` 答复: [Xen-devel] Xen balloon driver discuss Chu Rui
2010-11-30 11:08 ` George Dunlap
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='003501cb8dff$ffb96c70$ff2c4550$@com' \
--to=cloudroot@sina.com \
--cc=dan.magenheimer@oracle.com \
--cc=george.dunlap@eu.citrix.com \
--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 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.