xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: George Shuklin <nge@narod.ru>, Dave Scott <Dave.Scott@eu.citrix.com>
Cc: "'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>,
	"'xen-users@lists.xensource.com'" <xen-users@lists.xensource.com>
Subject: Re: Re: [Xen-users] [XCP]: RC1 of XCP 0.5 available for testing
Date: Tue, 15 Jun 2010 11:18:35 +0100	[thread overview]
Message-ID: <C83D120B.1785A%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <1276525334.4626.11.camel@home.desunote.ru>

On 14/06/2010 15:22, "George Shuklin" <nge@narod.ru> wrote:

> static unsigned long minimum_target(void)
> ...
>         if (max_pfn < MB2PAGES(128))
>                 min_pages = MB2PAGES(8) + (max_pfn >> 1);
>         else if (max_pfn < MB2PAGES(512))
>                 min_pages = MB2PAGES(40) + (max_pfn >> 2);
>         else if (max_pfn < MB2PAGES(2048))
>                 min_pages = MB2PAGES(104) + (max_pfn >> 3);
>         else
>                 min_pages = MB2PAGES(296) + (max_pfn >> 5);
> ...
> 
> I think, those numbers are unreasonable (especially around 2Gb limit).

I never thought putting policy like that in the kernel driver was a good
idea. Its intention is to stop stupid users echoing unrealistic targets into
/proc/xen/balloon. Possibly these checks could be removed, made configurable
on the kernel command line, or only applied to target changes via /proc,
leaving updates via xenstore unchecked.

There's a whole very unproductive argument around this as to whether policy
belongs in a kernel (hard to change, but maybe knows more about the VM),
versus in a higher-level toolstack (easier to change, maybe knows less about
the VM); safety vs flexibility; blah blah blah.

 -- Keir

  reply	other threads:[~2010-06-15 10:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AcsJpIcrHkfzvFFiQgSIbGTkzIZqEA==>
2010-06-11 20:27 ` [XCP]: RC1 of XCP 0.5 available for testing Dave Scott
     [not found]   ` <81A73678E76EA642801C8F2E4823AD21807FFE696B-aFusIB7tbcLeU4JHVX8hdHnr0TU713UqXqFh9Ls21Oc@public.gmane.org>
2010-06-12 21:13     ` Marco Sinhoreli
2010-06-13 19:57       ` [Xen-API] " Dave Scott
2010-06-14 14:22   ` George Shuklin
2010-06-15 10:18     ` Keir Fraser [this message]
2010-06-15 17:54   ` Martinx - ジェームズ
2010-06-18 17:46     ` [Xen-devel] " Marco Sinhoreli
2010-06-18 19:37       ` Dave Scott
2010-06-18 19:55         ` Cristian Vásquez Parga
2010-06-18 21:32         ` Marco Sinhoreli
2010-06-24 10:31   ` Dave Scott
     [not found]     ` <81A73678E76EA642801C8F2E4823AD218080C98A3B-aFusIB7tbcLeU4JHVX8hdHnr0TU713UqXqFh9Ls21Oc@public.gmane.org>
2010-06-30 17:21       ` [XCP]: RC3 (the final one?) " Dave Scott
2010-07-06 20:34         ` [Xen-API] " Boris Quiroz
2010-07-07  0:27         ` [Xen-devel] " Grant McWilliams
2010-07-07  0:31           ` [Xen-users] Re: [XCP]: RC3 (the final one?) of XCP 0.5available " Vern Burke
2010-07-07  5:47             ` I need Vanilla Xen images of major Linux distributions Jimmy Pierre
2010-07-07  7:50               ` [Xen-devel] " Sander Eikelenboom
2010-07-07  8:30                 ` Pasi Kärkkäinen
     [not found]           ` <AANLkTin6mi8T6j7AmXO-xEgp1qEHbYiJt7LfLR23DT-d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-07 10:51             ` [Xen-devel] [XCP]: RC3 (the final one?) of XCP 0.5 available for testing Dave Scott
2010-07-09  4:08               ` dwight at supercomputer.org
     [not found]         ` <54B2EB610B7F1340BB6A0D4CA04A4F10A156DFAD@orsmsx505.amr.corp.intel.com>
     [not found]           ` <81A73678E76EA642801C8F2E4823AD218080C98AA0@LONPMAILBOX01.citrite.net>
     [not found]             ` <81A73678E76EA642801C8F2E4823AD218080C98AA0-aFusIB7tbcLeU4JHVX8hdHnr0TU713UqXqFh9Ls21Oc@public.gmane.org>
2010-07-07 15:42               ` Nakajima, Jun

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=C83D120B.1785A%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=Dave.Scott@eu.citrix.com \
    --cc=nge@narod.ru \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-users@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).