Re: [PATCH] introduce task cgroup v2

From: KOSAKI Motohiro
Date: Sun Jun 15 2008 - 21:33:23 EST


Hi Paul,

very sorry, late responce.

> > +struct task_cgroup {
> > + struct cgroup_subsys_state css;
> > + /*
> > + * the counter to account for number of thread.
> > + */
> > + int max_tasks;
> > + int nr_tasks;
> > +
> > + spinlock_t lock;
> > +};
>
> This looks rather like a res_counter. Can you resuse that rather than
> implementing your own read/write/charge/uncharge routines?

honestly, I used res_counter on early version.
but I got bad performance.
tus, I changed to current implementation.

Of cource, if res_counter become faster, I'll use it.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/