Re: [PATCH v2 2/2] vmscan: shrink_slab() require number of lru_pages, not page order

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KOSAKI Motohiro
Date: Thursday, July 8, 2010 - 5:46 pm

> On Thu, 8 Jul 2010, Andrew Morton wrote:

But It make opposite effect. number of scanning objects of shrink_slab() are

                          lru_scanned        max_pass
basic_scan_objects = 4 x -------------  x -----------------------------
                          lru_pages        shrinker->seeks (default:2)

scan_objects = min(basic_scan_objects, max_pass * 2)


That said, small lru_pages parameter makes too many slab dropping.
Practically, zone-reclaim always take max_pass*2. about inode, 
shrink_icache_memory() takes number of unused inode as max_pass.
It mean one shrink_slab() calling drop all icache. Is this optimal
behavior? why?

Am I missing something?



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

Messages in current thread:
[PATCH v2 1/2] vmscan: don't subtraction of unsined, KOSAKI Motohiro, (Thu Jul 8, 12:38 am)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, KOSAKI Motohiro, (Thu Jul 8, 12:41 am)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, Christoph Lameter, (Thu Jul 8, 7:01 am)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, Andrew Morton, (Thu Jul 8, 1:00 pm)
Re: [PATCH v2 2/2] vmscan: shrink_slab() require number of ..., KOSAKI Motohiro, (Thu Jul 8, 5:46 pm)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, KOSAKI Motohiro, (Thu Jul 8, 6:16 pm)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, Andrew Morton, (Fri Jul 9, 3:28 pm)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, KOSAKI Motohiro, (Tue Jul 13, 2:32 am)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, Christoph Lameter, (Tue Jul 13, 6:50 pm)
Re: [PATCH v2 1/2] vmscan: don't subtraction of unsined, KOSAKI Motohiro, (Tue Jul 13, 7:15 pm)