mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC] use radix_tree for non-resident page tracking
@ 2005-10-10 13:07 WU Fengguang
  2005-10-10 13:54 ` Nick Piggin
  2005-10-10 14:00 ` Rik van Riel
  0 siblings, 2 replies; 9+ messages in thread
From: WU Fengguang @ 2005-10-10 13:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: riel

Hi Rik,
The CLOCK-Pro page replacement is quite appealing, and I'd like to
contribute an idea: How about store bookkeeping info of dropped pages
in-place in radix_tree?

The slots in radix_tree_node can be used for bookkeeping data when
the corresponding pages are dropped. When all pages in a radix_tree_node
have been dropped, it is registered in an array/list for delayed
reclaim.

It would be fast and simple:
- no cache-line pollution
- no extra lock (with Nick Piggin's great RCU improvement)
- ready to use lookup code

The memory footprint should be roughly the same, though with a whole
word of space for each page ;)

It can not cover the swap space, which should be handled differently
anyway, I guess.

Regards,
Wu Fengguang

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20051010134345.C9E7CFB046@gatekeeper.ncic.ac.cn>]

end of thread, other threads:[~2005-10-11  3:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-10 13:07 [RFC] use radix_tree for non-resident page tracking WU Fengguang
2005-10-10 13:54 ` Nick Piggin
2005-10-10 14:00 ` Rik van Riel
2005-10-10 16:20   ` WU Fengguang
2005-10-10 13:07     ` [RFC] use radix_tree for non-resident page tracking\ Marcelo Tosatti
     [not found]   ` <20051010161704.GA7679@mail.ustc.edu.cn>
     [not found]     ` <Pine.LNX.4.63.0510101237270.20944@cuia.boston.redhat.com>
2005-10-10 17:14       ` [RFC] use radix_tree for non-resident page tracking WU Fengguang
2005-10-10 17:19         ` Rik van Riel
2005-10-11  3:14           ` WU Fengguang
     [not found] <20051010134345.C9E7CFB046@gatekeeper.ncic.ac.cn>
2005-10-10 15:21 ` WU Fengguang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®