All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dan Magenheimer" <dan.magenheimer@oracle.com>
To: Jan Beulich <jbeulich@novell.com>
Cc: Ky Srinivasan <KSrinivasan@novell.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"keir.fraser@eu.citrix.com" <keir.fraser@eu.citrix.com>,
	"garloff@suse.de" <garloff@suse.de>
Subject: RE: [PATCH]	linux/balloon:don't	allow	ballooningdowna domain below a	reasonable limit
Date: Fri, 2 May 2008 16:22:45 -0600	[thread overview]
Message-ID: <20080502162245578.00000041924@djm-pc> (raw)
In-Reply-To: <481B7A01020000780004B919@vpn.id2.novell.com>

> >OK, I think I am understanding it a bit better:
> >the max_pfn part is just adding in some "slop"
> >which is a fraction of total main memory which
> >is growing smaller (roughly logarithmically)
> >as memory grows larger.  I'm still not sure about
> >the magic values in MB2PAGES though... I'm guessing
> >these were gathered somehow experimentally?
> 
> I have to defer to the original author here - Kurt?

Eagerly awaiting... In addition to cutting it
in half, I subtracted another 10MB (in a memory=512
domain) and still didn't see any OOMs, though my
testing was admittedly limited.
 
> >With the "divide result of your algorithm by two",
> >I was able to get thirteen 512MB domains (idle
> >for now) running on a 2GB system.
> 
> You mean ballooned-down domains, right? Perhaps using your
> self-ballooning change? I have to admit I'm a little nervous
> about attempting to overcommit memory in this way in a
> production environment, but as long as this depends on a
> decision of the operator it's certainly a good option to have.

Yes, ballooned-down domains.  In fact with minimum_target()
modified as above (half of algorithm minus 10MB) and
a variable load (repeating { compile xen; sleep(30<rand<541) }),
I got fifteen 512MB domains running on a 2GB systems.

Agreed that there are many environments where this kind
of ballooning would cause performance problems (or worse).
However, there are certainly some environments (and some
competitive situations ;-) where one might choose to
tradeoff performance to run more VMs per physical machine.

Dan

  reply	other threads:[~2008-05-02 22:22 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02 19:30 [PATCH] linux/balloon:don't allow ballooningdowna domain below a reasonable limit Jan Beulich
2008-05-02 22:22 ` Dan Magenheimer [this message]
2008-05-03 13:24   ` Goswin von Brederlow
2008-05-09 20:38 ` Dan Magenheimer
2008-05-13  7:08   ` [PATCH] linux/balloon: don't allow ballooning down a " Jan Beulich
2008-05-15  0:41     ` Dan Magenheimer
  -- strict thread matches above, loose matches on Subject: below --
2008-04-07  7:10 [PATCH] linux/balloon: don't allow ballooningdown " Jan Beulich
2008-04-29 18:35 ` Dan Magenheimer
2008-04-30  6:29   ` [PATCH] linux/balloon: don't allow ballooningdowna " Jan Beulich
2008-04-30 16:04     ` Dan Magenheimer
2008-04-30 23:49       ` Dan Magenheimer
2008-05-01  7:01         ` Keir Fraser
2008-05-01 14:44           ` Dan Magenheimer
2008-05-01 16:36           ` Alan Cox
2008-05-01 16:56             ` Keir Fraser
2008-05-01 20:05               ` Alan Cox
2008-05-01 16:59             ` Dan Magenheimer
2008-05-01 21:18               ` Keir Fraser
2008-05-01 23:03                 ` Alan Cox
2008-05-01 23:27                   ` Dan Magenheimer
2008-05-02  7:05                     ` Keir Fraser
2008-05-03 13:53                       ` Dan Magenheimer
2008-05-03 14:11                         ` Keir Fraser
2008-05-03 19:27                           ` Dan Magenheimer
2008-05-03 17:32                         ` Mark Williamson
2008-05-03 19:43                           ` Dan Magenheimer

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=20080502162245578.00000041924@djm-pc \
    --to=dan.magenheimer@oracle.com \
    --cc=KSrinivasan@novell.com \
    --cc=garloff@suse.de \
    --cc=jbeulich@novell.com \
    --cc=keir.fraser@eu.citrix.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.