From: =?ISO-8859-1?Q?Lu=EDs?= Silva Subject: [Fwd: [Xen-users] Dom0 and memory] Date: Sat, 26 Jun 2010 12:24:24 +0100 Message-ID: <1277551464.2262.6.camel@luis-port> Reply-To: luis.silva@axiomasoft.pt Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0049634196==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0049634196== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-0YtKbW//KOAKXIrItchK" --=-0YtKbW//KOAKXIrItchK Content-Type: multipart/alternative; boundary="=-RZStKLrl5NyGuDgC/gQO" --=-RZStKLrl5NyGuDgC/gQO Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I posted this email on xen-users a while back and I got no answer. I thought it could be a configuration problem and didn't want to cause unnecessary noise on xen-devel... As no aswers came and I found no documentation supporting this behaviour I'm posting now to xen-devel. Xen was updated to 4.0.1-rc3 and the problem stayed the same. Can anyone help me? Thanks, Lu=C3=ADs -------- Forwarded Message -------- > From: Lu=C3=ADs Silva > Reply-to: luis.silva@axiomasoft.pt > To: Xen-users@lists.xensource.com > Subject: [Xen-users] Dom0 and memory > Date: Sat, 19 Jun 2010 12:01:53 +0100 >=20 > Hello, >=20 > I'm trying to use Xen (4.0.1-rc2 with 2.6.32.x paravirt kernel) in a > desktop machine. This machine has 4G ram, and xen gets 3884MB > available, acording to xm info. Acording to xm list, dom0 gets 3884MB > of memory, but dom0 kernel only sees about 2724MB. dom0_mem is unset > at boot, but if set at 4G or 3884M the problem remains the same. As > this is a desktop machine I would like dom0 to have the maximum > available memory at boot and then balloon out as necessary. How can I > achieve this? >=20 > Thanks in advance, > Lu=C3=ADs >=20 >=20 > xm info > host : luis-port > release : 2.6.32.15-1-pvops > version : #5 SMP PREEMPT Wed Jun 16 16:56:00 WEST 2010 > machine : x86_64 > nr_cpus : 4 > nr_nodes : 1 > cores_per_socket : 2 > threads_per_core : 2 > cpu_mhz : 2660 > hw_caps : bfebfbff:28100800:00000000:00001f40:0298e3ff:000= 00000:00000001:00000000 > virt_caps : hvm hvm_directio > total_memory : 3884 > free_memory : 933 > node_to_cpu : node0:0-3 > node_to_memory : node0:933 > node_to_dma32_mem : node0:861 > max_node_id : 0 > xen_major : 4 > xen_minor : 0 > xen_extra : .1-rc2 > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hv= m-3.0-x86_32p hvm-3.0-x86_64=20 > xen_scheduler : credit > xen_pagesize : 4096 > platform_params : virt_start=3D0xffff800000000000 > xen_changeset : unavailable > xen_commandline :=20 > cc_compiler : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)=20 > cc_compile_by : buildd > cc_compile_domain : ppa > cc_compile_date : Thu Jun 10 16:58:29 UTC 2010 > xend_config_format : 4 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 > xm list=20 > Name ID Mem VCPUs State T= ime(s) > Domain-0 0 3884 4 r----- = 771.8 > srv-001-ub1004 256 1 = 0.0 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 > xm list -l > (domain > (domid 0) > (cpu_weight 256) > (cpu_cap 0) > (bootloader ) > (on_crash restart) > (uuid 00000000-0000-0000-0000-000000000000) > (bootloader_args ) > (vcpus 4) > (description ) > (name Domain-0) > (cpus (() () () ())) > (on_reboot restart) > (on_poweroff destroy) > (maxmem 16777215) > (memory 3884) > (shadow_memory 0) > (features ) > (on_xend_start ignore) > (on_xend_stop ignore) > (cpu_time 776.139622245) > (online_vcpus 4) > (image (linux (kernel ) (superpages 0) (nomigrate 0) (tsc_mode 0))) > (status 2) > (state r-----) > ) > (domain > (cpu_weight 256) > (cpu_cap 0) > (bootloader /usr/bin/pygrub) > (on_crash destroy) > (uuid 2d701982-75c1-023b-c1ca-534363463e9e) > (bootloader_args ) > (vcpus 1) > (description ) > (name srv-001-ub1004) > (cpus (())) > (on_reboot restart) > (on_poweroff destroy) > (maxmem 256) > (memory 256) > (shadow_memory 0) > (features ) > (on_xend_start ignore) > (on_xend_stop ignore) > (start_time 1276883490.07) > (image > (linux > (kernel ) > (superpages 0) > (pci ()) > (nomigrate 0) > (tsc_mode 0) > (device_model /usr/lib/xen/bin/qemu-dm) > (notes > (HV_START_LOW 18446603336221196288) > (FEATURES '!writable_page_tables|pae_pgdir_above_4gb') > (VIRT_BASE 18446744071562067968) > (GUEST_VERSION 2.6) > (PADDR_OFFSET 0) > (GUEST_OS linux) > (HYPERCALL_PAGE 18446744071578882048) > (LOADER generic) > (SUSPEND_CANCEL 1) > (PAE_MODE yes) > (ENTRY 18446744071587734016) > (XEN_VERSION xen-3.0) > ) > ) > ) > (status 0) > (device > (tap2 > (protocol x86_64-abi) > (uuid 7d542bc6-8a64-6c06-881f-e03d8bbf75c3) > (bootable 1) > (dev xvda:disk) > (uname tap:tapdisk:aio:/var/lib/libvirt/images/srv-001-ub1004= .img) > (mode w) > (backend 0) > ) > ) > (device > (vif > (bridge virbr0) > (mac 00:16:36:47:57:87) > (backend 0) > (uuid 9682f5ef-382c-1415-3458-516fed1f0a8e) > (script /etc/xen/scripts/vif-bridge) > ) > ) > (device (vkbd (uuid 0ffbdeb0-5c30-3da6-27de-1724f6a55776) (backend 0)= )) > (device > (vfb > (vncunused 0) > (vnc 1) > (uuid e7a111fa-8455-a18f-f30f-c0a4970da21b) > (vnclisten 127.0.0.1) > (vncdisplay 1) > (keymap pt) > ) > ) > ) >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 > cat /proc/meminfo=20 > MemTotal: 2789504 kB > MemFree: 28356 kB > Buffers: 12064 kB > Cached: 720924 kB > SwapCached: 2264 kB > Active: 1818904 kB > Inactive: 643364 kB > Active(anon): 1476156 kB > Inactive(anon): 371192 kB > Active(file): 342748 kB > Inactive(file): 272172 kB > Unevictable: 64 kB > Mlocked: 64 kB > SwapTotal: 3999736 kB > SwapFree: 3986772 kB > Dirty: 8 kB > Writeback: 0 kB > AnonPages: 1727548 kB > Mapped: 103612 kB > Shmem: 118064 kB > Slab: 54860 kB > SReclaimable: 26128 kB > SUnreclaim: 28732 kB > KernelStack: 2768 kB > PageTables: 26524 kB > NFS_Unstable: 0 kB > Bounce: 0 kB > WritebackTmp: 0 kB > CommitLimit: 5394488 kB > Committed_AS: 1820704 kB > VmallocTotal: 34359738367 kB > VmallocUsed: 560132 kB > VmallocChunk: 34359176696 kB > HardwareCorrupted: 0 kB > HugePages_Total: 0 > HugePages_Free: 0 > HugePages_Rsvd: 0 > HugePages_Surp: 0 > Hugepagesize: 2048 kB > DirectMap4k: 2798464 kB > DirectMap2M: 0 kB >=20 >=20 >=20 >=20 > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users --=-RZStKLrl5NyGuDgC/gQO Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello,

