From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [RFC PATCH 1/5] lguest: mmap backing file Date: Thu, 20 Mar 2008 10:24:15 -0500 Message-ID: <47E2819F.6060406@codemonkey.ws> References: <200803201659.14344.rusty@rustcorp.com.au> <200803201705.44422.rusty@rustcorp.com.au> <47E26EE1.5030706@codemonkey.ws> <47E27DA5.6090703@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , lguest , virtualization@lists.linux-foundation.org To: Avi Kivity Return-path: In-Reply-To: <47E27DA5.6090703@qumranet.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Avi Kivity wrote: > Anthony Liguori wrote: >> Rusty Russell wrote: >> >>> From: Paul TBBle Hampson >>> >>> This creates a file in $HOME/.lguest/ to directly back the RAM and >>> DMA memory >>> mappings created by map_zeroed_pages. >>> >> >> I created a test program recently that measured the latency of a >> reads/writes to an mmap() file in /dev/shm and in a normal >> filesystem. Even after unlinking the underlying file, the write >> latency was much better with a mmap()'d file in /dev/shm. >> > > Surely the difference disappears once the pages have been faulted in? I don't recall. I believe rewrite was okay but initial write was much worse. Regards, Anthony Liguori ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/