Closed zazim13 closed 1 year ago
Hi, you are right. A conversion of the value in the JSON descriptor is needed somewhere. In order to manage all the vales in MIPS I decided to remove the conversion everywhere but the time calculation. This will fixed in a next commit, but for now you can:
remove the pow
multiplication here and here. Next, the time calculation in calculateProcessingTime method becomes:
time = numOfInstructions/(pow(10,6)*currentSpeed);
in both the modes.
Let me know if everything gets solved,
best regards,
Alessandro
This has been fixed by commit b4e2b2f
Hi, I am experiencing strange processing time using vim->calculateProcessingTime() with fair sharing mode enabled. After some debugging I think that there is a problem with CPU units. The allocatedCPU variable has the same unit than virtualCpu parameter in the application descriptor Json, which should be MIPS from this answer. Than the maxCpuSpeed parameter that should be in MIPS also from here, is converted here in instruction per second. This is problematic when using fair sharing mode because the values are divided. It must also be problematic for admission control and must answer my precedent issue #160 Sincerely Hakim