memcg: revert current soft limit reclaim implementation
Subsystems (5)
PATCH v2 1/5 memcg: revert current soft limit reclaim implementation
This patch reverts all the existing softlimit reclaim implementations.
--- include/linux/memcontrol.h | 11 -- include/linux/swap.h | 4 - mm/memcontrol.c | 387 -------------------------------------------- mm/vmscan.c | 67 -------- 4 files changed, 0 insertions(+), 469 deletions(-)
include/linux/memcontrol.h +0 -11
@@ -156,9 +156,6 @@ static inline void mem_cgroup_dec_page_stat(struct page *page,mem_cgroup_update_page_stat (page, idx,-1 ); } -unsigned long mem_cgroup_soft_limit_reclaim (struct zone *zone,int order, -gfp_t gfp_mask, -unsigned long *total_scanned);u64 mem_cgroup_get_limit (struct mem_cgroup *memcg);void mem_cgroup_count_vm_event (struct mm_struct *mm,enum vm_event_item idx);
@@ -366,14 +363,6 @@ static inline void mem_cgroup_dec_page_stat(struct page *page, }static inline -unsigned long mem_cgroup_soft_limit_reclaim (struct zone *zone,int order, -gfp_t gfp_mask, -unsigned long *total_scanned) -{ -return 0 ; -} - -static inline u64 mem_cgroup_get_limit (struct mem_cgroup *memcg) {return 0 ;
include/linux/swap.h +0 -4
@@ -250,10 +250,6 @@ extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order,extern int __isolate_lru_page (struct page *page,isolate_mode_t mode,int file);extern unsigned long try_to_free_mem_cgroup_pages (struct mem_cgroup *mem,gfp_t gfp_mask,bool noswap); -extern unsigned long mem_cgroup_shrink_node_zone (struct mem_cgroup *mem, -gfp_t gfp_mask,bool noswap, -struct zone *zone, -unsigned long *nr_scanned);extern unsigned long shrink_all_memory (unsigned long nr_pages);extern int vm_swappiness;extern int remove_mapping (struct address_space *mapping,struct page *page);
mm/memcontrol.c +0 -387
486 lines not on this page · raw message
mm/vmscan.c +0 -67
97 lines not on this page · raw message
Signature · 8 lines
1.7.7.3 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Johannes Weiner
maintainerQuoted 1 line · Ying Han
This patch reverts all the existing softlimit reclaim implementations.
This ordering makes it quite hard to revert individual patches after merging in case they are faulty, because we end up with a tree state that has no soft limit implementation at all, or a newly broken one.
Could you reorder the series such that each patch leaves the tree in a sane state?
I.e. also don't introduce an endless loop in the page allocator through one patch and fix it later in another one ;) Noone will be able to remember these cross-dependencies in a couple of weeks.
Thanks!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Quoted 7 lines · Johannes Weiner
Quoted 1 line · Ying Han
This patch reverts all the existing softlimit reclaim implementations.
This ordering makes it quite hard to revert individual patches after merging in case they are faulty, because we end up with a tree state that has no soft limit implementation at all, or a newly broken one.
Quoted 6 lines
Could you reorder the series such that each patch leaves the tree in a sane state?
I.e. also don't introduce an endless loop in the page allocator through one patch and fix it later in another one ;) Noone will be able to remember these cross-dependencies in a couple of weeks.
Make sense to me. I will try to make the ordering better for the next post :)
--Ying
Quoted 1 line
Thanks!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Quoted 10 lines · Ying Han
This patch reverts all the existing softlimit reclaim implementations.
Signed-off-by Ying Han <[email protected]>---
include/linux/memcontrol.h | 11 --
include/linux/swap.h | 4 -
mm/memcontrol.c | 387 --------------------------------------------mm/vmscan.c| 67 --------4 files changed, 0 insertions(+), 469 deletions(-)
[...]
Quoted 5 lines
mm/memcontrol.c +0
-5-unsigned long mem_cgroup_soft_limit_reclaim (struct zone *zone,int order, - gfp_t gfp_mask, - unsigned long *total_scanned) -{ - unsigned long nr_reclaimed = 0;
mm/memcontrol.c static int mem_cgroup_resize_memsw_limit(struct mem_cgroup *memcg, · line 3536
Quoted 10 lines
mm/memcontrol.c +0
-10- struct mem_cgroup_per_zone *mz, *next_mz = NULL; - unsigned long reclaimed; - int loop = 0; - struct mem_cgroup_tree_per_zone *mctz; - unsigned long long excess; - unsigned long nr_scanned; - - if (order > 0) - return 0; -
Not related to this patch, what is the functionality to check order?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. 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:"[email protected]"> [email protected] </a>
Quoted 13 lines · Hillf Danton
Quoted 10 lines · Ying Han
This patch reverts all the existing softlimit reclaim implementations.
Signed-off-by Ying Han <[email protected]>---
include/linux/memcontrol.h | 11 --
include/linux/swap.h | 4 -
mm/memcontrol.c | 387 --------------------------------------------mm/vmscan.c| 67 --------4 files changed, 0 insertions(+), 469 deletions(-)[...]
Quoted 16 lines
Quoted 5 lines
mm/memcontrol.c +0
-5-unsigned long mem_cgroup_soft_limit_reclaim (struct zone *zone,int order, - gfp_t gfp_mask, - unsigned long *total_scanned) -{ - unsigned long nr_reclaimed = 0;mm/memcontrol.c static int mem_cgroup_resize_memsw_limit(struct mem_cgroup *memcg, · line 3536
Quoted 10 lines
mm/memcontrol.c +0
-10- struct mem_cgroup_per_zone *mz, *next_mz = NULL; - unsigned long reclaimed; - int loop = 0; - struct mem_cgroup_tree_per_zone *mctz; - unsigned long long excess; - unsigned long nr_scanned; - - if (order > 0) - return 0; -Not related to this patch, what is the functionality to check order?
The new implementation doesn't need to check order like before.
The existing soft_limit reclaim skips high order allocation since it's been best effort before the actual reclaim on global lru. Now the global lru is gone and all reclaims happens on per-memcg level. The high order page allocation is being taken care of automatically like other part of reclaim logic.
--Ying
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. 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:"[email protected]"> [email protected] </a>