Repository navigation
Measure the Cloudlet memory footprint (cloudsimplus#587) - #10
Merged
Merged
Conversation
Adds CloudletSimple to the memory benchmark, to measure the memory saved by cloudsimplus/cloudsimplus#587: listener lists and requiredFiles starting as the shared List.of(), and the shared UtilizationModel.FULL for the CPU. ListenersMemoryBenchmark is renamed to MemoryFootprintBenchmark and moved to the benchmarks package, since it measures the whole memory footprint of each VM, Host and Cloudlet, not only the listeners. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
manoelcampos
force-pushed
the
cloudlet-memory-benchmark
branch
from
October 20, 2026 22:37
8d9e3c2 to
8cce487
Compare
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
CloudletSimpleto the memory benchmark, to measure the memory saved by cloudsimplus/cloudsimplus#587 (merged in cloudsimplus/cloudsimplus#594).Related to cloudsimplus/cloudsimplus#523.
Changes
CloudletSimple(created with the default utilization models).ListenersMemoryBenchmarkwas renamed toorg.cloudsimplus.benchmarks.MemoryFootprintBenchmark, since it measures the whole memory footprint of each object (with everything it references), not only the listeners. This way, it covers all changes from #587.CLAUDE.mddescribe the changes from #586 and #587.Results
VmSimpleHostSimpleCloudletSimpleThe Cloudlet savings match the estimate from #594 exactly (the benchmark gives the total; the split below comes from #594):
HashSets replaced by the sharedList.of(): ~192 B;requiredFilescreated only on the first added file: ~32 B;UtilizationModel.FULLinstead of a newUtilizationModelFullper Cloudlet: ~24 B.That is about 248 MB less heap per 1M Cloudlets.
The comparison with 8.5.1 includes all changes since that version, not only #587 (see #7 for the VM and Host results).
Run with JDK 25.0.4 (Corretto), compressed oops, with CloudSim Plus master (
9bb9de25c) installed locally.🤖 Generated with Claude Code