From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Bienzeisler Subject: Re: can not use all available memory Date: Fri, 23 Nov 2012 13:06:26 +0100 Message-ID: <50AF66C2.6020402@amd.co.at> References: <50AF5F7E.8030907@amd.co.at> <20121123115254.GU8912@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20121123115254.GU8912@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org I am currently using Xen 4.2.1-pre built from git source. Kernel version = 3.1.1 xl info before: host : susi-0 release : 3.1.1-xen version : #1 SMP Fri Nov 18 10:16:22 CET 2011 machine : x86_64 nr_cpus : 24 max_cpu_id : 31 nr_nodes : 2 cores_per_socket : 6 threads_per_core : 2 cpu_mhz : 3325 hw_caps : = bfebfbff:2c100800:00000000:00003f40:029ee3ff:00000000:00000001:00000000 virt_caps : hvm hvm_directio total_memory : 98291 free_memory : 28969 sharing_freed_memory : 0 sharing_used_memory : 0 free_cpus : 0 xen_major : 4 xen_minor : 2 xen_extra : .1-pre 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 : Wed Nov 14 11:46:07 2012 +0000 25922:8ca6372315f8 xen_commandline : placeholder loglvl=3Dall dom0_mem=3D2048M = dom0_max_vcpus=3D2 dom0_vcpus_pin com2=3D115200 console=3Dcom2,vga cc_compiler : gcc (Debian 4.4.5-8) 4.4.5 cc_compile_by : root cc_compile_domain : wsk.tu-chemnitz.de cc_compile_date : Thu Nov 22 13:50:09 CET 2012 xend_config_format : 4 xl list before: Name ID Mem VCPUs State Time(s) Domain-0 0 2048 2 r----- 3490.0 Squeeze 19 4091 2 -b---- 370.3 win2k8_2_susi6 31 16373 12 -b---- 1619.3 win2k8_susi5 33 32757 12 -b---- 1264.0 win7_susi3 43 4085 4 -b---- 416.0 scientific_susi7 44 8192 16 -b---- 39.9 domU config: name =3D "centos_susi8" uuid =3D "2e87b315-fd5a-dfbc-fe9d-6e121fdfa632" maxmem =3D 16384 memory =3D 16384 vcpus =3D 16 builder =3D "generic" bootloader =3D "pygrub" on_poweroff =3D "destroy" on_reboot =3D "restart" on_crash =3D "restart" vfb =3D [ "type=3Dvnc,vncunused=3D1,keymap=3Dde" ] disk =3D [ "phy:/dev/mapper/storage-SL5,xvda,w" ] vif =3D [ "mac=3D00:50:56:37:61:17,bridge=3Dxenbr0" ] error message after: xl create /root/configs/centos_susi8.cfg Parsing config from /root/configs/centos_susi8.cfg libxl: error: libxl.c:3433:libxl_set_memory_target: new target 0 for = dom0 is below the minimum threshold with 8gigs: xl info after: host : susi-0 release : 3.1.1-xen version : #1 SMP Fri Nov 18 10:16:22 CET 2011 machine : x86_64 nr_cpus : 24 max_cpu_id : 31 nr_nodes : 2 cores_per_socket : 6 threads_per_core : 2 cpu_mhz : 3325 hw_caps : = bfebfbff:2c100800:00000000:00003f40:029ee3ff:00000000:00000001:00000000 virt_caps : hvm hvm_directio total_memory : 98291 free_memory : 20776 sharing_freed_memory : 0 sharing_used_memory : 0 free_cpus : 0 xen_major : 4 xen_minor : 2 xen_extra : .1-pre 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 : Wed Nov 14 11:46:07 2012 +0000 25922:8ca6372315f8 xen_commandline : placeholder loglvl=3Dall dom0_mem=3D2048M = dom0_max_vcpus=3D2 dom0_vcpus_pin com2=3D115200 console=3Dcom2,vga cc_compiler : gcc (Debian 4.4.5-8) 4.4.5 cc_compile_by : root cc_compile_domain : wsk.tu-chemnitz.de cc_compile_date : Thu Nov 22 13:50:09 CET 2012 xend_config_format : 4 xl list after: Name ID Mem VCPUs State Time(s) Domain-0 0 2048 2 r----- 3550.0 Squeeze 19 4091 2 -b---- 381.5 win2k8_2_susi6 31 16373 12 -b---- 1627.1 win2k8_susi5 33 32757 12 ------ 1269.0 win7_susi3 43 4085 4 -b---- 418.7 scientific_susi7 44 8192 16 -b---- 40.3 centos_susi8 46 8192 16 -b---- 4.4 Am 23.11.2012 12:52, schrieb Pasi K=E4rkk=E4inen: > On Fri, Nov 23, 2012 at 12:35:26PM +0100, Alexander Bienzeisler wrote: >> Hello, >> >> i just tried to add a domU with 16 gigs of ram (maxmem =3D 16384, >> memory =3D 16384) with free_memory : 28969 but got an error: >> >> libxl: error: libxl.c:3433:libxl_set_memory_target: new target 0 for >> dom0 is below the minimum threshold >> >> I was able to create it with 8 gigs of ram, ending up with >> free_memory : 20776 >> >> Is there something wrong with memory in 4.2? I can't seem to use all of = it. >> > What exact Xen version are you using? what dom0 kernel version? > > Also please pastebin "xl info" and "xl list" before and after starting th= e VM. > > -- Pasi >