I posted this email on xen-users a while back and I got no answer. I though= t it could be a configuration problem and didn't want to cause unnecessary = noise on xen-devel...

As no aswers came and I found no documentation supporting this behaviour I'= m posting now to xen-devel. Xen was updated to 4.0.1-rc3 and the problem st= ayed the same.

Can anyone help me?

Thanks,
Luís

-------- Forwarded Message --------
From: Luís Silva <luis.silva@axio= masoft.pt>
Reply-to: luis.silva@axiomasoft.pt
To: Xen-users@l= ists.xensource.com
Subject: [Xen-users] Dom0 and memory
Date: Sat, 19 Jun 2010 12:01:53 +0100

Hello,

I'm trying to use Xen (4.0.1-rc2 with 2.6.32.x paravirt kernel) in a de= sktop machine. This machine has 4G ram, and xen gets 3884MB available, acor= ding to xm info. Acording to xm list, dom0 gets 3884MB of memory, but dom0 = kernel only sees about 2724MB. dom0_mem is unset at boot, but if set at 4G = or 3884M the problem remains the same. As this is a desktop machine I would= like dom0 to have the maximum available memory at boot and then balloon ou= t as necessary. How can I achieve this?

Thanks in advance,
Luís

xm info
host            =
;       : luis-port
release           &n=
bsp;    : 2.6.32.15-1-pvops
version           &n=
bsp;    : #5 SMP PREEMPT Wed Jun 16 16:56:00 WEST 2010
machine           &n=
bsp;    : x86_64
nr_cpus           &n=
bsp;    : 4
nr_nodes           &=
nbsp;   : 1
cores_per_socket       : 2
threads_per_core       : 2
cpu_mhz           &n=
bsp;    : 2660
hw_caps           &n=
bsp;    : bfebfbff:28100800:00000000:00001f40:0298e3ff:00000=
000:00000001:00000000
virt_caps           =
   : hvm hvm_directio
