Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Utilization and Energy Values in Log Output #27

Open
khadija-djarraya opened this issue May 14, 2024 · 0 comments
Open

Null Utilization and Energy Values in Log Output #27

khadija-djarraya opened this issue May 14, 2024 · 0 comments

Comments

@khadija-djarraya
Copy link

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.

@khadija-djarraya khadija-djarraya changed the title Incorrect Utilization and Energy Values in Log Output Null Utilization and Energy Values in Log Output May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant