Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Minor improv in threads
authorBruno Donassolo <bruno.donassolo@inria.fr>
Fri, 11 Mar 2022 11:36:55 +0000 (12:36 +0100)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Fri, 11 Mar 2022 11:36:55 +0000 (12:36 +0100)
commite53dd061b19eb00edcb1ab45fb14981d0b8848b8
tree9c2f25638c363d95f2b2188be3a1586c870eb425
parent4049157963fde42d8ab2e1dea5d1fca83af6ad08
Minor improv in threads

Let the user_bound for bounds given by S4U user (if any).

For the requested_cores, the bound is already configured when creating
the action at CpuCas01Action.

Also, the current implementation for threads use the same mechanism used
by VMs, for a N-thread action:
- priority/sharing_penalty: 1/N to increase the amount of CPU given to
action.
- individual bound: speed < N*C: to limit the action speed to the number
of cores.
src/kernel/resource/VirtualMachineImpl.cpp
src/surf/host_clm03.cpp