[Devel] Re: [RFC][v2][patch 0/12][CFQ-cgroup]Yet another I/O bandwidth controlling subsystem for CGroups based on CFQ

2008-05-25 Thread Ryo Tsuruta
Hi Uchida-san, Thanks for your comment. > Where did you build expanded CFQ schedulers? > I guess that schedulers can be control I/Os if it is built on guest OS, > But not if on Dom0. > I guess you built on Dom0 so that you could not control I/O. (maybe, you say) I built them on guest OS. > I'm

[Devel] Re: [PATCH 3/4] swapcgroup: implement charge/uncharge

2008-05-25 Thread KAMEZAWA Hiroyuki
On Fri, 23 May 2008 20:52:29 +0900 Daisuke Nishimura <[EMAIL PROTECTED]> wrote: > On 2008/05/22 16:37 +0900, KAMEZAWA Hiroyuki wrote: > > On Thu, 22 May 2008 15:20:05 +0900 > > Daisuke Nishimura <[EMAIL PROTECTED]> wrote: > > > >> +#ifdef CONFIG_CGROUP_SWAP_RES_CTLR > >> +int swap_cgroup_charge(s

[Devel] Re: [PATCH 4/4] swapcgroup: modify vm_swap_full for cgroup

2008-05-25 Thread YAMAMOTO Takashi
> How about something like this? > > : > usage = swap_cgroup_read_usage(mem); //no need to align to number of page > limit = swap_cgroup_read_limit(mem); //no need to align to number of page > ret = (usage * 2 > limit) || (nr_swap_pages * 2 < total_swap_pages) > : it seems reasonable to me.