lkml.org 
[lkml]   [2008]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/2] cpuacct: refactoring cpuusage_read / cpuusage_write

* Ken Chen <kenchen@google.com> wrote:

> In the thread regarding to 'export percpu cpuacct cgroup stats'
> http://lkml.org/lkml/2008/12/7/13
>
> akpm pointed out that current cpuacct code is inefficient. This patch
> refactoring the following:
>
> * make cpu_rq locking only on 32-bit
> * change iterator to each_present_cpu instead of each_possible_cpu to
> make it hotplug friendly.
>
> It's a bit of code churn, but I was rewarded with 160 byte code size saving
> on x86-64 arch and zero code size change on i386.

applied to tip/sched/core, thanks Ken!

Ingo


\
 
 \ /
  Last update: 2008-12-16 12:19    [W:0.033 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site