[PATCH v5.1 6/8] memcg, vmscan: Do not attempt soft limit reclaim if it would not scan anything

2013-07-26 Thread Michal Hocko
teach mem_cgroup_soft_reclaim_eligible to handle NULL memcg as mem_cgroup_root Signed-off-by: Michal Hocko --- mm/memcontrol.c | 6 +- mm/vmscan.c | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index c1be265..8629ca6 100644 --- a/mm/memcontrol.c +++

[PATCH v5.1 3/8] vmscan, memcg: Do softlimit reclaim also for targeted reclaim

2013-07-26 Thread Michal Hocko
roup_soft_reclaim_eligible Signed-off-by: Michal Hocko Reviewed-by: Glauber Costa Reviewed-by: Tejun Heo --- include/linux/memcontrol.h | 6 -- mm/memcontrol.c| 14 +- mm/vmscan.c| 4 ++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/in

[PATCH v5.1 5/8] memcg: track children in soft limit excess to improve soft limit

2013-07-26 Thread Michal Hocko
well. System time is around 100% (suprisingly better for the 8k case) and Elapsed is copies that trend. Signed-off-by: Michal Hocko --- mm/memcontrol.c | 71 + 1 file changed, 71 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c

[PATCH v5.1 2/8] memcg: Get rid of soft-limit tree infrastructure

2013-07-26 Thread Michal Hocko
Now that the soft limit is integrated to the reclaim directly the whole soft-limit tree infrastructure is not needed anymore. Rip it out. Changes v1->v2 - mem_cgroup_reclaimable is no longer used - test_mem_cgroup_node_reclaimable is not used outside NUMA code Signed-off-by: Michal Ho

Re: linux-next: build failure after merge of the akpm-current tree

