Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Balaji Rao <balajirrao@...>
Cc: Dhaval Giani <dhaval@...>, <linux-kernel@...>, <containers@...>, <menage@...>, <balbir@...>, Srivatsa Vaddagiri <vatsa@...>
Date: Monday, April 7, 2008 - 9:24 am

On Sun, 2008-04-06 at 02:01 +0530, Balaji Rao wrote:


So many stats to steal code from,.. but you didn't :-(

Look at mm/vmstat.c, that is a rather complete example.

The trick to solving the above is to use per cpu deltas instead, the
deltas can be machine word size and are thus always read in an atomic
manner (provided they are also naturally aligned).

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

Messages in current thread:
Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller, Peter Zijlstra, (Mon Apr 7, 9:24 am)