From: Dan Magenheimer Subject: Writing to a ramdisk in a PV domain is SLLLOOOWWW?!? Date: Wed, 5 May 2010 11:14:20 -0700 (PDT) Message-ID: <89f1cead-b77d-4294-ab12-5e05344ed346@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Xen-Devel (xen-devel@lists.xensource.com)" List-Id: xen-devel@lists.xenproject.org Has anyone tried using a ramdisk in a PV domain? I'm trying it in an experiment to compare swapping to a ramdisk against tmem (frontswap) performance (suggested as a performance test on lkml). Writing to the ramdisk appears to be VERY VERY slow, elapsed time in the guest is several times larger than user+sys, and xentop shows the guest consuming vcpu seconds at about the user+sys rate. Note that this is when tmem is turned off and there is no vhd swap disk configured. I'm suspecting that writing to ramdisk must be causing some interesting/expensive PV pagetable behavior? Or maybe somehow /dev/ram0 is getting routed through qemu? Or ?? Thanks, Dan P.S. Yes, I realize a ramdisk has no real value in a guest... this is just a performance experiment.