lkml.org 
[lkml]   [2017]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] cgroup: move cgroup_subsys_state parent field for cache locality
Hello,

On Thu, Apr 06, 2017 at 06:47:57PM -0700, Todd Poynor wrote:
> From: Todd Poynor <toddpoynor@google.com>
>
> Various structures embed a struct cgroup_subsys_state, typically at
> the top of the containing structure. It is common for code that
> accesses the structures to perform operations that iterate over the
> chain of parent css pointers, also accessing data in each containing
> structure. In particular, struct cpuacct is used by fairly hot code
> paths in the scheduler such as cpuacct_charge().
>
> Move the parent css pointer field to the end of the structure to
> increase the chances of residing in the same cache line as the data
> from the containing structure.
>
> Signed-off-by: Todd Poynor <toddpoynor@google.com>

Applied to cgroup/for-4.12.

Thanks.

--
tejun

\
 
 \ /
  Last update: 2017-04-11 02:06    [W:0.180 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site