login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
4
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Daisuke Nishimura <d-nishimura@...>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Cc: Paul Menage <menage@...>, linux-mm@kvack.org <linux-mm@...>, LKML <linux-kernel@...>, balbir@linux.vnet.ibm.com <balbir@...>, xemul@openvz.org <xemul@...>, yamamoto@valinux.co.jp <yamamoto@...>
Subject:
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
Date: Wednesday, June 4, 2008 - 8:53 am
> > > @@ -1096,6 +1238,12 @@ static void mem_cgroup_destroy(struct cg
quoted text
> > > int node; > > > struct mem_cgroup *mem = mem_cgroup_from_cont(cont); > > > > > > + if (cont->parent && > > > + mem->hierarchy_model == MEMCG_HARDWALL_HIERARCHY) { > > > + /* we did what we can...just returns what we borrow */ > > > + res_counter_return_resource(&mem->res, -1, NULL, 0); > > > + } > > > + > > > > Should we also re-account any remaining child usage to the parent? > > > When this is called, there are no process in this group. Then, remaining > resources in this level is > - file cache > - swap cache (if shared) > - shmem > > And the biggest usage will be "file cache". > So, I don't think it's necessary to move child's usage to the parent, > in hurry. But maybe shmem is worth to be moved. > > I'd like to revisit this when I implements "usage move at task move" > logic. (currenty, memory usage doesn't move to new cgroup at task_attach.) > > It will help me to implement the logic "move remaining usage to the parent" > in clean way. >
I agree that "usage move at task move" is needed before "move remaining usage to the parent". Thanks, Daisuke Nishimura. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH 0/2] memcg: hierarchy support (v3)
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 12:58 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3)
, Balbir Singh
, (Mon Jun 9, 5:30 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3)
, KAMEZAWA Hiroyuki
, (Mon Jun 9, 5:55 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3)
, Balbir Singh
, (Mon Jun 9, 6:33 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3)
, Paul Menage
, (Wed Jun 4, 4:59 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3)
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 5:15 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3)
, Paul Menage
, (Wed Jun 4, 5:15 am)
Re: [RFC][PATCH 0/2] memcg: hierarchy support (v3)
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 5:31 am)
[RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 1:03 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, Randy Dunlap
, (Wed Jun 11, 7:24 pm)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 1:00 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, Balbir Singh
, (Mon Jun 9, 6:56 am)
Re: Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
,
, (Mon Jun 9, 8:09 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, Daisuke Nishimura
, (Wed Jun 4, 8:32 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 8:04 pm)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, Paul Menage
, (Wed Jun 4, 4:59 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 5:26 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, Daisuke Nishimura
, (Wed Jun 4, 8:53 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, Li Zefan
, (Wed Jun 4, 2:42 am)
Re: [RFC][PATCH 2/2] memcg: hardwall hierarhcy for memcg
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 2:54 am)
[RFC][PATCH 1/2] memcg: res_counter hierarchy
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 1:01 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Randy Dunlap
, (Wed Jun 11, 7:24 pm)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 12:59 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Balbir Singh
, (Mon Jun 9, 5:48 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, KAMEZAWA Hiroyuki
, (Mon Jun 9, 6:20 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Balbir Singh
, (Mon Jun 9, 6:37 am)
Re: Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
,
, (Mon Jun 9, 8:02 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Paul Menage
, (Wed Jun 4, 4:59 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 5:18 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, YAMAMOTO Takashi
, (Wed Jun 4, 3:20 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 3:32 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, Li Zefan
, (Wed Jun 4, 2:54 am)
Re: [RFC][PATCH 1/2] memcg: res_counter hierarchy
, KAMEZAWA Hiroyuki
, (Wed Jun 4, 3:03 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mariusz Kozlowski
[PATCH 01] kmalloc + memset conversion co kzalloc
Rafael J. Wysocki
[Bug #10629] 2.6.26-rc1-$sha1: RIP __d_lookup+0x8c/0x160
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
Jeff Garzik
Re: [RFC] Heads up on sys_fallocate()
git-commits-head
:
git
:
linux-netdev
:
Linus Torvalds
Re: [GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Andrew Morton
Re: [BUG] New Kernel Bugs
Colocation donated by:
Who's online
There are currently
3 users
and
931 guests
online.
Online users
kmatbuncitp
strcmp
catchacan57
Syndicate