Skip to content

Null Utilization and Energy Values in Log Output #27

@khadija-djarraya

Description

@khadija-djarraya

Description:

The updateCloudetProcessingWithoutSchedulingFutureEventsForce function in CloudSim generates incorrect log output for utilization percentages and energy consumption. Despite correctly displaying the time and host numbers, the utilization percentages and energy values are consistently reported as zero. This discrepancy indicates a potential issue with the calculation or retrieval of these values within the function, most probably due to the use of updateVmsProcessing() function of the HostDynamicWorkload.java class.

Steps to Reproduce:

  1. Enable logging at any sample simulation, let DCNS.java class.
  2. The simulation will execute the updateCloudetProcessingWithoutSchedulingFutureEventsForce function.
  3. Review the log output, focusing on utilization percentages and energy consumption values.

Expected Behavior:

Utilization percentages and energy values should accurately reflect the current state of processing and energy consumption for each host within the specified time frame. These values should provide meaningful insights into system performance and resource utilization. The final energy consumption output should be related to the values printed in the logs.

Observed Behavior:

  1. Utilization percentages for hosts are consistently reported as 0.00%.
  2. Energy consumption values for hosts are consistently reported as 0.00 W*sec.
  3. Despite the accurate time and host number representation, the absence of meaningful utilization and energy values undermines the usefulness of the log output.

Output Example:

Energy consumption for the last time frame from 990.89 to 995.89:

995.89: [Host #3] utilization at 990.89 was 0.00%, now is 0.00%
995.89: [Host #3] energy is 0.00 W*sec

995.89: Data center's energy is 0.00 W*sec

Proposed Solution:

  1. Investigate the calculation or retrieval of utilization percentages and energy values within the function.
  2. Ensure that the appropriate methods or variables are used to capture these metrics accurately. PS: calling the updateVmsProcessing() function seems to have a relationship with this.
  3. Test the function with various scenarios to verify the correctness of utilization and energy calculations. 😄

Additional Information:

Correcting this issue will improve the accuracy and reliability of the log output, facilitating more effective monitoring and analysis of system behavior in iFogSim.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions