Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix miscalculation of CPU shares on a multicore PM.
authorTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Tue, 22 Oct 2013 09:14:18 +0000 (11:14 +0200)
committerTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Tue, 22 Oct 2013 09:14:18 +0000 (11:14 +0200)
commitcab169aceb66e0f811bab83b83743bc21795d524
treeacd70de0e4c798ee9c73abcd576eb6b54614fd99
parent525b02e6df5982c1c4d88e06df1e34e46a2cbd4e
Fix miscalculation of CPU shares on a multicore PM.

The recent commit adding the load capping feature broke CPU share
calculation on a multicore PM. This patch fixes the problem.

The bound value "0" means that there is no CPU bound for that task or
VM. On a single-core PM, this is true. The task can use all CPU resource
on that PM. On a multicore PM, the task can use the resource of
only a CPU core.

Even MSG_{task/vm}_set_bound() is not used in a simulation program,
simulation results will be wrong for multicore PMs. This is because
the bound value "0" is used internally.
src/msg/msg_vm.c
src/simix/smx_host.c
src/surf/cpu_cas01.c