From: "Mr. Teo En Ming (Zhang Enming)" Subject: Re: Re: [Xen-users] Max. PV and HVM Guests Date: Mon, 9 Nov 2009 20:14:27 +0800 Message-ID: References: <1257685302.5339.11.camel@k2000.jpp.fr> <20091109115458.GF16033@reaktio.net> <20091109120557.GG16033@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1474804269==" Return-path: In-Reply-To: <20091109120557.GG16033@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: jp.pozzi@izzop.net, xen-devel@lists.xensource.com, space.time.universe@gmail.com, xen-users@lists.xensource.com, Robert Dunkley List-Id: xen-devel@lists.xenproject.org --===============1474804269== Content-Type: multipart/alternative; boundary=0016e64ca2a68a019c0477ef2230 --0016e64ca2a68a019c0477ef2230 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What is a good value for dom0_mem if I want to start X server and run GNOME= ? Will 512 MB be too little? --=20 Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com Mobile Phone (Starhub Prepaid): +65-8369-2618 Street: Bedok Reservoir Road Country: Singapore On Mon, Nov 9, 2009 at 8:05 PM, Pasi K=E4rkk=E4inen wrote: > On Mon, Nov 09, 2009 at 08:01:00PM +0800, Mr. Teo En Ming (Zhang Enming) > wrote: > > No, I didn't limit dom0 memory in grub.conf. > > > > You should. > > If dom0 has all the memory at boot time, you need to balloon down dom0 > memory every time you create a new guest - this can (and will) cause > problems with the dom0 linux kernel. > > Linux calculates some internal parameters/buffers/values based on the > _boot time_ amount of memory. And when the amount of memory goes down to > only a small fraction of that while creating new guests bad things can > happen.. > > It still shouldn't crash though.. I bet your problem will get fixed when > you limit the dom0 memory to say dom0_mem=3D512M and reboot. > > -- Pasi > > > Here's my xm info output after I have shutdown all the virtual > machines. > > > > [root@fedora11-x86-64-host ~]# xm list > > Name ID Mem VCPUs Stat= e > > Time(s) > > Domain-0 0 2812 2 r----= - > > 3242.5 > > [root@fedora11-x86-64-host ~]# xm info > > host : fedora11-x86-64-host > > release : 2.6.30-rc3-enming.teo-tip > > version : #1 SMP Wed Aug 19 23:14:15 SGT 2009 > > machine : x86_64 > > nr_cpus : 2 > > nr_nodes : 1 > > cores_per_socket : 2 > > threads_per_core : 1 > > cpu_mhz : 2800 > > hw_caps : > > > bfebfbff:20100800:00000000:00000140:0400e3bd:00000000:00000001:00000000 > > virt_caps : hvm hvm_directio > > total_memory : 6039 > > free_memory : 3124 > > node_to_cpu : node0:0-1 > > node_to_memory : node0:3124 > > xen_major : 3 > > xen_minor : 5 > > xen_extra : -unstable > > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_= 32 > > hvm-3.0-x86_32p hvm-3.0-x86_64 > > xen_scheduler : credit > > xen_pagesize : 4096 > > platform_params : virt_start=3D0xffff800000000000 > > xen_changeset : Tue Sep 01 11:34:31 2009 +0100 > 20143:a7de5bd776ca > > xen_commandline : iommu=3D1 > > cc_compiler : gcc version 4.4.1 20090725 (Red Hat 4.4.1-2= ) > > (GCC) > > cc_compile_by : root > > cc_compile_domain : (none) > > cc_compile_date : Thu Sep 10 07:01:13 SGT 2009 > > xend_config_format : 4 > > > > -- > > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanic= al > > Engineering) > > Alma Maters: > > (1) Singapore Polytechnic > > (2) National University of Singapore > > My Primary Blog: [1]http://teo-en-ming-aka-zhang-enming.blogspot.com > > My Secondary Blog: [2]http://enmingteo.wordpress.com > > My Youtube videos: [3]http://www.youtube.com/user/enmingteo > > Email: [4]space.time.universe@gmail.com > > Mobile Phone (Starhub Prepaid): +65-8369-2618 > > Street: Bedok Reservoir Road > > Country: Singapore > > > > On Mon, Nov 9, 2009 at 7:54 PM, Pasi K=E4rkk=E4inen <[5]pasik@iki.fi= > > wrote: > > > > On Mon, Nov 09, 2009 at 06:52:37PM +0800, Mr. Teo En Ming (Zhang > Enming) > > wrote: > > > Hi, > > > > > > Please watch this 4-minute video at > > > [1][6]http://www.youtube.com/watch?v=3DLbLaPpwNAx4 > > > > > > I have only started 3 HVM Linux guests with 1 GB ram each. I > can't > > start > > > the 4th HVM guest. If I attempt to start the 4th instance, it > will > > crash > > > dom0. > > > > > > Are there anything in the xm dmesg output that could explain > the > > low limit > > > to the number of VMs that I could start before dom0 becomes > > unresponsive? > > > > > > > Have you limited dom0 memory (by specifying dom0_mem=3DXMB option = in > > grub.conf for xen.gz) ? > > > > What does "xm info" say about free memory before starting any > guests? > > -- Pasi > > > > References > > > > Visible links > > 1. http://teo-en-ming-aka-zhang-enming.blogspot.com/ > > 2. http://enmingteo.wordpress.com/ > > 3. http://www.youtube.com/user/enmingteo > > 4. mailto:space.time.universe@gmail.com > > 5. mailto:pasik@iki.fi > > 6. http://www.youtube.com/watch?v=3DLbLaPpwNAx4 > --0016e64ca2a68a019c0477ef2230 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What is a good value for dom0_mem if I want to start X server and run GNOME= ? Will 512 MB be too little?

