linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] move slab pages to the lru, for 2.5.27
@ 2002-07-21 11:24 Craig Kulesa
  2002-07-21 21:31 ` William Lee Irwin III
  2002-07-22 18:54 ` Steven Cole
  0 siblings, 2 replies; 13+ messages in thread
From: Craig Kulesa @ 2002-07-21 11:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mm


This is an update for the 2.5 port of Ed Tomlinson's patch to move slab
pages onto the lru for page aging, atop 2.5.27 and the full rmap patch.  
It is aimed at being a fairer, self-tuning way to target and evict slab
pages.

Previous description:  
	http://mail.nl.linux.org/linux-mm/2002-07/msg00216.html
Patch URL:
	http://loke.as.arizona.edu/~ckulesa/kernel/rmap-vm/2.5.27/

What's next:

This patch is intermediate between where we were (freeing slab caches
blindly and not in tune with the rest of the VM), and where we want to be
(cache pruning by page as we scan the active list looking for cold pages
to deactivate).  Uhhh, well, I *think* that's where we want to be.  :)

How do we get there?

Given a slab page, I can find out what cachep and slab I'm dealing with 
(via GET_PAGE_SLAB and friends).  If the cache is prunable one, 
cachep->pruner tells me what kind of callback (dcache/inode/dquot) I 
should invoke to prune the page.  No problem.

The trouble comes when we try to replace shrink_dcache_memory() and
friends with slab-aware pruners.  Namely, how to teach those
inode/dcache/dquot callbacks to free objects belonging to a *specified*
page or slab?  If I have a dentry slab, I'd like to try to liberate
*those* dentries, not some random ones like shrink_dcache_memory does now.
I'm still trying to figure out how to make that work.  Or is that 
totally the wrong approach?  Thoughts?  ;)

[I understand Rik's working on this, but my curiosity made me ask anyway!]

Comments, fixes, & feedback always welcome. :)

Craig Kulesa
Steward Obs.
Univ. of Arizona

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <200207210933.01211.tomlins@cam.org>]
[parent not found: <200207242012.59150.tomlins@cam.org>]

end of thread, other threads:[~2002-07-25 12:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-21 11:24 [PATCH 2/2] move slab pages to the lru, for 2.5.27 Craig Kulesa
2002-07-21 21:31 ` William Lee Irwin III
2002-07-22  7:08   ` Craig Kulesa
2002-07-22 18:54 ` Steven Cole
2002-07-22 22:21   ` William Lee Irwin III
2002-07-22 22:36     ` Craig Kulesa
2002-07-23  4:36       ` William Lee Irwin III
2002-07-23 14:31       ` Steven Cole
2002-07-24 20:28         ` Steven Cole
2002-07-24 21:02           ` Steven Cole
     [not found] <200207210933.01211.tomlins@cam.org>
2002-07-21 21:24 ` Craig Kulesa
2002-07-21 23:15   ` Ed Tomlinson
     [not found] <200207242012.59150.tomlins@cam.org>
2002-07-25 12:00 ` Craig Kulesa

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