title: Linux Kernel- task_h_load
body: <p>I'm trying to understand what happens during the <code>load_balance</code> function.<br>
  I'm checking version 3.14 but I also took a look at version 4.3 since I was told that the mechanism was changed and a bit more clear in this version.</p>
  
  <p>in <strong>v3.14</strong> the call is from <a href="http://lxr.free-electrons.com/source/kernel/sched/fair.c?v=3.14#L4980"><code>move_tasks</code></a></p>
  
  <p>in <strong>v4.3</strong> the call is from <a href="http://lxr.free-electrons.com/source/kernel/sched/fair.c#L5702"><code>detach_tasks</code></a>  </p>
  
  <p>from what I see it is the same function but only with a different name.</p>
  
  <p>This function is moving tasks from one queue to another according to the <code>env-&gt;balance</code> parameter.<br>
  What I don't understand is what/how the load is calculated in <a href="http://lxr.free-electrons.com/source/kernel/sched/fair.c#L5739"><code>task_h_load</code></a>.  </p>
  
  <p>Does anyone know what the load member represent and how it is calculated in the <strong><code>task_h_load</code></strong> function?  </p>