From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: cache coloring Date: Fri, 22 Nov 2013 18:07:04 +0100 Message-ID: <1385140024.21426.43.camel@Solace> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5764017682980888463==" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VjuCF-0007Ot-PO for xen-devel@lists.xenproject.org; Fri, 22 Nov 2013 17:07:11 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrea Braschi Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org --===============5764017682980888463== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-qtSlUBD1cVidRHLeUDqL" --=-qtSlUBD1cVidRHLeUDqL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On ven, 2013-11-22 at 10:48 +0100, Andrea Braschi wrote: > Hi everybody, > Hello, and welcome! > I'm Andrea and I'm a student from Politecnico di Milano, for a project > at my university I need to implement cache coloring for the third > level cache for xen-4.2.3 . > Ok, two questions: 1. My "OS concepts" my be a bit rusty, but I only remember something called page coloring. Both Google and Wikipedia seems to agree that page and cache coloring are the same thing, but then I don't understand why you specifically mention L3 above. Can you confirm that it is this that you are after? http://en.wikipedia.org/wiki/Cache_coloring http://www.freebsd.org/doc/en/articles/vm-design/page-coloring-optimizat= ions.html 2. Why 4.2.3 and not upstream? > -where is the code implementing the buddy allocator for the third > level caches?(i've found two buddies but none of them seems to me the > right one...I'll be implementig this in order to support x86 64 bit > architecture) >=20 As far as I know (and as far as I'm able to grep :-)), I think you should start looking at xen/common/page_alloc.c. $ grep -i buddy xen/* -R xen/arch/x86/x86_64/mm.c: * buddy allocator relies on this assumption. xen/arch/x86/x86_64/mm.c: * Mark the allocated page before put free pag= es to buddy allocator xen/common/page_alloc.c: * Simple buddy heap allocator for Xen. xen/common/page_alloc.c: * BINARY BUDDY ALLOCATOR xen/common/page_alloc.c:/* Remove any offlined page in the buddy pointed to= by head. */ xen/common/page_alloc.c: * not freeing it to the buddy allocator. > -there's a documentation about it? >=20 At this level, and for these kind of things, the code itself is the only existent documentation. :-) > I apologize if that's not the right list (if it's not please tell me > where I can ask) and I hope I was clear in explaining my problem. >=20 It is the right place, so feel free o ask. The only thing that is required is to be as specific as possible, i.e., describe your goal, what it is that you are doing to achieve it and what it is that is not working / you are not understanding. This is a nice guide/checklist: http://wiki.xenproject.org/wiki/Asking_Xen_Devel_Questions Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-qtSlUBD1cVidRHLeUDqL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iEYEABECAAYFAlKPjzgACgkQk4XaBE3IOsQiUwCdGdZ1Ta7t/uv+42TrFLmQiqUy y9AAnRlg0AA2uha5b/aI5u80xmOk0G5+ =V3nU -----END PGP SIGNATURE----- --=-qtSlUBD1cVidRHLeUDqL-- --===============5764017682980888463== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5764017682980888463==--