From: ash win Subject: Hugepage support to tmem. Date: Fri, 22 Oct 2010 04:23:55 +0530 (IST) Message-ID: <360499.98709.qm@web94404.mail.in2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: Dan Magenheimer Cc: Xen-devel@lists.xensource.com, ashwin , tmem-devel@oss.oracle.com List-Id: xen-devel@lists.xenproject.org Hi Dan,=0A=0A Sorry for the late reply since we were busy in our colle= ge academics.=0AWe would be doing this project (support for hugepages in tm= em) and=0Asoon will be submit our design to this community.=0A =0A = We have gone through the code of hugepages or superpages support=0Ain Xen= . We found that whenever a domain requests a page of order =3D 0 or=0Aorder= =3D 9, it tries to allocate super page or singleton page. No code exists= =0Afor order > 0 and order < 9.=0A=0A In our study, we also came acro= ss a point that if a domain requests a=0A2 MB page and it gets one, then th= e domain will not receive 4 KB page during=0Aits stay , which means that a = single domain cannot have simultaneous support=0Ato both normal page and su= per pages. Is it really so? =0A =0A Some part of the code says that if= it=E2=80=99s not possible to allocate super =0Apage, =0A=0Athen it allocat= es a linked list consisting of 512 4kB pages i.e. from =0APoD(1GB->2M =0A= =0Aor 2M->4k). The performance is improved in case of huge pages due to its= =0Acontiguity. But in the case above, does it mean that the performance is = =0Adegraded? =0A=0AI think that in design consideration we need to solve th= is problem of splitting.=0A=0AAccording to code such splitting is done in H= AP, so what exactly happens in =0Ashadow mode?=0A=0A--=0AWith Regards,=0AAs= hwin Vasani=0AB.E. (Fourth Year)=0AComputer Engineering,=0APune Institute = of Computer Technology.=0A+91 9960405802=0A=0A