total_memory           : =
3884
free_memory          &nbs=
p; : 933
node_to_cpu          &nbs=
p; : node0:0-3
node_to_memory         : node0:933
node_to_dma32_mem      : node0:861
max_node_id          &nbs=
p; : 0
xen_major           =
   : 4
xen_minor           =
   : 0
xen_extra           =
   : .1-rc2
xen_caps           &=
nbsp;   : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x=
86_32p hvm-3.0-x86_64=20
xen_scheduler          : credi=
t
xen_pagesize           : =
4096
platform_params        : virt_start=3D0x=
ffff800000000000
xen_changeset          : unava=
ilable
xen_commandline        :=20
cc_compiler          &nbs=
p; : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)=20
cc_compile_by          : build=
d
cc_compile_domain      : ppa
cc_compile_date        : Thu Jun 10 16:5=
8:29 UTC 2010
xend_config_format     : 4

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

xm list=20
Name            =
;            &n=
bsp;            =
;   ID   Mem VCPUs      State&=
nbsp;  Time(s)
Domain-0           &=
nbsp;           &nbs=
p;             =
0  3884     4     r----- =
   771.8
srv-001-ub1004          &=
nbsp;           &nbs=
p;            256&nb=
sp;    1        &nbs=
p;        0.0

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

xm list -l
(domain
    (domid 0)
    (cpu_weight 256)
    (cpu_cap 0)
    (bootloader )
    (on_crash restart)
    (uuid 00000000-0000-0000-0000-000000000000)
    (bootloader_args )
    (vcpus 4)
    (description )
    (name Domain-0)
    (cpus (() () () ()))
    (on_reboot restart)
    (on_poweroff destroy)
    (maxmem 16777215)
    (memory 3884)
    (shadow_memory 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (cpu_time 776.139622245)
    (online_vcpus 4)
    (image (linux (kernel ) (superpages 0) (nomigrate 0) (ts=
c_mode 0)))
    (status 2)
    (state r-----)
)
(domain
    (cpu_weight 256)
    (cpu_cap 0)
    (bootloader /usr/bin/pygrub)
    (on_crash destroy)
    (uuid 2d701982-75c1-023b-c1ca-534363463e9e)
    (bootloader_args )
    (vcpus 1)
    (description )
    (name srv-001-ub1004)
    (cpus (()))
    (on_reboot restart)
    (on_poweroff destroy)
    (maxmem 256)
    (memory 256)
    (shadow_memory 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (start_time 1276883490.07)
    (image
        (linux
            (kernel =
)
            (superpa=
ges 0)
            (pci ())
            (nomigra=
te 0)
            (tsc_mod=
e 0)
            (device_=
model /usr/lib/xen/bin/qemu-dm)
            (notes
            &nb=
sp;   (HV_START_LOW 18446603336221196288)
            &nb=
sp;   (FEATURES '!writable_page_tables|pae_pgdir_above_4gb')
            &nb=
sp;   (VIRT_BASE 18446744071562067968)
            &nb=
sp;   (GUEST_VERSION 2.6)
            &nb=
sp;   (PADDR_OFFSET 0)
            &nb=
sp;   (GUEST_OS linux)
            &nb=
sp;   (HYPERCALL_PAGE 18446744071578882048)
            &nb=
sp;   (LOADER generic)
            &nb=
sp;   (SUSPEND_CANCEL 1)
            &nb=
sp;   (PAE_MODE yes)
            &nb=
sp;   (ENTRY 18446744071587734016)
            &nb=
sp;   (XEN_VERSION xen-3.0)
            )
        )
    )
    (status 0)
    (device
        (tap2
            (protoco=
l x86_64-abi)
            (uuid 7d=
542bc6-8a64-6c06-881f-e03d8bbf75c3)
            (bootabl=
e 1)
            (dev xvd=
a:disk)
            (uname t=
ap:tapdisk:aio:/var/lib/libvirt/images/srv-001-ub1004.img)
            (mode w)
            (backend=
 0)
        )
    )
    (device
        (vif
            (bridge =
virbr0)
            (mac 00:=
16:36:47:57:87)
            (backend=
 0)
            (uuid 96=
82f5ef-382c-1415-3458-516fed1f0a8e)
            (script =
/etc/xen/scripts/vif-bridge)
        )
    )
    (device (vkbd (uuid 0ffbdeb0-5c30-3da6-27de-1724f6a55776=
) (backend 0)))
    (device
        (vfb
            (vncunus=
ed 0)
            (vnc 1)
            (uuid e7=
a111fa-8455-a18f-f30f-c0a4970da21b)
            (vnclist=
en 127.0.0.1)
            (vncdisp=
lay 1)
            (keymap =
pt)
        )
    )
)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

cat /proc/meminfo=20
MemTotal:        2789504 kB
MemFree:           28356 =
kB
Buffers:           12064 =
kB
Cached:           720924 =
kB
SwapCached:         2264 kB
Active:          1818904 kB
Inactive:         643364 kB
Active(anon):    1476156 kB
Inactive(anon):   371192 kB
Active(file):     342748 kB
Inactive(file):   272172 kB
Unevictable:          64 kB
Mlocked:           &=
nbsp;  64 kB
SwapTotal:       3999736 kB
SwapFree:        3986772 kB
Dirty:           &nb=
sp;     8 kB
Writeback:           =
;  0 kB
AnonPages:       1727548 kB
Mapped:           103612 =
kB
Shmem:            11=
8064 kB
Slab:           &nbs=
p;  54860 kB
SReclaimable:      26128 kB
SUnreclaim:        28732 kB
KernelStack:        2768 kB
PageTables:        26524 kB
NFS_Unstable:          0 kB
Bounce:           &n=
bsp;    0 kB
WritebackTmp:          0 kB
CommitLimit:     5394488 kB
Committed_AS:    1820704 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      560132 kB
VmallocChunk:   34359176696 kB
HardwareCorrupted:     0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:     2798464 kB
DirectMap2M:           0 =
kB


_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.=
com
http://lists.xensource.com=
/xen-users

--=-RZStKLrl5NyGuDgC/gQO-- --=-0YtKbW//KOAKXIrItchK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkwl42UACgkQXSU0BM8MHj8HVQCglkL0AX2maNZqg+2KctCx0Bun nYYAn2qGLN63b5sRrRMmtat1jiw+q5jK =JgJY -----END PGP SIGNATURE----- --=-0YtKbW//KOAKXIrItchK-- --===============0049634196== 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 --===============0049634196==--