Re: [PATCH 1/2] mm: add context argument to shrinker callback

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KOSAKI Motohiro
Date: Tuesday, April 13, 2010 - 1:17 am

> diff --git a/include/linux/mm.h b/include/linux/mm.h

Looks good about this mm part.
	Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>


off-topic: shrink_slab() was introduced for page/[id]-cache scan balancing
at first. now it still have hardcorded shrinker->nr calculation for slab
although now lots another subsystem using it. shrinker->seeks seems no
intuitive knob. probably we should try generalization it in future. but
it is another story. I think this patch provide good first step.

                delta = (4 * scanned) / shrinker->seeks;
                delta *= max_pass;
                do_div(delta, lru_pages + 1);
                shrinker->nr += delta;


Thanks.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] mm: add context argument to shrinker callback, KOSAKI Motohiro, (Tue Apr 13, 1:17 am)
Re: [PATCH 1/2] mm: add context argument to shrinker callback, Christoph Hellwig, (Sat Apr 17, 5:15 pm)
Re: [PATCH 1/2] mm: add context argument to shrinker callback, Christoph Hellwig, (Thu Apr 22, 9:32 am)
Re: [PATCH 1/2] mm: add context argument to shrinker callback, Christoph Hellwig, (Thu Apr 22, 9:42 am)