--
Mr. Teo En Ming (Zhang Enming) D= ip(Mechatronics) BEng(Hons)(Mechanical Engineering)
Alma Maters:
(1) = Singapore Polytechnic
(2) National University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enm= ing.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http:/= /www.youtube.com/user/enmingteo
Email: space.time.universe@gmail.com
Mobile Phone (Star= hub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

On Mon, Nov 9, 2009 at 8:05 PM, Pasi K=E4rkk=E4inen <pasik@iki.fi> wrote:=
On Mon, Nov 09, 2009 at 08:01:00PM +0800, Mr. Teo En Ming= (Zhang Enming) wrote:
> =A0 =A0No, I didn't limit dom0 memory in grub.conf.
>

You should.

If dom0 has all the memory at boot time, you need to balloon down dom0
memory every time you create a new guest - this can (and will) cause
problems with the dom0 linux kernel.

Linux calculates some internal parameters/buffers/values based on the
_boot time_ amount of memory. And when the amount of memory goes down to only a small fraction of that while creating new guests bad things can
happen..

It still shouldn't crash though.. I bet your problem will get fixed whe= n
you limit the dom0 memory to say dom0_mem=3D512M and reboot.

-- Pasi

> =A0 =A0Here's my xm info output after I have shutdown all the virt= ual machines.
>
> =A0 =A0[root@fedora11-x86-64-host ~]# xm list
> =A0 =A0Name =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0ID =A0 Mem VCPUs =A0 =A0 =A0State
> =A0 =A0Time(s)
> =A0 =A0Domain-0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 0 =A02812 =A0 =A0 2 =A0 =A0 r-----
> =A0 =A03242.5
> =A0 =A0[root@fedora11-x86-64-host ~]# xm info
> =A0 =A0host =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 : fedora11-x86-64-host=
> =A0 =A0release =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 2.6.30-rc3-enming.teo-= tip
> =A0 =A0version =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: #1 SMP Wed Aug 19 23:1= 4:15 SGT 2009
> =A0 =A0machine =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: x86_64
> =A0 =A0nr_cpus =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 2
> =A0 =A0nr_nodes =A0 =A0 =A0 =A0 =A0 =A0 =A0 : 1
> =A0 =A0cores_per_socket =A0 =A0 =A0 : 2
> =A0 =A0threads_per_core =A0 =A0 =A0 : 1
> =A0 =A0cpu_mhz =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 2800
> =A0 =A0hw_caps =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0:
> =A0 =A0bfebfbff:20100800:00000000:00000140:0400e3bd:00000000:00000001:= 00000000
> =A0 =A0virt_caps =A0 =A0 =A0 =A0 =A0 =A0 =A0: hvm hvm_directio
> =A0 =A0total_memory =A0 =A0 =A0 =A0 =A0 : 6039
> =A0 =A0free_memory =A0 =A0 =A0 =A0 =A0 =A0: 3124
> =A0 =A0node_to_cpu =A0 =A0 =A0 =A0 =A0 =A0: node0:0-1
> =A0 =A0node_to_memory =A0 =A0 =A0 =A0 : node0:3124
> =A0 =A0xen_major =A0 =A0 =A0 =A0 =A0 =A0 =A0: 3
> =A0 =A0xen_minor =A0 =A0 =A0 =A0 =A0 =A0 =A0: 5
> =A0 =A0xen_extra =A0 =A0 =A0 =A0 =A0 =A0 =A0: -unstable
> =A0 =A0xen_caps =A0 =A0 =A0 =A0 =A0 =A0 =A0 : xen-3.0-x86_64 xen-3.0-x= 86_32p hvm-3.0-x86_32
> =A0 =A0hvm-3.0-x86_32p hvm-3.0-x86_64
> =A0 =A0xen_scheduler =A0 =A0 =A0 =A0 =A0: credit
> =A0 =A0xen_pagesize =A0 =A0 =A0 =A0 =A0 : 4096
> =A0 =A0platform_params =A0 =A0 =A0 =A0: virt_start=3D0xffff80000000000= 0
> =A0 =A0xen_changeset =A0 =A0 =A0 =A0 =A0: Tue Sep 01 11:34:31 2009 +01= 00 20143:a7de5bd776ca
> =A0 =A0xen_commandline =A0 =A0 =A0 =A0: iommu=3D1
> =A0 =A0cc_compiler =A0 =A0 =A0 =A0 =A0 =A0: gcc version 4.4.1 20090725= (Red Hat 4.4.1-2)
> =A0 =A0(GCC)
> =A0 =A0cc_compile_by =A0 =A0 =A0 =A0 =A0: root
> =A0 =A0cc_compile_domain =A0 =A0 =A0: (none)
> =A0 =A0cc_compile_date =A0 =A0 =A0 =A0: Thu Sep 10 07:01:13 SGT 2009 > =A0 =A0xend_config_format =A0 =A0 : 4
>
> =A0 =A0--
> =A0 =A0Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mec= hanical
> =A0 =A0Engineering)
> =A0 =A0Alma Maters:
> =A0 =A0(1) Singapore Polytechnic
> =A0 =A0(2) National University of Singapore
> =A0 =A0My Primary Blog: [1]http://teo-en-ming-aka-zhan= g-enming.blogspot.com
> =A0 =A0My Secondary Blog: [2]http://enmingteo.wordpress.com
> =A0 =A0My Youtube videos: [3]http://www.youtube.com/user/enmingteo
> =A0 =A0Email: [4]spac= e.time.universe@gmail.com
> =A0 =A0Mobile Phone (Starhub Prepaid): +65-8369-2618=
> =A0 =A0Street: Bedok Reservoir Road
> =A0 =A0Country: Singapore
>
> =A0 =A0On Mon, Nov 9, 2009 at 7:54 PM, Pasi K= =E4rkk=E4inen <[5]pasik@iki.fi> w= rote:
>
> =A0 =A0 =A0On Mon, Nov 09, 2009 at 06:52:37PM +0800, Mr. Teo En Ming (= Zhang Enming)
> =A0 =A0 =A0wrote:
> =A0 =A0 =A0> =A0 =A0Hi,
> =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 =A0Please watch this 4-minute video at
> =A0 =A0 =A0> =A0 =A0[1][6]http://www.youtube.com/watch?v=3DLb= LaPpwNAx4
> =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 =A0I have only started 3 HVM Linux guests with 1 G= B ram each. I can't
> =A0 =A0 =A0start
> =A0 =A0 =A0> =A0 =A0the 4th HVM guest. If I attempt to start the 4t= h instance, it will
> =A0 =A0 =A0crash
> =A0 =A0 =A0> =A0 =A0dom0.
> =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 =A0Are there anything in the xm dmesg output that = could explain the
> =A0 =A0 =A0low limit
> =A0 =A0 =A0> =A0 =A0to the number of VMs that I could start before = dom0 becomes
> =A0 =A0 =A0unresponsive?
> =A0 =A0 =A0>
>
> =A0 =A0 =A0Have you limited dom0 memory (by specifying dom0_mem=3DXMB = option in
> =A0 =A0 =A0grub.conf for xen.gz) ?
>
> =A0 =A0 =A0What does "xm info" say about free memory before = starting any guests?
> =A0 =A0 =A0-- Pasi
>
> References
>
> =A0 =A0Visible links
> =A0 =A01. http://teo-en-ming-aka-zhang-enming.blogspot.com/ > =A0 =A02. http://enmingteo.wordpress.com/
> =A0 =A03. http://www.youtube.com/user/enmingteo
> =A0 =A04. mailto:spac= e.time.universe@gmail.com
> =A0 =A05. mailto:pasik@iki.fi
> =A0 =A06. http://www.youtube.com/watch?v=3DLbLaPpwNAx4




--0016e64ca2a68a019c0477ef2230-- --===============1474804269== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1474804269==--