From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: windows tmem Date: Wed, 29 May 2013 11:42:11 -0400 Message-ID: <20130529154211.GD23775@phenom.dumpdata.com> References: <6035A0D088A63A46850C3988ED045A4B57CA6E04@BITCOM1.int.sbss.com.au> <9AAE0902D5BC7E449B7C8E4E778ABCD0019804@LONPEX01CL01.citrite.net> <6035A0D088A63A46850C3988ED045A4B5C1EA31E@BITCOM1.int.sbss.com.au> <9AAE0902D5BC7E449B7C8E4E778ABCD00199C2@LONPEX01CL01.citrite.net> <6035A0D088A63A46850C3988ED045A4B5C1EB4DD@BITCOM1.int.sbss.com.au> <20130528141700.GM724@phenom.dumpdata.com> <6035A0D088A63A46850C3988ED045A4B5C1ED3CD@BITCOM1.int.sbss.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <6035A0D088A63A46850C3988ED045A4B5C1ED3CD@BITCOM1.int.sbss.com.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: James Harper Cc: Paul Durrant , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, May 29, 2013 at 12:19:25AM +0000, James Harper wrote: > > > > I am not familiar with the Windows APIs, but it sounds like you > > want to use the tmem ephermeal disk cache as an secondary cache > > (which is BTW what Linux does too). > > > > That is OK the only thing you need to keep in mind that the > > hypervisor might flush said cache out if it decides to do it > > (say a new guest is launched and it needs the memory that > > said cache is using). > > > > So the tmem_get might tell that it does not have the page anymore. > > Yes I've read the brief :) > > I actually wanted to implement the equivalent of 'frontswap' originally by trapping writes to the pagefile. A bit of digging and testing suggests it may not be possible to determine when a page written to the pagefile is discarded, meaning that tmem use would just grow until fill and then stop being useful unless I eject pages on an LRU basis or something, so ephemeral tmem as a best-effort write-through cache might be the best and easiest starting point. > > James