Potential Issue regarding cloudlet processing time method

1 view
Skip to first unread message

Kaiyi Huang

unread,
Oct 31, 2021, 7:34:15 PM10/31/21
to CloudSim Plus: Cloud Simulation Framework
Hello,

I am trying to use Cloudlet.ActualCpuTime(), which is the finishTime - getExecStarttime, in an onFinishListener to log the total cloudlet waiting+execution time per user. However, the result returned is always -1.0

Is this supposed to be the case?

Thanks,
Kaiyi

Kaiyi Huang

unread,
Oct 31, 2021, 9:01:02 PM10/31/21
to CloudSim Plus: Cloud Simulation Framework
Also, what's the recommended way of getting the total number of overloaded hosts per simulation?

Prof. Manoel Campos

unread,
Nov 1, 2021, 2:54:07 PM11/1/21
to clouds...@googlegroups.com
If your Cloudlet is not finished yet, it will return -1, as described in the method docs.
However, it could return the current CPU time so far instead.

Are you getting -1 even after cloudlets finish?

Manoel Campos da Silva Filho Software Engineer

Computer Science and Engineering Ph.D. Student at University of Beira Interior (Portugal)

Professor at Federal Institute of Education, Science and Technology of Tocantins (Brazil)

http://manoelcampos.com


 about.me


--
If you received an answer that worked for you, please be kind and reply to let everybody knows it worked.
http://cloudsimplus.org
---
You received this message because you are subscribed to the Google Groups "CloudSim Plus: Cloud Simulation Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim-plus/8e46290e-dfc3-4eda-b49c-b0316947a73an%40googlegroups.com.

Kaiyi Huang

unread,
Nov 2, 2021, 6:31:28 PM11/2/21
to CloudSim Plus: Cloud Simulation Framework
Hi Manoel,

I am getting -1 when calling the method inside a Cloudlet onFinishListener.

In addition, the start time of the cloudlet is always zero.

Prof. Manoel Campos

unread,
Nov 3, 2021, 9:32:51 AM11/3/21
to clouds...@googlegroups.com
Just fixed. 
Thanks for reporting.

Manoel Campos da Silva Filho Software Engineer

Computer Science and Engineering Ph.D. Student at University of Beira Interior (Portugal)

Professor at Federal Institute of Education, Science and Technology of Tocantins (Brazil)

http://manoelcampos.com


 about.me

Reply all
Reply to author
Forward
0 new messages