lkml.org 
[lkml]   [2015]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] futex: eliminate cache miss from futex_hash()
On Mon, Jun 22, 2015 at 03:45:10PM +0200, Rasmus Villemoes wrote:
> On Mon, Jun 22 2015, Peter Zijlstra <peterz@infradead.org> wrote:

> > Does: __aligned(sizeof(__futex_data)), work?

> Unfortunately not:

> > Because 16 might waste 8 bytes on 32bit.
>
> Yeah, wasting >= 48 bytes was the reason I didn't make it
> ____cacheline_aligned. If 8 bytes is also too much, I suppose one could
> just give the struct a tag and then use sizeof(struct futex_data).

Nah, its probably fine, just wondering if it could be done better.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2015-06-22 16:21    [W:1.218 / U:1.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site