WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-ia64-devel] RHEL5 2.6.18-53.12 IA64 xen kernel memory allocatio

To: RuoMu Hu <huruomu@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] RHEL5 2.6.18-53.12 IA64 xen kernel memory allocation problem
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 21 Oct 2008 18:57:58 +0900
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 21 Oct 2008 02:59:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <91eea9780810210226x55dcc9f7nf2e8342f2fb758af@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <91eea9780810210226x55dcc9f7nf2e8342f2fb758af@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Tue, Oct 21, 2008 at 05:26:30PM +0800, RuoMu Hu wrote:
> Hi!
> 
> I'm running RHEL5 2.6.18-53.1.21 xen IA64 kernel on an IA64 machine with 8GB
> memory .  I can only allocate about 400M memory to dom0.  Then I applied this
> patch to the kernel: http://lists.xensource.com/archives/html/xen-ia64-devel/
> 2007-07/msg00274.html.  Now the kernel can only recognize about 4GB memory. 
> Now, for the patched kernel:

Hi.
Does it help to add dom0_mem=<memori size> to xen boot command line?
At this moment, domain's memory can't be increased beyond the size
which is allocated at boot time. The memory should be allocated from
the time when the domain is created.
(In your case, 4GB is assigned to dom0 at the boot time, so you can't 
increase memory beyond 4GB. If you want to use 8GB for dom0,
8GB must be assigned from the boot time.)

Probably it would help to post your boot log which includes
xen and dom0 kernel.

thanks,

> 
> After reboot, before "xm mem-set Domain 0 8192" and "xm mem-max Domain-0 
> 8192",
> 
> "xm list -l" shows:
> 
> (domain
>     (domid 0)
>     (uuid 00000000-0000-0000-0000-000000000000)
>     (vcpus 1)
>     (cpu_weight 1.0)
>     (memory 4019)
>     (shadow_memory 0)
>     (maxmem 4019)
>     (features )
>     (name Domain-0)
>     (on_poweroff destroy)
>     (on_reboot restart)
>     (on_crash restart)
>     (state r-----)
>     (shutdown_reason poweroff)
>     (cpu_time 33.772744786)
>     (online_vcpus 4)
> )
> 
> "xm info" shows:
> 
> release                : 2.6.18-53.1.21xen
> version                : #1 SMP Mon Oct 20 04:05:54 EDT 2008
> machine                : ia64
> nr_cpus                : 16
> nr_nodes               : 1
> sockets_per_node       : 4
> cores_per_socket       : 2
> threads_per_core       : 2
> cpu_mhz                : 1668
> hw_caps                :
> 00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000:
> total_memory           : 8034
> free_memory            : 3928
> xen_major              : 3
> xen_minor              : 1
> xen_extra              : .0-53.12
> xen_caps               : xen-3.0-ia64 xen-3.0-ia64be hvm-3.0-ia64
> xen_pagesize           : 16384
> platform_params        : virt_start=0xe800000000000000
> xen_changeset          : unavailable
> cc_compiler            : gcc version 4.1.2 20070626 (4.1.2-14)
> cc_compile_by          : root
> cc_compile_domain      : abc.net
> cc_compile_date        : Mon Oct 20 03:25:33 EDT 2008
> xend_config_format     : 2
> 
> "free" shows:
> 
>              total       used       free     shared    buffers     cached
> Mem:       4115456     660816    3454640          0      26656     208832
> -/+ buffers/cache:     425328    3690128
> Swap:      2040208          0    2040208
> 
> After "xm mem-set Domain 0 8192" and "xm mem-max Domain-0 8192",
> 
> "xm list -l" shows:
> 
> (domain
>     (domid 0)
>     (uuid 00000000-0000-0000-0000-000000000000)
>     (vcpus 1)
>     (cpu_weight 1.0)
>     (memory 8192)
>     (shadow_memory 0)
>     (maxmem 8192)
>     (features )
>     (name Domain-0)
>     (on_poweroff destroy)
>     (on_reboot restart)
>     (on_crash restart)
>     (state r-----)
>     (shutdown_reason poweroff)
>     (cpu_time 42.167766076)
>     (online_vcpus 4)
> )
> 
> "xm info" shows:
> 
> The same as before.
> 
> "free" shows:
> 
>              total       used       free     shared    buffers     cached
> Mem:       4133888     661248    3472640          0      26736     209376
> -/+ buffers/cache:     425136    3708752
> Swap:      2040208          0    2040208
> 
> 
> I want Dom0 to use all 8GB memory.  Any ideas?
> 
> Thanks!

> _______________________________________________
> Xen-ia64-devel mailing list
> Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-ia64-devel

-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>