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 best share disk for speed?

To: "Dylan Martin" <dmartin@xxxxxxxxxxxx>
Subject: Re: [Xen-users] How to best share disk for speed?
From: "Grant McWilliams" <grantmasterflash@xxxxxxxxx>
Date: Mon, 12 Jan 2009 11:28:05 -0800
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 12 Jan 2009 11:28:51 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=8Dh4XG5S84+9zDv8hJdlI/hA7Toefw27QEv8PTCPfdo=; b=TLtJpLPq+Rp9jtargk/SdSrhDq5kz7SHnF2oC2nKOYg+P5jUKDhfK01cXaC3korUy/ FDy0qCgy8gVbCeoI9SJqyRdzLD9Ucu6iq5Lgxd/QxO1vYYtBnGCcVR0/jmm75dA5OkRM uLJxm0/ono7C7MEFPDwsPqoqWXjRPlEVa1Rnk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=wYDFBDegrnqjeSfEKmGMtN+WkgYu+Bhkw/XWVIwaK29bOCtKNAc/y/BVMeFCY9Xw4y B8wbtKw6vmdzjky64Gk58aDHIhW/Wp9qv+ueFcutrHLwlxoQRVN1p8smOVxjv7RGm1de eLNeicCSPHzuGwFT7lI/Nu3t3gIfFkrLgJ+cg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e1a4c7f60901121116x7edd3603j3082c2688e1ab6e4@xxxxxxxxxxxxxx>
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: <e1a4c7f60901121116x7edd3603j3082c2688e1ab6e4@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Mon, Jan 12, 2009 at 11:16 AM, Dylan Martin <dmartin@xxxxxxxxxxxx> wrote:
I have a number of DomUs running the same OS & distro (CentOS 5.2) so
they're using the same files for most operations.  Because I'm just
sharing access to the same RAID drive for disk, I assume disk I/O is
my biggest performance bottleneck / area of contention. It seems like
I should be able to set up a shared disk in a way that nearly all
reads are done from a single shared memory cache, and this should make
things zippy indeed.  Here's a few schemes I've thought of:

- tmpfs (ram disk) on dom0 and share read-only with domUs
- ramdisk backed GFS shared with domUs
- tap:ram backed GFS (if tap:ram actually exists)
- Maybe I'm a dork, and Xen does this already?
- Configure DomUs to cache a lot
- Maybe DomUs cache so much already that this is a moot point?

Just to try and clarify again, I'm not trying to save disk space, I'm
trying to save disk seeks.  My 2nd priority after I/O performance is
to avoid wasting RAM on redundant caches.

And while I'm at it:  Does a request for data in a ram-disk
masquerading as a hard drive arrive any slower than cached data from a
previous request?  IE, if I could disable caching on the domU and
serve from a cache on Dom0, would that work?

Okay, enough rambling, basically, I'm trying to get the best disk I/O,
ram usage out of my system.  Any advice?

Thanks
-Dylan

You might find that running out of tmpfs is slower because Linux caches ram as apposed to caching HD which doesn't really do anything but use more ram. I'm working on a completely different type of project but also using tmpfs. I write large files into it and then duplicate them to many drives. Not related to VMs but for my purpose it works great.

Until recently I didn't know tap:ram existed so I can't comment. It would be nice to hear your updates though as I have another project where I'll have a qcow backing file that 30-50 VMs will be accessing and each would have their own writable snapshot. That means a lot of reads out of one file and all the writes go somewhere else. It may be advantageous to load that one file into ram somehow.

Grant McWilliams

Some people, when confronted with a problem, think "I know, I'll use Windows."
Now they have two problems.
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>