Michal Vyoral
2012-Mar-16 15:16 UTC
A difference between allocated and available memory in Xen virtual guest
Hello, I have allocated 4 GB memory for a guest instance on the Xen hypervisor. But within the instance there is only 2 GB memory available. See the details, the guest is named pr-idm: # Allocated memory on the hypervisor [root@pr-hyp xen]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3846 8 r----- 5382.2 ldms 4 2007 2 -b---- 2658.4 pr-idm 8 4007 2 -b---- 15.1 pr-wstat 3 507 1 -b---- 931.7 test_ldap1 5 775 2 -b---- 127.7 test_ldap2 6 775 2 -b---- 201.5 # Available memory on the guest [root@pr-idm ~]# free total used free shared buffers cached Mem: 2008344 140844 1867500 0 6016 31984 -/+ buffers/cache: 102844 1905500 Swap: 0 0 0 # Distribution of the guest [root@pr-idm ~]# cat /etc/issue CentOS release 6.2 (Final) Kernel \r on an \m # Distribution of the hypervisor [root@pr-hyp xen]# cat /etc/issue CentOS release 5.7 (Final) Kernel \r on an \m # Versions of the Xen packages [root@pr-hyp xen]# rpm -qa | grep xen kernel-xen-2.6.18-274.3.1.el5 kernel-xen-2.6.18-308.1.1.el5 xen-libs-3.0.3-135.el5_8.2 xen-3.0.3-135.el5_8.2 kernel-xen-2.6.18-274.18.1.el5 xen-libs-3.0.3-135.el5_8.2 Could it be some problem with the memory usage? Thank you. Best regards, Michal Vyoral
Pandu Poluan
2012-Mar-16 16:28 UTC
Re: A difference between allocated and available memory in Xen virtual guest
On Mar 16, 2012 10:21 PM, "Michal Vyoral" <michal.vyoral@chmi.cz> wrote:> > Hello, > I have allocated 4 GB memory for a guest instance on the Xen hypervisor. > But within the instance there is only 2 GB memory available. See thedetails,> the guest is named pr-idm: > > # Allocated memory on the hypervisor > [root@pr-hyp xen]# xm list > Name ID Mem(MiB) VCPUs StateTime(s)> Domain-0 0 3846 8 r-----5382.2> ldms 4 2007 2 -b----2658.4> pr-idm 8 4007 2 -b----15.1> pr-wstat 3 507 1 -b----931.7> test_ldap1 5 775 2 -b----127.7> test_ldap2 6 775 2 -b----201.5> > # Available memory on the guest > [root@pr-idm ~]# free > total used free shared buffers cached > Mem: 2008344 140844 1867500 0 6016 31984 > -/+ buffers/cache: 102844 1905500 > Swap: 0 0 0 > > # Distribution of the guest > [root@pr-idm ~]# cat /etc/issue > CentOS release 6.2 (Final) > Kernel \r on an \m > > # Distribution of the hypervisor > [root@pr-hyp xen]# cat /etc/issue > CentOS release 5.7 (Final) > Kernel \r on an \m > > # Versions of the Xen packages > [root@pr-hyp xen]# rpm -qa | grep xen > kernel-xen-2.6.18-274.3.1.el5 > kernel-xen-2.6.18-308.1.1.el5 > xen-libs-3.0.3-135.el5_8.2 > xen-3.0.3-135.el5_8.2 > kernel-xen-2.6.18-274.18.1.el5 > xen-libs-3.0.3-135.el5_8.2 > > Could it be some problem with the memory usage? > Thank you. >Could you post the guest''s uname -a ? Rgds, _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Michal Vyoral
2012-Mar-19 08:29 UTC
Re: A difference between allocated and available memory in Xen virtual guest
Dne pátek 16 března 2012 17:28:30 Pandu Poluan napsal(a):> On Mar 16, 2012 10:21 PM, "Michal Vyoral" <michal.vyoral@chmi.cz> wrote: > > Hello, > > I have allocated 4 GB memory for a guest instance on the Xen hypervisor. > > But within the instance there is only 2 GB memory available. See the > > details, > > > the guest is named pr-idm: > > > > # Allocated memory on the hypervisor > > [root@pr-hyp xen]# xm list > > Name ID Mem(MiB) VCPUs State > > Time(s) > > > Domain-0 0 3846 8 r----- > > 5382.2 > > > ldms 4 2007 2 -b---- > > 2658.4 > > > pr-idm 8 4007 2 -b---- > > 15.1 > > > pr-wstat 3 507 1 -b---- > > 931.7 > > > test_ldap1 5 775 2 -b---- > > 127.7 > > > test_ldap2 6 775 2 -b---- > > 201.5 > > > # Available memory on the guest > > [root@pr-idm ~]# free > > > > total used free shared buffers cached > > > > Mem: 2008344 140844 1867500 0 6016 31984 > > -/+ buffers/cache: 102844 1905500 > > Swap: 0 0 0 > > > > # Distribution of the guest > > [root@pr-idm ~]# cat /etc/issue > > CentOS release 6.2 (Final) > > Kernel \r on an \m > > > > # Distribution of the hypervisor > > [root@pr-hyp xen]# cat /etc/issue > > CentOS release 5.7 (Final) > > Kernel \r on an \m > > > > # Versions of the Xen packages > > [root@pr-hyp xen]# rpm -qa | grep xen > > kernel-xen-2.6.18-274.3.1.el5 > > kernel-xen-2.6.18-308.1.1.el5 > > xen-libs-3.0.3-135.el5_8.2 > > xen-3.0.3-135.el5_8.2 > > kernel-xen-2.6.18-274.18.1.el5 > > xen-libs-3.0.3-135.el5_8.2 > > > > Could it be some problem with the memory usage? > > Thank you. > > Could you post the guest's uname -a ? > > Rgds,[root@pr-idm ~]# uname -a Linux pr-idm.chmi.cz 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux Regards, Michal Vyoral _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Michal Vyoral
2012-Mar-20 09:38 UTC
Re: A difference between allocated and available memory in Xen virtual guest
Hello, I have tested the memory by the memtest86+. The memory seems to be OK. I have created the guest by the command # virt-install --name pr-idm --ram 4000 --disk path=/data/images/pr-idm.img --vnc --hvm --cdrom=/var/local/iso/CentOS-6.0-x86_64-minimal.iso Maybe I had some improper configuration of the Xen. I leave this problem unanswered. Best regards, Michal Vyoral Dne pátek 16 března 2012 16:16:32 Michal Vyoral napsal(a):> Hello, > I have allocated 4 GB memory for a guest instance on the Xen hypervisor. > But within the instance there is only 2 GB memory available. See the > details, the guest is named pr-idm: > > # Allocated memory on the hypervisor > [root@pr-hyp xen]# xm list > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 3846 8 r----- 5382.2 > ldms 4 2007 2 -b---- 2658.4 > pr-idm 8 4007 2 -b---- 15.1 > pr-wstat 3 507 1 -b---- 931.7 > test_ldap1 5 775 2 -b---- 127.7 > test_ldap2 6 775 2 -b---- 201.5 > > # Available memory on the guest > [root@pr-idm ~]# free > total used free shared buffers cached > Mem: 2008344 140844 1867500 0 6016 31984 > -/+ buffers/cache: 102844 1905500 > Swap: 0 0 0 > > # Distribution of the guest > [root@pr-idm ~]# cat /etc/issue > CentOS release 6.2 (Final) > Kernel \r on an \m > > # Distribution of the hypervisor > [root@pr-hyp xen]# cat /etc/issue > CentOS release 5.7 (Final) > Kernel \r on an \m > > # Versions of the Xen packages > [root@pr-hyp xen]# rpm -qa | grep xen > kernel-xen-2.6.18-274.3.1.el5 > kernel-xen-2.6.18-308.1.1.el5 > xen-libs-3.0.3-135.el5_8.2 > xen-3.0.3-135.el5_8.2 > kernel-xen-2.6.18-274.18.1.el5 > xen-libs-3.0.3-135.el5_8.2 > > Could it be some problem with the memory usage? > Thank you. > > Best regards, > Michal Vyoral > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users