Re: [PATCH] mm: remove struct reclaim_state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 18, 2011 at 01:28:06PM +0300, Konstantin Khlebnikov wrote:
> Memory reclaimer want to know how much pages was reclaimed during shrinking slabs.
> Currently there is special struct reclaim_state with single counter and pointer from
> task-struct. Let's store counter direcly on task struct and account freed pages
> unconditionally. This will reduce stack usage and simplify code in reclaimer and slab.
> 
> Logic in do_try_to_free_pages() is slightly changed, but this is ok.
> Nobody calls shrink_slab() explicitly before do_try_to_free_pages(),

Except for drop_slab() and shake_page()....

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]