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] how to optimize CentOS XEN dom0?

To: Jeff Sturm <jeff.sturm@xxxxxxxxxx>
Subject: Re: [Xen-users] how to optimize CentOS XEN dom0?
From: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Date: Wed, 23 Feb 2011 16:17:07 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 23 Feb 2011 06:21:24 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=softdux.com; h=MIME-Version:Reply-To:In-Reply-To:References:From:Date:Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding:X-Assp-ID:X-Assp-Version:X-Source:X-Source-Args:X-Source-Dir; b=F5KLup0RgiPRzl5tdui999xDmwsGRuuoP/NSNwMTgdubV8pZLj3f1ZSx1YKYoajYAZopUJVXZDPa0fk5lhhfpV0RCvLDAAgQwROv0gktxa4YSEOepl4AvRQcCqNRsgvI;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <64D0546C5EBBD147B75DE133D798665F0855C1EB@xxxxxxxxxxxxxxxxx>
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: <sig.9034e247f6.AANLkTi=CK=SSKrcF4GBy79TZrd1O20_juB8aOFCpw5gG@xxxxxxxxxxxxxx> <64D0546C5EBBD147B75DE133D798665F0855C1EB@xxxxxxxxxxxxxxxxx>
Reply-to: rudi@xxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Feb 23, 2011 at 3:57 PM, Jeff Sturm <jeff.sturm@xxxxxxxxxx> wrote:
>> -----Original Message-----
>> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-
>> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Rudi Ahlers
>> Subject: [Xen-users] how to optimize CentOS XEN dom0?
>>
>> the server itself seems to eat up a lot of resources:
>>
>> root@zaxen01:[~]$ free -m
>>              total       used       free     shared    buffers
> cached
>> Mem:           512        472         39          0         13
> 215
>> -/+ buffers/cache:        244        268
>> Swap:         4095          0       4095[/CODE]
>
> Really?  244MB memory committed, it looks like, aside from buffer cache.
> Do you think that's excessive?  I've commonly heard that 256MB is the
> bare minimum to run a CentOS 5.x image.

These stats were taken a few minutes after the server was hard
rebooted cause it didn't respond anything on the network, internet or
even console.

>
> Nothing has swapped yet, so you should have ample headroom.  If you were
> to shrink memory a little more, it would begin to swap seldom-used
> pages.
>
> Since you're running Apache, see if you can use the worker MPM.  It
> tends to spawn fewer processes (thus eating less RAM) than prefork.  If
> you have to stick with prefork, turn down StartServers, MinSpareServers
> and MaxSpareServers to the minimum you can comfortably handle.
>
I already tuned the Apache as follows:

StartServers       4
MinSpareServers    5
MaxSpareServers   10
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000


Apache is used for CloudMin, so there's no actual websites running on
the server.

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



-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532

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