Re: [patch 2] mm: speculative get_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



William Lee Irwin III wrote:

On Tue, Jun 28, 2005 at 11:42:16AM +1000, Nick Piggin wrote:

Well it switches between page and swap cache, but it seems to just
use the normal pagecache / swapcache functions for that. It could be
that I've got a big hole somewhere, but so far I don't think you've
pointed oen out.


Its radix tree movement bypasses the page allocator.



That should be fine. Net result is the page has been looked up.
What kind of atomicity did you imagine the locked find_get_page
provides that I haven't?


On Tue, Jun 28, 2005 at 11:42:16AM +1000, Nick Piggin wrote:

Well what's the trouble with it?


hugetlb reallocation doesn't go through the page allocator either.



Ditto. Net result is that the page has been looked up. The
speculative get page will recheck that it is in the radix
tree after taking a reference, and if so then it assumes that
reference to be valid.

What is the hangup with the page allocator?

On Tue, Jun 28, 2005 at 11:42:16AM +1000, Nick Piggin wrote:

I know what a memory barrier is and does, so you said the
necessary memory barriers aren't in place, so can you deal
with it?


spin_unlock() does not imply a memory barrier.



Intriguing...


William Lee Irwin III wrote:

The above is as much as I wanted to go into it. I need to direct my
capacity for the grunt work of devising adversary arguments elsewhere.


On Tue, Jun 28, 2005 at 11:42:16AM +1000, Nick Piggin wrote:

I don't think there is anything wrong with it. I would be very
keen to see real adversary arguments elsewhere though.


They take time to construct.



I can imagine. I don't think I've seen one yet.


William Lee Irwin III wrote:

You requested comments. I made some.


On Tue, Jun 28, 2005 at 11:42:16AM +1000, Nick Piggin wrote:

Well yeah thanks, you did point out a thinko I made, and that was very
helpful and I value any time you spend looking at it. But just saying
"this is wrong, that won't work, that's crap, ergo the concept is
useless" without finding anything specifically wrong is not very
constructive.


I said nothing of that kind, and I did point out specific things.



You said "this RFC seems to have too far to go to use it to
conclude anything about the subject", after failing to find
any holes in the actual implementation.

And (parahprasing) "this needs memory barriers but I won't say
where or why, somebody else deal with it" doesn't count as a
specific thing.


Send instant messages to your online friends http://au.messenger.yahoo.com -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux