lkml.org 
[lkml]   [2001]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Scalable page cache
"David S. Miller" wrote:
>
> From: Ingo Molnar <mingo@elte.hu>
> Date: Mon, 26 Nov 2001 22:09:02 +0100 (CET)
>
> something like this:
>
> - #define SetPageReferenced(page) set_bit(PG_referenced, &(page)->flags)
> + #define SetPageReferenced(page) \
> + if (!test_bit(PG_referenced), &(page)->flags) \
> + set_bit(PG_referenced, &(page)->flags)
>
> On some platforms all the {test_,}{clear,change,set}_bit() ops give
> you this cache behavior. How hard would it be to make ix86 act
> similarly?

It would be nice to have a full complement of non-atomic
bitops. At present we have __set_bit, but no __clear_bit, etc.

So we often do buslocked RMW's in places where it's not needed.

-
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.214 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site