WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH 3/3] Replace slab.c with a very simpleallocator.

To: "Rusty Russell" <rusty@xxxxxxxxxxxxxxx>, "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 3/3] Replace slab.c with a very simpleallocator.
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 3 Feb 2005 08:43:01 -0000
Cc: "Xen Mailing List" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 03 Feb 2005 08:45:57 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcUJipQkU4hi3znuSVOKcIyg8qH44wAP+zOQ
Thread-topic: [Xen-devel] [PATCH 3/3] Replace slab.c with a very simpleallocator.
> > I think we want to ensure that the object returned is always
> > aligned to start on a L1 cache line boundary. I don't care that
> > we burn some memory as we don't have lots of small allocs.
> 
> If I may suggest, I'd prefer to put this in the hands of the caller,
> with an explicit alignment arg.  This simply falls out with this
> type-safe versions using __alignof__, and should neatly document this
> requirement, for example.

Hmm. I think pretty much everything we allocate is substantially biger
than a cache line, so there really isn't a whole lot of advantage in
doing this. We'd certainly have to go around sprinkling
__cacheline_aligned in a few more of our structure definitions to avoid
false sharing. BTW, I notice we use "__attribute__ ((aligned (X)))" in a
number of places as well as __alignof__. I presume they're the same
thing?

Out of interest, how do you extract information about such attributes
about structure definitions in a macro? 

> > Please could you adjust your patch having resync'ed from usntable.
> 
> Hmm, I hope that the bk snapshot is close enough.

The snapshot from last night should be OK (Keir removed _xmalloc late
last night GMT, so make sure you have this).

Thanks,
Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel