login
Header Space

 
 

Mailing list archives

Search results

Found 87 matching messages (0.072 seconds). Page 1 of 5.

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... not look good either :) Description This patch adds support for accounting and control ... +#ifdef CONFIG_CGROUP_MEMRLIMIT_CTLR + +int memrlimit_cgroup_charge_as(struct mm_struct *mm, unsigned long nr_pages); +void memrlimit_cgroup_uncharge_as(struct ...

linux-kernel - Balbir Singh - May 14 2008 - 09:25

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... I've revamped the last two patches. Please review > Here's the ... CONFIG_CGROUP_MEMRLIMIT_CTLR + +int memrlimit_cgroup_charge_as(struct mm_struct *mm, unsigned long nr_pages); +void memrlimit_cgroup_uncharge_as( ... -2.6.26-rc2-balbir/mm/mmap.c 2008-05-17 ...

linux-kernel - Balbir Singh - May 17 2008 - 16:17

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... the patches one-by-one resolving differences starting from #mm in ... :19:29.000000000 -0700 @@ -16,4 +16,25 @@ #ifndef LINUX_MEMRLIMITCGROUP_H #define ... inline int +memrlimit_cgroup_charge_as(struct mm_struct *mm, unsigned long nr_pages) +{ + return 0 ...

linux-kernel - Balbir Singh - Sep 19 2008 - 02:38

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... Thanks, > I've revamped the last two patches. Please review This ... h~cgroup-add-task-to-mm-owner-callbacks include/linux/cgroup ... task_unlock(c); put_task_struct(c); + up_write(&mm->mmap_sem); } #endif /* CONFIG_MM_OWNER */ _ -- Warm ...

linux-kernel - Balbir Singh - May 17 2008 - 16:15

Re: [-mm][PATCH 4/5] core of reclaim throttle

... mail, please drop it. right patch is here. ------------------------------------------------------------------------ add throttle to ... 00:39:44.000000000 +0900 +++ b/mm/page_alloc.c 2008-05-03 ... :39:44.000000000 +0900 +++ b/mm/Kconfig 2008-05-03 00: ...

linux-kernel - KOSAKI Motohiro - May 4 2008 - 09:12

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... -controller-accounting-and-control.patch: *************** *** 808,828 **** current->mm->total_vm -= old_size; current->mm-> ... 0) goto out; + if (memrlimit_cgroup_charge_as(current->mm, size)) + goto out; + rlim = current-> ...

linux-kernel - Andrew Morton - Sep 18 2008 - 16:54

Re: [-mm PATCH 4/7] Memory controller memory accounting

... -2.6.22-rc6-balbir/mm/migrate.c 2007-07-04 15 ... (struct > return; > } > > + if (mem_container_charge(page, mm)) { Minor correction. The above line should be if (mem_container_charge(new, mm)) { to avoid compilation error. --Vaidy ...

linux-kernel - Vaidyanathan Srinivasan - Jul 5 2007 - 14:46

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v5)

... total_vm does not change underneath us >> + */ >> + down_read(&mm->mmap_sem); >> + >> + rcu_read_lock(); >> + if (p != rcu_dereference(mm->owner)) ... cause a problem > OTOH, while updating the mm->owner in mmm_update_next_owner(), we > are not using ...

linux-kernel - Balbir Singh - May 22 2008 - 00:41

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... charges the new res counter and updates mm->total_vm A: memrlimit_cgroup_move_task() ... rcu_read_lock(). > + if (res_counter_charge(&memrcg->as_res, (mm->total_vm << PAGE_SHIFT))) > + goto out; > + res_counter_uncharge(& ...

linux-kernel - Paul Menage - May 14 2008 - 22:25

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... return ret; > > +} > > Assuming that we're holding a write lock on ... prevent address space changes */ > down_read(&mm->mmap_sem); > /* task_lock(p) to prevent ... cgroup_mutex Looking at the mm->owner patches, I am thinking of ...

linux-kernel - Balbir Singh - May 15 2008 - 02:17

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... that we're holding a write lock on mm->mmap_sem here ... simply: > > > > int memrlimit_cgroup_charge_as(struct mm_struct *mm, unsigned long nr_pages) > > { > > struct memrlimit_cgroup ... cgroup's res_counter and update mm->total_vm, and then when we ...

linux-kernel - Paul Menage - May 15 2008 - 02:55

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

... > > > > Assuming that we're holding a write lock on mm->mmap_sem here, and we > > ... > > > like simply: > > > > > > int memrlimit_cgroup_charge_as(struct mm_struct *mm, unsigned long nr_pages) > > > { > > > struct memrlimit_cgroup *memrcg = ...

linux-kernel - Balbir Singh - May 15 2008 - 03:03

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v5)