2013-08-12 Thread Michal Hocko
== root) > > @@ -998,7 +998,7 @@ skip_node: > > if (css_tryget(&mem->css)) > > return mem; > > else { > > - prev_cgroup = next_cgroup; > > + prev_css =

Re: + mm-show_mem-suppress-page-counts-in-non-blockable-contexts.patch added to -mm tree

2013-03-01 Thread Michal Hocko
ebug allocation failures? > To fix this, suppress the page walk in such contexts when printing the > page allocation failure warning. > > Signed-off-by: David Rientjes > Cc: Mel Gorman > Cc: Michal Hocko > Cc: Dave Hansen > Signed-off-by: Andrew Morton > --- > >

Re: + mm-show_mem-suppress-page-counts-in-non-blockable-contexts.patch added to -mm tree

2013-03-01 Thread Michal Hocko
On Fri 01-03-13 02:15:04, David Rientjes wrote: > On Fri, 1 Mar 2013, Michal Hocko wrote: > > > I have already asked about it in the original thread but didn't get any > > answer. How can we get a soft lockup when all implementations of show_mem > > call touch_nmi_wat

[patch v3 0/3 -mm] Soft limit rework

2013-05-13 Thread Michal Hocko
s to 0-limit rework: Base Major min:208.00 max:454.00, avg:375.17 stdev:86.73 Rework Major min:270.00 max:730.00, avg:431.67 stdev:143.58 So this clearly points at the priority-0 reclaim. Shortlog says: Michal Hocko (3): memcg: integrate soft reclaim tighter with zone shrinking code me

[patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code

2013-05-13 Thread Michal Hocko
low up patch to make this patch smaller and easier to review. Changes since v1 - __shrink_zone doesn't return the number of shrunk groups as nr_scanned test covers both no groups scanned and no pages from the required zone as pointed by Johannes Signed-off-by: Michal Hocko --- includ

[patch v3 -mm 2/3] memcg: Get rid of soft-limit tree infrastructure

2013-05-13 Thread Michal Hocko
Now that the soft limit is integrated to the reclaim directly the whole soft-limit tree infrastructure is not needed anymore. Rip it out. Signed-off-by: Michal Hocko --- mm/memcontrol.c | 224 +-- 1 file changed, 1 insertion(+), 223 deletions

[patch v3 -mm 3/3] vmscan, memcg: Do softlimit reclaim also for targeted reclaim

2013-05-13 Thread Michal Hocko
roup_soft_reclaim_eligible Signed-off-by: Michal Hocko --- include/linux/memcontrol.h |6 -- mm/memcontrol.c| 14 +- mm/vmscan.c|4 ++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/

Re: [RFC 3/4] mm: support remove_mapping in irqcontext

2013-05-13 Thread Michal Hocko
age. > */ > -int remove_mapping(struct address_space *mapping, struct page *page) > +int remove_mapping(struct address_space *mapping, struct page *page, > + bool irqcontext) > { > - if (__remove_mapping(mapping, page)) { > + if (__remove_mapping(m

Re: [PATCH 2/9] mm: vmscan: Obey proportional scanning requirements for kswapd

2013-05-14 Thread Michal Hocko
es properly] > Signed-off-by: Mel Gorman > Acked-by: Rik van Riel active vs. inactive might get skewed a bit AFAICS because both of them are zeroed but file vs. anon should be scanned proportionally based on swappiness now which sounds like it is good enou

Re: [PATCH 3/9] mm: vmscan: Flatten kswapd priority loop

2013-05-14 Thread Michal Hocko
. > > Signed-off-by: Mel Gorman > Acked-by: Johannes Weiner Reviewed-by: Michal Hocko > --- > mm/vmscan.c | 86 > + > 1 file changed, 41 insertions(+), 45 deletions(-) > > diff --git a/mm/vmscan.c b/mm/vmsca

Re: [PATCH 4/9] mm: vmscan: Decide whether to compact the pgdat based on reclaim progress

2013-05-14 Thread Michal Hocko
ed the > necessary pages are already available. > > Signed-off-by: Mel Gorman > Acked-by: Johannes Weiner Reviewed-by: Michal Hocko > --- > mm/vmscan.c | 59 ++- > 1 file changed, 30 insertions(+), 29 deletions(-

Re: [PATCH 6/9] mm: vmscan: Have kswapd writeback pages based on dirty pages encountered, not priority

2013-05-14 Thread Michal Hocko
he flag. Although direct reclaim ignores the flag it still sets it without clearing it. This means that you rely on parallel kswapd to clear it. We do the same thing with ZONE_CONGESTED but I think this should be at least documented somewhere. Other than that Reviewed-by: Michal Hocko > ---

Re: [PATCH 9/9] mm: vmscan: Move logic from balance_pgdat() to kswapd_shrink_zone()

2013-05-14 Thread Michal Hocko
einer Looks good Reviewed-by: Michal Hocko > --- > mm/vmscan.c | 110 > +--- > 1 file changed, 54 insertions(+), 56 deletions(-) > > diff --git a/mm/vmscan.c b/mm/vmscan.c > index e65fe46..0ba9d3a 100644 > --- a/mm/

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-05-14 Thread Michal Hocko
d 8b 38 49 > [ 115.097024] RIP [] kmem_cache_alloc+0x41/0x1f0 > [ 115.097024] RSP > [ 115.097024] CR2: 000fffe0 > [ 115.121352] ---[ end trace 16bb8e8408b97d0e ]--- > > Cc: Konstantin Khlebnikov > Cc: Glauber Costa > Cc: Johannes Weiner > Cc: Michal

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-05-14 Thread Michal Hocko
On Tue 14-05-13 16:40:31, Michal Hocko wrote: > On Tue 14-05-13 16:38:38, Andrey Vagin wrote: > > struct memcg_cache_params has a union. Different parts of this union are > > used for root and non-root caches. A part with destroying work is used only > > for non-

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-05-14 Thread Michal Hocko
On Tue 14-05-13 18:49:07, Glauber Costa wrote: > On 05/14/2013 06:44 PM, Michal Hocko wrote: > > On Tue 14-05-13 16:40:31, Michal Hocko wrote: > >> On Tue 14-05-13 16:38:38, Andrey Vagin wrote: > >>> struct memcg_cache_params has a union. Different parts of this uni

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-05-14 Thread Michal Hocko
4 53 48 83 ec 18 8b 05 8e 53 b7 00 4c 8b 4d 08 21 f0 a8 > 10 74 0d 4c 89 4d c0 e8 1b 76 4a 00 4c 8b 4d c0 e9 92 00 00 00 4d 89 f5 <4d> > 8b 45 00 65 4c 03 04 25 48 cd 00 00 49 8b 50 08 4d 8b 38 49 > [ 115.097024] RIP [] kmem_cache_alloc+0x41/0x1f0 > [ 115.097024] RSP > [

Re: 3.10-rc1 system starts regular boot when waking from s2ram

2013-05-15 Thread Michal Hocko
On Tue 14-05-13 22:09:34, Rafael J. Wysocki wrote: > On Tuesday, May 14, 2013 06:01:08 PM Michal Hocko wrote: > > Hi, > > I am not able to make my system wake up from s2ram with 3.10-rc1. The > > system simply starts booting as if it wasn't suspended. 3.9 wo

Re: CONFIG_HYPERVISOR_GUEST=y {-- replace -- CONFIG_PARAVIRT_GUEST=y {= { # CONFIG_HYPERVISOR_GUEST is not set } Re: 3.10-rc1 system starts regular boot when waking from s2ram Fw: [PATCH 2/2] x86: M

2013-05-15 Thread Michal Hocko
15/160) For record: $grep HYPERVISOR_GUEST .config # CONFIG_HYPERVISOR_GUEST is not set $grep PARAVIRT_GUEST .config $ [...] -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at h

Re: CONFIG_HYPERVISOR_GUEST=y {-- replace -- CONFIG_PARAVIRT_GUEST=y {= { # CONFIG_HYPERVISOR_GUEST is not set } Re: 3.10-rc1 system starts regular boot when waking from s2ram Fw: [PATCH 2/2] x86: M

2013-05-15 Thread Michal Hocko
GUEST is not set > > > Why not > CONFIG_HYPERVISOR_GUEST=y This is unrelated to the issue discussed in this thread. -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 0/9] Reduce system disruption due to kswapd V4

2013-05-16 Thread Michal Hocko
On Thu 16-05-13 11:33:45, Mel Gorman wrote: [...] > swapin in this case is an indication as to whether we are swap trashing. > The closer the swapin/swapout ratio is to 0, the worse the I guess you meant the ratio is closer to 1 not zero. -- Michal Hocko SUSE Labs -- To unsubscrib

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Michal Hocko
chset: > - move memcg_dangling_add() to mem_cgroup_css_offline() > - remove memcg->memcg_name, and use cgroup_path() in > mem_cgroup_dangling_read()? Every improvement is welcome. Thanks -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Michal Hocko
On Sun 07-04-13 14:00:24, Li Zefan wrote: > On 2013/4/4 20:00, Michal Hocko wrote: > > On Wed 03-04-13 17:11:15, Li Zefan wrote: > >> (I'll be off from my office soon, and I won't be responsive in the > >> following > >> 3 days.) > >> >

Re: [PATCH 07/12] memcg: use css_get/put when charging/uncharging kmem

2013-04-08 Thread Michal Hocko
- added wmb() in kmem_cgroup_css_offline(), pointed out by Michal > - revised comments as suggested by Michal > - fixed to check if kmem is activated in kmem_cgroup_css_offline() > > Signed-off-by: Li Zefan Acked-by: Michal Hocko Thanks! > --- > mm/memcontrol.c | 66 >

Re: [PATCH 12/12] memcg: don't need to free memcg via RCU or workqueue

2013-04-08 Thread Michal Hocko
> This actually reverts 59927fb984de1703c67bc640c3e522d8b5276c73 > ("memcg: free mem_cgroup by RCU to fix oops"). > > Cc: Hugh Dickins > Signed-off-by: Li Zefan OK, makes sense after the previous changes. Acked-by: Michal Hocko > --- > mm/memcontrol.c | 51 +-

Re: [PATCH 13/12] memcg: don't need memcg->memcg_name

2013-04-08 Thread Michal Hocko
> @@ -5203,6 +5185,7 @@ static int mem_cgroup_dangling_read(struct cgroup > *cont, struct cftype *cft, > } > > mutex_unlock(&dangling_memcgs_mutex); > + free_pages((unsigned long)memcg_name, 0); > return 0; > } > #endif > -- > 1.8.0.2 > -- > To

Re: [PATCH 0/8] memcg, cgroup: kill css_id

2013-04-08 Thread Michal Hocko
ns(-) Nice and thanks a lot Li! -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 1/8] cgroup: implement cgroup_is_ancestor()

2013-04-08 Thread Michal Hocko
ate *debug_css_alloc(struct cgroup *cont) > { > -- > 1.8.0.2 > -- > To unsubscribe from this list: send the line "unsubscribe cgroups" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 4/8] memcg: convert to use cgroup_from_id()

2013-04-08 Thread Michal Hocko
On Mon 08-04-13 16:21:29, Li Zefan wrote: > This is a preparation to kill css_id. > > Signed-off-by: Li Zefan I would be tempted to stuff this into the same patch which introduces cgroup_from_id but this is just a minor thing. Acked-by: Michal Hocko > --- > mm/memcontrol.c |

Re: [PATCH 5/8] memcg: convert to use cgroup->id

2013-04-08 Thread Michal Hocko
guarantee for bisectability. The patch on its own looks good. Acked-by: Michal Hocko > --- > mm/memcontrol.c | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 3561d0b..c4e0173 100644 > --- a/mm/m

Re: [PATCH 6/8] memcg: fail to create cgroup if the cgroup id is too big

2013-04-08 Thread Michal Hocko
On Mon 08-04-13 16:22:34, Li Zefan wrote: > memcg requires the cgroup id to be smaller than 65536. > > Signed-off-by: Li Zefan But this should be moved up the patch stack as mentioned in the previous email. Acked-by: Michal Hocko Minor nit bellow. > --- > mm/memcontrol.c | 9

Re: [PATCH 7/8] memcg: don't use css_id any more

2013-04-08 Thread Michal Hocko
On Mon 08-04-13 16:23:16, Li Zefan wrote: > Now memcg uses cgroup->id instead of css_id. Update some comments and > set mem_cgroup_subsys->use_id to 0. > > Signed-off-by: Li Zefan Acked-by: Michal Hocko > --- > mm/memcontrol.c | 21 +++-- > 1 file c

Re: [PATCH 1/8] cgroup: implement cgroup_is_ancestor()

2013-04-08 Thread Michal Hocko
On Mon 08-04-13 08:57:26, Tejun Heo wrote: > Hello, > > On Mon, Apr 08, 2013 at 04:47:50PM +0200, Michal Hocko wrote: > > On Mon 08-04-13 16:20:11, Li Zefan wrote: > > [...] > > > @@ -5299,6 +5300,26 @@ struct cgroup_subsys_state > > > *cgroup_css_from_dir

Re: [PATCH 1/8] cgroup: implement cgroup_is_ancestor()

2013-04-08 Thread Michal Hocko
On Mon 08-04-13 16:47:50, Michal Hocko wrote: > On Mon 08-04-13 16:20:11, Li Zefan wrote: > [...] > > @@ -5299,6 +5300,26 @@ struct cgroup_subsys_state > > *cgroup_css_from_dir(struct file *f, int id) > > return css ? css : ERR_PTR(-ENOENT); > > } > >

Re: [PATCH 1/8] cgroup: implement cgroup_is_ancestor()

2013-04-08 Thread Michal Hocko
On Mon 08-04-13 14:36:46, Tejun Heo wrote: > On Mon, Apr 08, 2013 at 08:03:44PM +0200, Michal Hocko wrote: > > __mem_cgroup_same_or_subtree relies on css_is_ancestor if hierarchy is > > enabled for ages. This, however, is not correct because use_hierarchy > > doesn't need

Re: [PATCH 5/8] memcg: convert to use cgroup->id

2013-04-08 Thread Michal Hocko
On Tue 09-04-13 11:02:20, Li Zefan wrote: > On 2013/4/8 22:57, Michal Hocko wrote: > > On Mon 08-04-13 16:22:11, Li Zefan wrote: > >> This is a preparation to kill css_id. > >> > >> Signed-off-by: Li Zefan > > > > This patch depends on the follow

Re: [PATCH 3/8] memcg: convert to use cgroup_is_ancestor()

2013-04-08 Thread Michal Hocko
On Mon 08-04-13 16:21:14, Li Zefan wrote: > This is a preparation to kill css_id. > > Signed-off-by: Li Zefan Acked-by: Michal Hocko > --- > mm/memcontrol.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-04-09 Thread Michal Hocko
5GB copied before I stop dd, but the used > >pages which I monitor during dd always around 1200MB. Weird, why? > > > > Sorry for waste your time, but the test result is weird, is it? I am not sure which values you have been watching but you have to realize that you are reading

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-09 Thread Michal Hocko
as kswapd will > reclaim excessively if it is to balance zones for high-order allocations. > > Signed-off-by: Mel Gorman > Reviewed-by: Rik van Riel > Acked-by: Johannes Weiner Reviewed-by: Michal Hocko > --- > mm/vmscan.c | 53 +---

Re: [PATCH v3 3/3] hugetlbfs: add swap entry check in follow_hugetlb_page()

2013-04-10 Thread Michal Hocko
(pte)) || > ((flags & FOLL_WRITE) && !pte_write(huge_ptep_get(pte { > int ret; OK, thanks! -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger

Re: [RESEND][PATCH v5 3/3] hugetlbfs: add swap entry check in follow_hugetlb_page()

2013-04-10 Thread Michal Hocko
gt; for hwpoisoned ones. > > ChangeLog v5: > - improve comment and description. > > ChangeLog v4: > - move is_swap_page() to right place. > > ChangeLog v3: > - add comment about using is_swap_pte() > > Signed-off-by: Naoya Horiguchi > Cc: sta...@vger.kern

Re: [PATCH V3 4/8] memcg: add per cgroup dirty pages accounting

2013-05-03 Thread Michal Hocko
On Wed 02-01-13 11:44:21, Michal Hocko wrote: > On Wed 26-12-12 01:26:07, Sha Zhengju wrote: > > From: Sha Zhengju > > > > This patch adds memcg routines to count dirty pages, which allows memory > > controller > > to maintain an accurate view of the a

Re: OOM-killer and strange RSS value in 3.9-rc7

2013-05-03 Thread Michal Hocko
ic commit(s), please? > Making requests for large amounts of memory from an allocator that is > supposed to hand out fraction of a page does not make sense. AFAIR there were lots of objects in size-512 as well. -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line

since-3.9 branch opened for mm git tree

2013-05-03 Thread Michal Hocko
orkfn() Mel Gorman (2): mm: page_alloc: avoid marking zones full prematurely after zone_reclaim() mm: swap: mark swap pages writeback before queueing for direct IO Michal Hocko (10): memcg: fix memcg_cache_name() to use cgroup_name() Merge remote-tracking branch 'tj-cgroup

Re: [patch] mm, memcg: don't take task_lock in task_in_mem_cgroup

2013-05-07 Thread Michal Hocko
m_cgroup() to return bool. > > Signed-off-by: David Rientjes Well spotted! Acked-by: Michal Hocko Thanks > --- > include/linux/memcontrol.h | 9 + > mm/memcontrol.c| 11 ++- > 2 files changed, 11 insertions(+), 9 deletions(-) > > diff -

Re: [RFC][PATCH 1/7] defer clearing of page_private() for swap cache pages

2013-05-10 Thread Michal Hocko
0 00 49 89 9c 24 48 0f 00 00 e9 0a > [ 26.115282] RIP [] > __mem_cgroup_uncharge_common+0x255/0x2e0 > [ 26.115282] RSP > [ 26.171597] ---[ end trace 5e49a21e51452c24 ]--- > > > mm/memcontrol:4111 > VM_BUG_ON(PageSwapCache(page)); > > Seems that mem_cgroup_unch

Re: OOM-killer and strange RSS value in 3.9-rc7

2013-04-24 Thread Michal Hocko
Tue, Apr 23, 2013 at 03:15:58PM +0200, Michal Hocko wrote: > > On Tue 23-04-13 12:22:34, Han Pingtian wrote: > > > On Mon, Apr 22, 2013 at 01:40:52PM +0200, Michal Hocko wrote: > > > > [...] > > > > > -CONFIG_SLUB_DEBUG=y > > > > &g

Re: [v3.9-rc8]: kernel BUG at mm/memcontrol.c:3994! (was: Re: [BUG][s390x] mm: system crashed)

2013-04-24 Thread Michal Hocko
apCache(page)) Maybe not many people run with CONFIG_DEBUG_VM enabled these days so we do not this more often (even me testing configs are not consistent in that regards and only few have it on). The only thing that changed in this area recently is 0c59b89c which made the test VM_BUG_ON rather t

Re: OOM-killer and strange RSS value in 3.9-rc7

2013-04-29 Thread Michal Hocko
issue with the page allocator then. You seem to have CONFIG_MEMCG_KMEM enabled. Do you see the same issue when this is disabled? The kmem accounting should be disabled unless a specific limit is set but it would be better to know that this is not the factor. -- Michal Hocko SUSE Labs -- To unsubsc

Re: [RESEND][PATCH v5 2/3] fix hugetlb memory check in vma_dump_size()

2013-04-11 Thread Michal Hocko
fected by bit 5-6. > > > > However current code can go into the subsequent flag checks of bit 0-4 > > for vma(VM_HUGETLB). So this patch inserts 'return' and makes it work > > as written in the document. > > > > Signed-off-by: Naoya Horiguchi >

Re: [PATCH 0/10] Reduce system disruption due to kswapd V2

2013-04-11 Thread Michal Hocko
ve processes at least. We can pin processes to > > subsets of cores but I don't think there's a way to keep kswapd from > > waking up on any of them? > > I've never tried it myself but does the following work? > > taskset -p MASK `pidof kswapd` I would use

Re: [PATCH 4/4] memcg: force use_hierarchy if sane_behavior

2013-04-14 Thread Michal Hocko
intended behavior. Limits are not propagated to the children because they are enforced anyway (by reclaim). The behavior would be quite inconsistent when the parent limit would be changed later otherwise. We only inherit properties which are enforced hierarchically: use_hierarchy, oom_disable and swappi

Re: [PATCH 4/4] memcg: force use_hierarchy if sane_behavior

2013-04-15 Thread Michal Hocko
se? It wasn't obvious, at least from me. Other than that. Acked-by: Michal Hocko Thanks! > Signed-off-by: Tejun Heo > Cc: Michal Hocko > Cc: KAMEZAWA Hiroyuki > --- > include/linux/cgroup.h | 3 +++ > mm/memcontrol.c| 13 + > 2 files chan

Re: [PATCHSET] cgroup, memcg: introduce sane_behavior mount option

2013-04-15 Thread Michal Hocko
you wanna route it. You can route it via your tree as it seems like the simplest way. Thanks! -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.ke

Re: [PATCH v2 4/4] memcg: force use_hierarchy if sane_behavior

2013-04-15 Thread Michal Hocko
et's remove it. > > v2: Explain that mem_cgroup_bind() doesn't have to worry about > children as suggested by Michal Hocko. Thanks a lot Tejun! > > Signed-off-by: Tejun Heo > Acked-by: Serge E. Hallyn > Acked-by: Li Zefan > Acked-by: Michal Hocko > Ack

Re: [patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code

2013-05-17 Thread Michal Hocko
On Thu 16-05-13 15:12:00, Tejun Heo wrote: > Sorry about the delay. Just getting back to memcg. > > On Mon, May 13, 2013 at 09:46:10AM +0200, Michal Hocko wrote: > ... > > during the first pass. Only groups which are over their soft limit or > > any of their parents up t

Re: [patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code

2013-05-17 Thread Michal Hocko
the leader email into the first patch as he tend to do quite often in other cases as well. -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/

Re: [patch v3 -mm 3/3] vmscan, memcg: Do softlimit reclaim also for targeted reclaim

2013-05-17 Thread Michal Hocko
On Thu 16-05-13 16:12:38, Tejun Heo wrote: > On Mon, May 13, 2013 at 09:46:12AM +0200, Michal Hocko wrote: > > Soft reclaim has been done only for the global reclaim (both background > > and direct). Since "memcg: integrate soft reclaim tighter with zone > > shrinking co

Re: [patch v3 -mm 3/3] vmscan, memcg: Do softlimit reclaim also for targeted reclaim

2013-05-17 Thread Michal Hocko
On Wed 15-05-13 12:42:10, Glauber Costa wrote: > On 05/13/2013 11:46 AM, Michal Hocko wrote: > > Soft reclaim has been done only for the global reclaim (both background > > and direct). Since "memcg: integrate soft reclaim tighter with zone > > shrinking code&qu

Re: 3.10-rc1 system starts regular boot when waking from s2ram

2013-05-17 Thread Michal Hocko
On Fri 17-05-13 14:11:26, Rafael J. Wysocki wrote: > On Friday, May 17, 2013 09:54:46 AM Michal Hocko wrote: > > On Wed 15-05-13 11:56:08, Michal Hocko wrote: > > > OK, I have bisected it to 78d77df7 (x86-64, init: Do not set NX bits on > > > non-NX capable hardware). Re

Re: 3.10-rc1 system starts regular boot when waking from s2ram

2013-05-17 Thread Michal Hocko
On Fri 17-05-13 14:23:51, Rafael J. Wysocki wrote: > On Friday, May 17, 2013 02:09:30 PM Michal Hocko wrote: > > On Fri 17-05-13 14:11:26, Rafael J. Wysocki wrote: > > > On Friday, May 17, 2013 09:54:46 AM Michal Hocko wrote: > > > > On Wed 15-05-13 11:56:08, Micha

Re: [patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code

2013-05-20 Thread Michal Hocko
On Fri 17-05-13 12:02:47, Johannes Weiner wrote: > On Mon, May 13, 2013 at 09:46:10AM +0200, Michal Hocko wrote: > > Memcg soft reclaim has been traditionally triggered from the global > > reclaim paths before calling shrink_zone. mem_cgroup_soft_limit_reclaim > > then pi

[PATCH] Revert "x86-64, init: Do not set NX bits on non-NX capable hardware"

2013-05-20 Thread Michal Hocko
x27;t suspended in RAM at all. References: https://lkml.org/lkml/2013/5/14/398 Cc: sta...@vger.kernel.org # 3.9 Signed-off-by: Michal Hocko --- arch/x86/kernel/head64.c |3 +-- arch/x86/kernel/head_64.S |1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/kernel/head6

Re: [PATCH] Revert "x86-64, init: Do not set NX bits on non-NX capable hardware"

2013-05-20 Thread Michal Hocko
On Mon 20-05-13 10:21:09, Linus Torvalds wrote: > On Mon, May 20, 2013 at 9:43 AM, Michal Hocko wrote: > > > > The configuration has been posted in the referenced thread: > > https://lkml.org/lkml/2013/5/14/398 > > Hmm. That's a regular intel i5 Sandybridge CPU.

Re: [PATCH] Revert "x86-64, init: Do not set NX bits on non-NX capable hardware"

2013-05-20 Thread Michal Hocko
On Mon 20-05-13 11:30:31, H. Peter Anvin wrote: > On 05/20/2013 11:23 AM, Michal Hocko wrote: > > On Mon 20-05-13 10:21:09, Linus Torvalds wrote: > >> On Mon, May 20, 2013 at 9:43 AM, Michal Hocko wrote: > >>> > >>> The configuration has been po

Re: [patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code

2013-05-20 Thread Michal Hocko
On Mon 20-05-13 16:44:38, Michal Hocko wrote: [...] > I had one group (call it A) with the streaming IO load (dd if=/dev/zero > of=file with 4*TotalRam size) and a parallel hierarchy with 2 groups > with up to 12 levels each (512, 1024, 4096, 8192 groups) and no limit > set. I have

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-05-22 Thread Michal Hocko
On Wed 22-05-13 11:56:38, Andrew Vagin wrote: > On Wed, May 22, 2013 at 03:50:24PM +0800, Li Zefan wrote: > > On 2013/5/22 15:40, Andrew Vagin wrote: > > > On Tue, May 14, 2013 at 06:08:59PM +0200, Michal Hocko wrote: > > >> > > >> Forgot to add > >

Re: [PATCH 1/4] mm/memory-hotplug: fix lowmem count overflow when offline pages

2013-05-22 Thread Michal Hocko
t would have been more straightforward to show number of HighTotal before hotremove, show how much memory has been removed and the number after. It is not clear which stable kernels need this fix as well. > > Signed-off-by: Wanpeng Li Anyway Reviewed-by: Michal Hocko with a nit pick b

Re: [PATCH 2/4] mm/pageblock: remove get/set_pageblock_flags

2013-05-22 Thread Michal Hocko
On Wed 22-05-13 17:29:28, Wanpeng Li wrote: > get_pageblock_flags and set_pageblock_flags are not used any > more, this patch remove them. > > Signed-off-by: Wanpeng Li Yes, git grep agrees Reviewed-by: Michal Hocko > --- > include/linux/pageblock-flags.h | 6 -- &g

Re: [PATCH 3/4] mm/hugetlb: remove hugetlb_prefault

2013-05-22 Thread Michal Hocko
On Wed 22-05-13 17:29:29, Wanpeng Li wrote: > hugetlb_prefault are not used any more, this patch remove it. > > Signed-off-by: Wanpeng Li Reviewed-by: Michal Hocko > --- > include/linux/hugetlb.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/l

Re: [PATCH 4/4] mm/hugetlb: use already exist interface huge_page_shift

2013-05-22 Thread Michal Hocko
On Wed 22-05-13 17:29:30, Wanpeng Li wrote: > Use already exist interface huge_page_shift instead of h->order + PAGE_SHIFT. alloc_bootmem_huge_page in powerpc uses the same construct so maybe you want to udpate that one as well. > > Signed-off-by: Wanpeng Li Reviewed-by:

Re: [PATCH 5/9] memcg: use css_get/put when charging/uncharging kmem

2013-05-24 Thread Michal Hocko
ions. As I have copied my comment from the earlier thread above. css_get does atomic_add which doesn't imply any barrier AFAIK and memcg_kmem_mark_dead uses a simple set_bit which doesn't imply it either. What am I missing? > > > > Yeah, I think you're right. > &g

Re: [PATCH v3 2/6] mm/memory_hotplug: remove memory_add_physaddr_to_nid

2013-05-26 Thread Michal Hocko
int nid = mi->blk[0].nid; > - int i; > - > - for (i = 0; i < mi->nr_blks; i++) > - if (mi->blk[i].start <= start && mi->blk[i].end > start) > - nid = mi->blk[i].nid; > - return nid; > -} > -EXPORT_

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread Michal Hocko
bool "Allow for memory hot remove" > select MEMORY_ISOLATION > select HAVE_BOOTMEM_INFO_NODE if X86_64 > + depends on 64BIT > depends on MEMORY_HOTPLUG && ARCH_ENABLE_MEMORY_HOTREMOVE > depends on MIGRATION > > -- > 1

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread Michal Hocko
y overall. > > And, yes, this patch is no good. Kconfig doesn't describe why disable > when highmem. > So, > > depends on 64BIT || !HIGHMEM || BROKEN > > maybe clear documentation more. I have no objection to disbale the feature for HIGHMEM configurations I was merely co

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread Michal Hocko
On Sun 26-05-13 17:06:17, Wanpeng Li wrote: > On Sun, May 26, 2013 at 11:00:54AM +0200, Michal Hocko wrote: > >On Sun 26-05-13 13:58:38, Wanpeng Li wrote: > >> As KOSAKI Motohiro mentioned, memory hotplug don't support 32bit since > >> it was born, > > &g

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread Michal Hocko
On Mon 27-05-13 07:51:38, Wanpeng Li wrote: > On Sun, May 26, 2013 at 08:12:09PM +0200, Michal Hocko wrote: > >On Sun 26-05-13 17:06:17, Wanpeng Li wrote: > >> On Sun, May 26, 2013 at 11:00:54AM +0200, Michal Hocko wrote: > >> >On Sun 26-05-13 13:58:38, Wanpeng Li wro

Re: [patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code

2013-05-27 Thread Michal Hocko
Hi, it took me a bit longer than I wanted but I was closed in a conference room in the end of the last week so I didn't have much time. On Mon 20-05-13 16:44:38, Michal Hocko wrote: > On Fri 17-05-13 12:02:47, Johannes Weiner wrote: > > On Mon, May 13, 2013 at 09:46:10AM +0200, Mich

[PATCH 1/3] memcg: track children in soft limit excess to improve soft limit

2013-05-27 Thread Michal Hocko
. The transition phase is recorded in soft_contributed flag. mem_cgroup_soft_reclaim_eligible then uses this information to better decide whether to skip the node or the whole subtree. The rule is simple. Skip the node with a children in excess or skip the whole subtree otherwise. Signed-off-by: M

[PATCH 3/3] memcg: Track all children over limit in the root

2013-05-27 Thread Michal Hocko
zation is necessary. Signed-off-by: Michal Hocko --- mm/memcontrol.c |9 + 1 file changed, 9 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 592df10..7fb063f 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -932,9 +932,15 @@ static void mem_cgroup_update_s

[PATCH 2/3] memcg, vmscan: Do not attempt soft limit reclaim if it would not scan anything

2013-05-27 Thread Michal Hocko
that we do not export root_mem_cgroup? Signed-off-by: Michal Hocko --- include/linux/memcontrol.h |2 ++ mm/memcontrol.c|2 +- mm/vmscan.c|5 - 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/linux/memcontrol.h b/include/

[PATCH] memcg: enhance memcg iterator to support predicates

2013-05-27 Thread Michal Hocko
Oh, forgot to post the first patch... --- >From 54b422ba96e3fa9264ee308c4fd9d5fe36efde63 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Mon, 20 May 2013 13:40:11 +0200 Subject: [PATCH] memcg: enhance memcg iterator to support predicates The caller of the iterator might know that some nodes

Re: Affine issues

2013-05-28 Thread Michal Hocko
Ryan > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- Mic

[PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
ht after kmem_cache_create_memcg makes a copy of it. Such a short-lived allocation doesn't make too much sense. So replace it by a static buffer as kmem_cache_dup is called with memcg_cache_mutex. Signed-off-by: Li Zefan Signed-off-by: Michal Hocko Acked-by: Glauber Costa --- mm/memcon

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
e patch you provided: > > > > Acked-by: Glauber Costa > > > > Michal, could you resend your final patch to Tejun in a new mail thread? > There are quite a few different patches inlined in this thread. Done. -- Michal Hocko SUSE Labs -- To unsubscribe from this

Re: [PATCH 03/10] soft-offline: use migrate_pages() instead of migrate_huge_page()

2013-03-27 Thread Michal Hocko
ate_huge_page(), we passed a hugepage to be migrated > as an argument, so the caller can still access to the page even if the > migration succeeds. [...] -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCH 03/10] soft-offline: use migrate_pages() instead of migrate_huge_page()

2013-03-27 Thread Michal Hocko
ve put_page should remove the last reference and then it will uncharge it but I do not see anything that would charge a new page. This is all because regula LRU pages are uncharged when they are unmapped. But this a different story not related to this series. [...] -- Michal Hocko S

Re: [PATCH 09/10] memory-hotplug: enable memory hotplug to handle hugepage

2013-03-27 Thread Michal Hocko
On Tue 26-03-13 14:23:24, Naoya Horiguchi wrote: > On Mon, Mar 25, 2013 at 04:09:52PM +0100, Michal Hocko wrote: > > On Fri 22-03-13 16:23:54, Naoya Horiguchi wrote: > ... > > > index d9d3dd7..ef79871 100644 > > > --- v3.9-rc3.orig/mm/hugetlb.c > > > ++

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
On Wed 27-03-13 10:58:25, Johannes Weiner wrote: > On Wed, Mar 27, 2013 at 09:36:39AM +0100, Michal Hocko wrote: [...] > > + /* > > +* kmem_cache_create_memcg duplicates the given name and > > +* cgroup_name for this name requires RCU context. > > +* This

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
On Wed 27-03-13 19:19:58, Glauber Costa wrote: > On 03/27/2013 07:11 PM, Michal Hocko wrote: > > On Wed 27-03-13 10:58:25, Johannes Weiner wrote: > >> On Wed, Mar 27, 2013 at 09:36:39AM +0100, Michal Hocko wrote: > > [...] > >>> + /* > >>> + * kmem_

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
On Wed 27-03-13 11:32:26, Johannes Weiner wrote: > On Wed, Mar 27, 2013 at 04:11:04PM +0100, Michal Hocko wrote: > > On Wed 27-03-13 10:58:25, Johannes Weiner wrote: > > > On Wed, Mar 27, 2013 at 09:36:39AM +0100,

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
On Wed 27-03-13 09:15:27, Tejun Heo wrote: > On Wed, Mar 27, 2013 at 09:36:39AM +0100, Michal Hocko wrote: > > +/* > > + * Called with memcg_cache_mutex held > > + */ > > static struct kmem_cache *kmem_cache_dup(struct mem_cgroup *memcg, > >

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
On Wed 27-03-13 09:21:02, Tejun Heo wrote: > On Wed, Mar 27, 2013 at 9:19 AM, Michal Hocko wrote: > >> Maybe the name could signify it's part of memcg? > > > > kmem_ prefix is used for all CONFIG_MEMCG_KMEM functions. I understand > > it clashes with sl?b nami

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-27 Thread Michal Hocko
On Wed 27-03-13 16:32:20, Michal Hocko wrote: > On Wed 27-03-13 19:19:58, Glauber Costa wrote: > > On 03/27/2013 07:11 PM, Michal Hocko wrote: > > > On Wed 27-03-13 10:58:25, Johannes Weiner wrote: > > >> On Wed, Mar 27, 2013 at 09:36:

Re: [PATCH 09/10] memory-hotplug: enable memory hotplug to handle hugepage

2013-03-27 Thread Michal Hocko
On Wed 27-03-13 17:29:19, Naoya Horiguchi wrote: > On Wed, Mar 27, 2013 at 03:19:21PM +0100, Michal Hocko wrote: [...] > > If we made sure that all page on the hugepage_freelists have reference > > 0 (which is now not the case and it is yet another source of confusion) > >

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-28 Thread Michal Hocko
On Wed 27-03-13 18:32:23, Michal Hocko wrote: [...] > Removed WARN_ON_ONCE as suggested by Johannes and kept kmalloc with > PATH_MAX used instead of PAGE_SIZE. I've kept Glauber's acked-by but I > can remove it. And hopefully the last version. I forgot to s/PAGE_SIZE/MA

<    4   5   6   7   8   9   10   11   12   13   >