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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <dhaval@...>, <linux-kernel@...>, <containers@...>, <menage@...>, <balbir@...>, <vatsa@...>, <a.p.zijlstra@...>
Date: Friday, May 2, 2008 - 6:47 pm

On Saturday 03 May 2008 01:23:04 am Andrew Morton wrote:
percpu_counter_init uses kmalloc to create percpu counters. This raises an 
early exception as kmem_cache is not initialized that early.

It worked for me if we statically allocate memory for the counters. But its 
not at all a nice thing to do and I don't see another way to make it fit for 
early use.

I'm beginning to run out of ideas! Why not do what I earlier suggested - begin 
collecting statistics once we are able to safely use percpu_counters ? This 
now seems to be the best alternative IMHO.

-- 
Warm Regards,

Balaji Rao
Dept. of Mechanical Engineering
NITK
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][-mm] Simple stats for cpu resource controller v3, Balaji Rao, (Fri May 2, 6:47 pm)