Re: Reduce struct page by 8 bytes on 64bit

From: Andrew Morton (akpm@digeo.com)
Date: Wed Apr 16 2003 - 15:35:39 EST


Matthew Wilcox <willy@debian.org> wrote:
>
> Jacob's would break if we hashed to different spinlocks. But we don't, we
> shift right by 8, so we get the same spinlock for atomic things that are on
> the same "cacheline" (i think PA cachelines are actually 64 or 128 bytes,
> depending on model).
>

Are you prepared to cast this in stone?

If so then I think Jacob's approach would be preferable, don't you agree?

It needs some compiler-detection magic around the anon union though.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:19 EST