From patchwork Fri Dec 10 15:52:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Bader X-Patchwork-Id: 75108 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 1AA8EB7080 for ; Sat, 11 Dec 2010 02:52:58 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1PR5HB-0005YA-7v; Fri, 10 Dec 2010 15:52:53 +0000 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1PR5H9-0005Y0-3U for kernel-team@lists.ubuntu.com; Fri, 10 Dec 2010 15:52:51 +0000 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PR5H8-0006cO-GU for ; Fri, 10 Dec 2010 15:52:50 +0000 Received: from p5b2e5002.dip.t-dialin.net ([91.46.80.2] helo=[192.168.2.121]) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PR5H8-0004zz-Au for kernel-team@lists.ubuntu.com; Fri, 10 Dec 2010 15:52:50 +0000 Message-ID: <4D024CD1.3060407@canonical.com> Date: Fri, 10 Dec 2010 16:52:49 +0100 From: Stefan Bader User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10 MIME-Version: 1.0 To: kernel-team@lists.ubuntu.com Subject: [Mavrick] SRU v2: Set maximum of domain visible memory to 70G References: <1291990249-7934-1-git-send-email-stefan.bader@canonical.com> <4D023EC4.6070602@canonical.com> <4D02411E.6080501@canonical.com> In-Reply-To: <4D02411E.6080501@canonical.com> X-Enigmail-Version: 1.0.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com On 12/10/2010 04:02 PM, Stefan Bader wrote: > On 12/10/2010 03:52 PM, Tim Gardner wrote: >> On 12/10/2010 07:10 AM, Stefan Bader wrote: >>> SRU justification: >>> >>> Impact: The config option XEN_MAX_DOMAIN_MEMORY controls how much memory >>> a Xen instance is seeing. The default for 64bit is 32GB, which is the >>> reason that m2.4xlarge instances only report this amount of memory. >>> >>> Fix: Setting this limit to 70GB as there is a known restriction for >>> t1.micro instances at about 80GB. >>> >>> Testcase: Booted m2.4xlarge with this set to 32GB shows 32GB of memory, >>> when set to 70GB, it correctly reports 68GB. Booted a t1.micro as well >>> to verify this has not caused problems there. >>> >>> From c72705539ee164cdd100570c1340887f81a63d98 Mon Sep 17 00:00:00 2001 >>> From: Stefan Bader >>> Date: Thu, 9 Dec 2010 17:59:36 +0100 >>> Subject: [PATCH] UBUNTU: Set maximum of domain visible memory to 70G >>> >>> BugLink: http://bugs.launchpad.net/bugs/667796 >>> >>> Otherwise the largest instances will be stuck with 32G of memory. 70G >>> was chosen as there are some known problems on small instances around >>> 80GB and the largest instance is using 68GB. >>> >>> Signed-off-by: Stefan Bader >>> --- >>> debian.master/config/config.common.ubuntu | 2 +- >>> 1 files changed, 1 insertions(+), 1 deletions(-) >>> >>> diff --git a/debian.master/config/config.common.ubuntu >>> b/debian.master/config/config.common.ubuntu >>> index b0c486b..ed8ad01 100644 >>> --- a/debian.master/config/config.common.ubuntu >>> +++ b/debian.master/config/config.common.ubuntu >>> @@ -5014,7 +5014,7 @@ CONFIG_XEN_COMPAT_XENFS=y >>> CONFIG_XEN_DEV_EVTCHN=m >>> CONFIG_XEN_FBDEV_FRONTEND=m >>> CONFIG_XEN_KBDDEV_FRONTEND=m >>> -CONFIG_XEN_MAX_DOMAIN_MEMORY=32 >>> +CONFIG_XEN_MAX_DOMAIN_MEMORY=70 >>> CONFIG_XEN_SAVE_RESTORE=y >>> CONFIG_XEN_SCRUB_PAGES=y >>> CONFIG_XEN_SYS_HYPERVISOR=y >> >> Any thoughts on the impact this change will have on -generic and >> -server? Perhaps we should restrict this change to the -ec2 flavour only. >> >> rtg > > As far as I understand it, this value is only used in the xen mmu code when > setting up domU. The comment there says, it is in that case using a page per GB. > But as we have the virtual flavour, it probably makes sense to use it. > > -Stefan > Ok, so here the version 2 which only changes amd64-virtual -Stefan Acked-by: Tim Gardner Acked-by: John Johansen From 8cac300da1d56629ed55789dce9c654ff46a6dcc Mon Sep 17 00:00:00 2001 From: Stefan Bader Date: Thu, 9 Dec 2010 17:59:36 +0100 Subject: [PATCH v2] UBUNTU: Set maximum of domain visible memory to 70G BugLink: http://bugs.launchpad.net/bugs/667796 Otherwise the largest instances will be stuck with 32G of memory. Doing this only to the amd64 virtual flavour to keep cross effects to a minimum. Also, the i386 instances only come with much less memory. Signed-off-by: Stefan Bader --- debian.master/config/amd64/config.flavour.generic | 1 + debian.master/config/amd64/config.flavour.server | 1 + debian.master/config/amd64/config.flavour.virtual | 1 + debian.master/config/config.common.ubuntu | 1 - debian.master/config/i386/config.common.i386 | 1 + 5 files changed, 4 insertions(+), 1 deletions(-) diff --git a/debian.master/config/amd64/config.flavour.generic b/debian.master/config/amd64/config.flavour.generic index 0cda20a..4804006 100644 --- a/debian.master/config/amd64/config.flavour.generic +++ b/debian.master/config/amd64/config.flavour.generic @@ -16,4 +16,5 @@ CONFIG_VIRTIO_NET=m CONFIG_VIRTIO_PCI=m CONFIG_VIRTIO_RING=m CONFIG_XEN_BLKDEV_FRONTEND=m +CONFIG_XEN_MAX_DOMAIN_MEMORY=32 CONFIG_XEN_NETDEV_FRONTEND=m diff --git a/debian.master/config/amd64/config.flavour.server b/debian.master/config/amd64/config.flavour.server index 3fdffb1..b69832c 100644 --- a/debian.master/config/amd64/config.flavour.server +++ b/debian.master/config/amd64/config.flavour.server @@ -16,4 +16,5 @@ CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_RING=y CONFIG_XEN_BLKDEV_FRONTEND=m +CONFIG_XEN_MAX_DOMAIN_MEMORY=32 CONFIG_XEN_NETDEV_FRONTEND=m diff --git a/debian.master/config/amd64/config.flavour.virtual b/debian.master/config/amd64/config.flavour.virtual index 97a6244..217ed9a 100644 --- a/debian.master/config/amd64/config.flavour.virtual +++ b/debian.master/config/amd64/config.flavour.virtual @@ -16,4 +16,5 @@ CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_RING=y CONFIG_XEN_BLKDEV_FRONTEND=y +CONFIG_XEN_MAX_DOMAIN_MEMORY=70 CONFIG_XEN_NETDEV_FRONTEND=y diff --git a/debian.master/config/config.common.ubuntu b/debian.master/config/config.common.ubuntu index b0c486b..93a7fa5 100644 --- a/debian.master/config/config.common.ubuntu +++ b/debian.master/config/config.common.ubuntu @@ -5014,7 +5014,6 @@ CONFIG_XEN_COMPAT_XENFS=y CONFIG_XEN_DEV_EVTCHN=m CONFIG_XEN_FBDEV_FRONTEND=m CONFIG_XEN_KBDDEV_FRONTEND=m -CONFIG_XEN_MAX_DOMAIN_MEMORY=32 CONFIG_XEN_SAVE_RESTORE=y CONFIG_XEN_SCRUB_PAGES=y CONFIG_XEN_SYS_HYPERVISOR=y diff --git a/debian.master/config/i386/config.common.i386 b/debian.master/config/i386/config.common.i386 index 7d65433..41e88bb 100644 --- a/debian.master/config/i386/config.common.i386 +++ b/debian.master/config/i386/config.common.i386 @@ -294,5 +294,6 @@ CONFIG_X86_INTERNODE_CACHE_SHIFT=6 CONFIG_X86_MINIMUM_CPU_FAMILY=5 CONFIG_X86_SPEEDSTEP_LIB=y # CONFIG_X86_X2APIC is not set +CONFIG_XEN_MAX_DOMAIN_MEMORY=32 # CONFIG_ZONE_DMA32 is not set CONFIG_ZONE_DMA_FLAG=1 -- 1.7.0.4