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

[Xen-users] Kernel memory initialisation

To: 'Xen List' <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Kernel memory initialisation
From: "Olivier B." <xen.list@xxxxxxxxx>
Date: Mon, 18 Jul 2011 13:39:32 +0200
Delivery-date: Mon, 18 Jul 2011 04:40:53 -0700
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daevel.fr; s=default; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=d6sPuLV/xjJWW9aRkk39kK/elbquPFTUa+CQ/JEt4fA=; b=hFDJ9uG/D9fu7PYpvaw7+StY84cGFkhwrTZ4KZzyDm6YG7+dALg0UYTPKXrrfIMAOFmP5sJ42Xu4CJJVZAWUJUbB7pFkr7SgDf7TdWPmjjFkeAf+SSlS+ROvPHIPfUQP;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11
Hi,

I have a small problem on small (128Mo) PV DomU : the kernel use too much memory.

By default if I start my DomU kernel (2.6.39.3) with "memory = 128" in the xmdomain cfg, I obtain only 54MB of usable memory :

# head -n 1 /proc/meminfo
MemTotal:          54844 kB


While searching, I found that Xen (I guess) annouce 4GB of ram to the kernel, so in logs I have :

# grep Memory /var/log/kern.log | tail -n1
Jul 18 12:40:10 roy kernel: [ 0.000000] Memory: 46492k/4202496k available (2894k kernel code, 4063680k absent, 92324k reserved, 1826k data, 444k init)




Then I add mem=128M in "extra" area of my xmdomain cfg, and now I have a descent amount of usable memory (119MB) :

# head -n 1 /proc/meminfo
MemTotal:         122708 kB

# grep Memory /var/log/kern.log | tail -n1
Jul 18 13:14:10 roy kernel: [ 0.000000] Memory: 114356k/131072k available (2894k kernel code, 448k absent, 16268k reserved, 1826k data, 444k init)



But adding this parameter is not a "good" solution for me, so : is there a way to adjust the ratio of memory between the current memory usage and the amount of memory announced to the kernel ? (I only use 64bits systems)

Thanks,
Olivier

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Kernel memory initialisation, Olivier B. <=