Re: [RFC][-mm] Simple stats for cpu resource controller v3

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Balaji Rao <balajirrao@...>
Cc: <dhaval@...>, <linux-kernel@...>, <containers@...>, <menage@...>, <balbir@...>, <vatsa@...>, <a.p.zijlstra@...>
Date: Friday, May 2, 2008 - 7:04 pm

On Sat, 3 May 2008 04:17:03 +0530
Balaji Rao <balajirrao@gmail.com> wrote:


whaa?  kmalloc is ready to be used quite early in boot.  It's a bit of a
concern that the CPU resource controller is doing stuff before even kmalloc
is ready to go.

What's the call path here?  Via cgroup_init_early()?  Does it need to run
that early?


I'd need to see the code.  If we end up doing

	if (counters_are_ready)
		increment_counter();

all over then place then we need to think harder.

Maybe we need a cgroup_init_late(), which can do memory allocations.  If
nothing actually needs to touch the counters before cgroup_init_late() runs
then that might be OK.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][-mm] Simple stats for cpu resource controller v3, Andrew Morton, (Fri May 2, 7:04 pm)