... that total_vm does not change underneath us > + */ > + down_read(&mm->mmap_sem); > + > + rcu_read_lock(); > + if (p != rcu_dereference(mm->owner)) ... not be a problem. OTOH, while updating the mm->owner in mmm_update_next_owner(), we are not using ...

linux-kernel - Vivek Goyal - May 21 2008 - 13:20

Re: [-mm][PATCH 4/4] Add rlimit controller documentation

... .com> wrote: > >> >> This is the documentation patch. It describes the rlimit controller and ... , yes? > Yesm true > (can am mm be shared by two threads whcih ... avoid duplicate accounting > due to multiple-mms-mapping-the-same-pages, which afaict ...

linux-kernel - Balbir Singh - May 6 2008 - 01:39

Re: [-mm PATCH 4/8] Memory controller memory accounting (v2)

... mm/memory.c~mem-control-accounting mm/memory.c > --- linux-2.6.22 ... vma); > } > > + if (mem_container_charge(new_page, mm)) > + goto oom; > + > /* > * Re-check the pte ... check the rest of the patch by yourself? thanks. YAMAMOTO Takashi ...

linux-kernel - YAMAMOTO Takashi - Jul 10 2007 - 03:26

Re: [-mm PATCH 4/8] Memory controller memory accounting (v2)

... , address, vma); > > } > > > > + if (mem_container_charge(new_page, mm)) > > + goto oom; > > + > > /* > > * Re-check the pte - we ... can you check the rest of the patch by yourself? thanks. > Excellent catch! I' ...

linux-kernel - Balbir Singh - Jul 10 2007 - 04:41

Re: [-mm][PATCH 4/4] Add memrlimit controller accounting and control (v4)

Balbir Singh wrote: > This patch adds support for accounting and control of ... \n", rsize, size)); > > + if (memrlimit_cgroup_charge_as(mm, size >> PAGE_SHIFT)) > + return -ENOMEM; > + AFAIS ... the amount of places to patch. [snip the rest of the ...

linux-kernel - Pavel Emelyanov - May 14 2008 - 09:32

Re: [-mm PATCH 4/8] Memory controller memory accounting (v2)

... .co.jp> wrote: > > hi, > > > > > diff -puN mm/memory.c~mem-control-accounting mm ... , vma); > > > } > > > > > > + if (mem_container_charge(new_page, mm)) > > > + goto oom; > > > + > > > /* > > > * Re-check the pte - ...

linux-kernel - YAMAMOTO Takashi - Jul 10 2007 - 04:44

Re: [-mm PATCH 4/8] Memory controller memory accounting (v2)

... .co.jp> wrote: >>> hi, >>> >>>> diff -puN mm/memory.c~mem-control-accounting mm/ ... address, vma); >>>> } >>>> >>>> + if (mem_container_charge(new_page, mm)) >>>> + goto oom; >>>> + >>>> /* >>>> * Re-check the pte - ...

linux-kernel - Balbir Singh - Jul 10 2007 - 11:42

Re: [-mm][PATCH 4/4] Add rlimit controller documentation

... .com> wrote: > > > This is the documentation patch. It describes the rlimit controller and ... the resource group, yes? (can am mm be shared by two threads whcih ... avoid duplicate accounting due to multiple-mms-mapping-the-same-pages, which afaict ...

linux-kernel - Andrew Morton - May 5 2008 - 18:35

speck-geostationary