On Wed, Aug 15, 2012 at 03:27:10PM +0900, Atsushi Kumagai wrote: [..] > > >> > > >> STEP [Excluding free pages ] : 49.846321 seconds > > >> STEP [Excluding unnecessary pages] : 6.339228 seconds > > >> STEP [Excluding free pages ] : 48.595884 seconds > > >> STEP [Excluding unnecessary pages] : 6.530479 seconds > > >> STEP [Excluding free pages ] : 48.598879 seconds > > >> STEP [Excluding unnecessary pages] : 6.527133 seconds > > >> STEP [Excluding free pages ] : 48.602401 seconds > > >> STEP [Excluding unnecessary pages] : 6.502681 seconds > > >> STEP [Excluding free pages ] : 48.602010 seconds > > >> STEP [Excluding unnecessary pages] : 6.469853 seconds > > >> STEP [Excluding free pages ] : 48.601637 seconds > > >> STEP [Excluding unnecessary pages] : 6.431381 seconds > > >> STEP [Excluding free pages ] : 48.601195 seconds > > >> STEP [Excluding unnecessary pages] : 6.416676 seconds > > >> STEP [Excluding free pages ] : 48.602221 seconds > > >> STEP [Excluding unnecessary pages] : 6.387611 seconds > > >> STEP [Excluding free pages ] : 48.589972 seconds > > >> STEP [Excluding unnecessary pages] : 0.816955 seconds > > > > > > So what does above represent. Each step is taking 48 seconds or total > > > time taken to filter vmcore is 48 seconds? What's the buffer size used > > > here. > > > > > > > The free_list logic always filteres a whole memory range even if the > > range we need to filter is only a cerntain part, so it took about 48 > > seconds at each cycle. > > It seems that the mem_map array logic is effective especially in large machine. > I'll review your mem_map array patchset after the next version is released. Yes please review and merge mem_map array changes also. This seems to be resulting in signifacnt saving. According to numbers above, looks like it cuts down filtering time by 9 times. Thanks Vivek