Thread (16 messages) 16 messages, 4 authors, 2011-07-06

Re: [PATCH] [Cleanup] memcg: export memory cgroup's swappiness v2

From: Michal Hocko <hidden>
Date: 2011-06-29 12:20:37
Also in: lkml

On Wed 29-06-11 19:03:25, KAMEZAWA Hiroyuki wrote:
This is onto 3 patches I posted yesterday.
I'm sorry I once got Acks in v1 but refleshed totally. 
==
From fda72071ee473be1caee163920da0f5c397c95e8 Mon Sep 17 00:00:00 2001
From: KAMEZAWA Hiroyuki <redacted>
Date: Wed, 29 Jun 2011 18:24:49 +0900
Subject: [PATCH] export memory cgroup's swappines

Each memory cgroup has 'swappiness' value and it can be accessed by
get_swappiness(memcg). The major user is try_to_free_mem_cgroup_pages()
and swappiness is passed by argument. It's propagated by scan_control.

get_swappiness is static function but some planned updates will need to
get swappiness from files other than memcontrol.c
This patch exports get_swappiness() as mem_cgroup_swappiness().
By this, we can remove the argument of swapiness from try_to_free...
and drop swappiness from scan_control. only memcg uses it.

Signed-off-by: KAMEZAWA Hiroyuki <redacted>
Reviewed-by: Michal Hocko <redacted>
Changelog:
  - drop swappiness from scan_control
Yes, this is even better.

-- 
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  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@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help