<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Guarav &#8211;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes, if Nitin is correct and you set up virtio correctly, using
virtio for tmem should work for both lguest and KVM.&nbsp; There is a possibility
that there may be a small performance problem, but just getting it to work would
be very interesting.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><br>
Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Dan<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Gaurav Kukreja
[mailto:mailme.gaurav@gmail.com] <br>
<b>Sent:</b> Tuesday, February 09, 2010 11:27 AM<br>
<b>To:</b> Nitin Gupta<br>
<b>Cc:</b> rusty@rustcorp.com.au; tmem-devel@oss.oracle.com<br>
<b>Subject:</b> Re: [Tmem-devel] Implementing Transcendent Memory on Lguest<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>While I am trying to figure out, all what you
people are saying, :-p.<o:p></o:p></span></span></p>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
would like to know, if it would be&nbsp;beneficial, in anyway, to take this
direction. As for my project, I am looking forward to implementation in lguest,
but I would like to extend the project to KVM too.<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>On Tue, Feb 9, 2010 at 8:58 PM, Dan Magenheimer &lt;<a
href="mailto:dan.magenheimer@oracle.com">dan.magenheimer@oracle.com</a>&gt;
wrote:<o:p></o:p></p>

<div>

<p class=MsoNormal>&gt; From: Nitin Gupta [mailto:<a
href="mailto:ngupta@vflare.org">ngupta@vflare.org</a>]<br>
&gt;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>&gt; On Tue, Feb 9, 2010 at
4:49 AM, Dan Magenheimer<br>
&gt; &lt;<a href="mailto:dan.magenheimer@oracle.com">dan.magenheimer@oracle.com</a>&gt;
wrote:<br>
&gt; &gt;&gt; However, I could not understand your coherence issue: this vswap<br>
&gt; &gt;&gt; driver simply sends swap page to hypervisor synchronously.<br>
&gt; &gt;<br>
&gt; &gt; I am asking if anything in the virtio &quot;layer&quot; buffers<br>
&gt; &gt; the data, making it appear to the client that the data<br>
&gt; &gt; has been copied from/to the hypervisor (and all of tmem's<br>
&gt; &gt; data structures updated in the hypervisor) but it really<br>
&gt; &gt; hasn't happened yet. If so, bad things can happen.<br>
&gt; &gt;<br>
&gt;<br>
&gt; I think we can set &quot;virtqueue&quot; size to 1 *and* make it work<br>
&gt; synchronously (this is what vswap does). This should avoid<br>
&gt; any buffering problem you are concerned with.<o:p></o:p></p>

</div>

<p class=MsoNormal>Excellent!<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
&gt; On a side note, I think such simplistic behavior can result<br>
&gt; in poor performance but handling swapping case always<br>
&gt; brings surprises so maybe anything fancier -- multiple queues<br>
&gt; having large sizes, working asynchronously -- may be difficult<br>
&gt; to implement.<o:p></o:p></p>

</div>

<p class=MsoNormal>The tmem implementation in Xen has good concurrency<br>
support, so multiple processors swapping to different<br>
places in the same &quot;swaptype&quot; can proceed concurrently<br>
if this is desired.<br>
<br>
See &quot;Swizzling&quot; in the tmem 2.6.32 patch... up to<br>
16 guest vcpus can be swapping simultaneously to<br>
frontswap.<br>
<br>
So I think for swapping (at least in Linux) there might be more<br>
flexibility for asynchronicity but I don't think that<br>
applies to cleancache.<br>
<span style='color:#888888'><br>
Dan</span><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br clear=all>
<br>
-- <br>
Gaurav Kukreja<br>
<br>
+91 997 030 1257<o:p></o:p></p>

</div>

</div>

</body>

</html>