[Devel] Re: [RFC}[PATCH] forced uncharge for successful rmdir.

2007-10-01 Thread Balbir Singh
KAMEZAWA Hiroyuki wrote: Hi, thank you for review. Your always welcome, thanks for helping with the controller. On Mon, 01 Oct 2007 09:46:02 +0530 Balbir Singh [EMAIL PROTECTED] wrote: @@ -424,17 +424,80 @@ void mem_cgroup_uncharge(struct page_cgr if

[Devel] Re: [RFC}[PATCH] forced uncharge for successful rmdir.

2007-09-30 Thread Balbir Singh
KAMEZAWA Hiroyuki wrote: An experimental patch. This patch adds an interface to uncharge all pages in memory cgroup if no tasks are in it. By this, a user can remove cgroup by 'rmdir'. To uncharge all remaing pages in cgrop, echo -n 0 to memory.control_type. (Just for test, please advise

[Devel] Re: [RFC}[PATCH] forced uncharge for successful rmdir.

2007-09-30 Thread KAMEZAWA Hiroyuki
Hi, thank you for review. On Mon, 01 Oct 2007 09:46:02 +0530 Balbir Singh [EMAIL PROTECTED] wrote: @@ -424,17 +424,80 @@ void mem_cgroup_uncharge(struct page_cgr if (atomic_dec_and_test(pc-ref_cnt)) { page = pc-page; lock_page_cgroup(page); - mem =

[Devel] Re: [RFC}[PATCH] forced uncharge for successful rmdir.

2007-09-27 Thread Balbir Singh
KAMEZAWA Hiroyuki wrote: Following patch is for successful rmdir in memory cgroup. Currently, rmdir against memory cgroup will fail if charged page caches are in cgroup. (even if no tasks in cgroup.) I don't like this. This patch implements forced uncharge against memory cgroup.

[Devel] Re: [RFC}[PATCH] forced uncharge for successful rmdir.

2007-09-27 Thread Badari Pulavarty
On Thu, 2007-09-27 at 16:30 +0900, KAMEZAWA Hiroyuki wrote: Following patch is for successful rmdir in memory cgroup. Currently, rmdir against memory cgroup will fail if charged page caches are in cgroup. (even if no tasks in cgroup.) I don't like this. This patch implements forced