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-users] Xen, Memory and prelink interaction

To: John Madden <jmadden@xxxxxxxxxxx>
Subject: Re: [Xen-users] Xen, Memory and prelink interaction
From: Massimo Mongardini <massimo.mongardini@xxxxxxxxx>
Date: Fri, 25 Jul 2008 22:32:10 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 25 Jul 2008 14:32:45 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=rYld6x3wuWgHTcGRf3QigqHewfPAz5cVheO2MINinVk=; b=h2voDz8shhMwAsvjdn2q35m/3Tr8/E8A8UQsE0228sQlZaKnfmSXyXI8RoN1HIGonm vPN3s5YQZm8X8BHMaVaDdGd26nZsFWqpI3hckEGPgq2tvCEWbrftVGguXv6ppGUsvwUr Vsl/1IczMAjOaCXsceG+1hrhnyaBKeb9wJKvw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=YQz6ulK+hWjrhNaE8jZBYO5xUQZ/ERHkOEUJRI7P/ESPKll6sHUFNNFZm27qyVc+2G T4aFkUjDtRdBNO6LZM9jxaPH82/npIfNaUssSemYQxQHAgeP0jSwGxptWi/mdsSg1amz xb8WFlYfbiUThTl+ZF+/DKgSl/mpLrMLO3ubY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1217006218.24739.414.camel@xxxxxxxxxxxxxxxxxxxxx>
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>
References: <488A00C0.6080706@xxxxxxxxx> <1217006218.24739.414.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (X11/20080213)
John Madden wrote:
On Fri, 2008-07-25 at 17:35 +0100, Massimo Mongardini wrote:
  
The servers are HP ProLiant BL465c G1
cpus: 2xDual-Core AMD Opteron(tm) Processor 2216 HE
os: RHEL 4.6 32bit version (Linux server-0007 2.6.9-67.0.15.ELsmp #1
SMP 
Tue Apr 22 13:50:33 EDT 2008 i686 athlon i386 GNU/Linux)
ram: 8GB

I have several java apps that start with -Xmx2048m option and they
work 
just fine on 12 blades, but on some of them that were used as dom0s.
    

Really?  With a 32-bit JVM?  I've never been able to get it to start
with any more than the ~1530MB limit and I found docs on Sun's site to
back that up -- different OS's place different limits under 2048MB for
various overheads.  I'd say you should count yourself very, very lucky
that the 2048MB's never ran into OOM conditions.  Still, odd that the
JVM won't even *start* under Xen...

John



  
Sorry my post wasn't clear enough... the problem arises on a non-xen kernel (redhat kernel 2.6.9-67.0.15.ELsmp) after the server was "xenified" and then reverted back to a plain redhat kernel.
Not sure if and how this can matter but when running as a dom0 I gave the single domU that it had running 6GB of memory out of 8GB.

On my site I have various java instances like that one happily running on various non dom0/U servers, for instance
[massimo@server-0006 ~]$ ps auxw | grep Xmx2048M | grep -v grep | wc -l
6

I believe the java heap size limit for a 32-bit is 4GB if not more constrained by the os.
http://java.sun.com/performance/reference/whitepapers/tuning.html#section4.1.2

I still have 5 servers that are running a xen kernel and since this is the second server that has this issue in the same circumstances,  I am quite confident that if I switch those back to a rh kernel I will face the same issue.... If any of you wants to do some debugging I am more than willing to switch one of them back to run "plain" kernels.

cheers
Massimo



-- 
Massimo Mongardini
~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~
echo 'Jg!J!hjwf!zpv!bo!bqqmf!boe!zpv!hjwf!nf!bo!bqqmf-!uifo!xf!xjmm!ibwf!bo!bqqmf!fbdi/!Cvu!jg!J!hjwf!zpv!bo!jefb!boe!zpv!hjwf!nf!bo!jefb-!xf!xjmm!ibwf!uxp!jefbt!fbdi!' | perl -pe 's/(.)/chr(ord($1)-1)/ge'
~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~
http://massimo.mongardini.it
http://www.getthefacts.it
http://www.mongardini.it/pizza-howto
~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>