I started one docker container by specifying the cpuset to 1 cores:
docker run --cpuset-cpus="0"...
A second one by specifying the cpuset to 4 cores:
docker run --cpuset-cpus="0-3"...
I launched a load process within each container and I monitored the cpu consumption for both containers.
The load process is like:
ffmpeg input > output
I have observed that there is no improvement in term of execution time between both containers (no speed up).
Do you have any idea why there is no improvements? container with 4 cores should run faster than 1 core container right ?
NB: using top for 1core container
CPU0%=100%
CPU1%=0
CPU2%=0
CPU3%=0
using top for 4core container, docker chooses randomly one of 4 cores to launch the process. Sometimes it affects 30% for each core
CPU0%=0 CPU0%=30% CPU0%=0
CPU1%=100% or CPU0%=30% or CPU0%=0
CPU2%=0 CPU0%=30% CPU0%=0
CPU3%=0 CPU0%=30% CPU0%=100%
ffmpeg input.avi ouput.mp3
– Indiscrimination