PowerExample - printHostCpuUtilizationAndPowerConsumption() not printing anything

8 views
Skip to first unread message

Ramakrishnan Sethuraman

unread,
Jan 24, 2018, 8:20:24 AM1/24/18
to CloudSim Plus
Hi, 

I have modified the PowerExample.java to support repeated cloudet processing at each second.
Somehow the method call "printHostCpuUtilizationAndPowerConsumption()" is not printing anything valid except the print below.

Is the utilization history in the host getting flushed somehow?

regards
Ramakrishnan

**********************
Host    0 CPU utilization and power consumption
Time      9 | CPU Utilization   0.00% | Power Consumption:    0.000 Watts in 1.000000 Seconds
    Total Host    0 Power Consumption in      9 seconds:       0.00 Watts (average of 0.000 Watts/Second) 

Host    1 CPU utilization and power consumption
Time      9 | CPU Utilization   0.00% | Power Consumption:    0.000 Watts in 1.000000 Seconds
    Total Host    1 Power Consumption in      9 seconds:       0.00 Watts (average of 0.000 Watts/Second) 

Host    2 CPU utilization and power consumption
Time      9 | CPU Utilization   0.00% | Power Consumption:    0.000 Watts in 1.000000 Seconds
    Total Host    2 Power Consumption in      9 seconds:       0.00 Watts (average of 0.000 Watts/Second) 

PowerExample logs.txt

Manoel Campos

unread,
Jan 26, 2018, 8:04:55 AM1/26/18
to clouds...@googlegroups.com
Since I don't know what is the expected result, I don't see anything wrong in the results.
The log file you sent shows some CPU utilization percentages and power consumption greater than zero.
Which are as expected. The power module is inherited from CloudSim as hasn't received many changes in CloudSim Plus (basically just bugfixes).
I suggest you to try to reduce the prints that don't matter for you. You can accomplish this by calling the method setLog for some entities such as a DatacenterBroker.

After these changes, send your java file here and I can evaluate what may be wrong.


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

--
http://cloudsimplus.org
---
You received this message because you are subscribed to the Google Groups "CloudSim Plus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim-plus+unsubscribe@googlegroups.com.
To post to this group, send email to clouds...@googlegroups.com.
Visit this group at https://groups.google.com/group/cloudsim-plus.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudsim-plus/1574c018-0244-4904-980d-a44fedb798e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages