René's URL Explorer Experiment


Title: [Fix] Scaling the square and cubic server power models to max power by prawalpokharel · Pull Request #33 · EdgeSimPy/EdgeSimPy · GitHub

Open Graph Title: [Fix] Scaling the square and cubic server power models to max power by prawalpokharel · Pull Request #33 · EdgeSimPy/EdgeSimPy

X Title: [Fix] Scaling the square and cubic server power models to max power by prawalpokharel · Pull Request #33 · EdgeSimPy/EdgeSimPy

Description: SquareServerPowerModel and CubicServerPowerModel divide the dynamic range by 100 once, then raise utilization * 100 to the second or third power. At full load a 265 W server (static 0.6264) draws 10,066 W with the square model and 990,206 W with the cubic one. This PR divides the constant by 100**2 and 100**3. That is the scaling in CloudSim's PowerModelSquare and PowerModelCubic (by Beloglazov, with the same CCPE 2012 citation as these classes): (maxPower - staticPower) / Math.pow(100, 2) and Math.pow(100, 3). Both models now give the static power at idle and max_power_consumption at full load, the same end points as LinearServerPowerModel. It changes two lines. Measured at 0%, 50% and 100% CPU (max 265 W, static 0.6264): Model Before (W) After (W) LinearServerPowerModel (unchanged) 166.0 / 215.5 / 265.0 166.0 / 215.5 / 265.0 SquareServerPowerModel 166.0 / 2,641.1 / 10,066.4 166.0 / 190.7 / 265.0 CubicServerPowerModel 166.0 / 123,921.0 / 990,206.0 166.0 / 178.4 / 265.0 To reproduce: from edge_sim_py import EdgeServer from edge_sim_py.components.power_models.servers import SquareServerPowerModel s = EdgeServer() s.cpu, s.cpu_demand = 8, 8 s.power_model = SquareServerPowerModel s.power_model_parameters = {"max_power_consumption": 265, "static_power_percentage": 0.6264} print(s.get_power_consumption()) # 10066.4 before, 265.0 after This is independent of #32, which fixes the generator's static-power units. The numbers above use the fraction that the sample datasets store.

Open Graph Description: SquareServerPowerModel and CubicServerPowerModel divide the dynamic range by 100 once, then raise utilization * 100 to the second or third power. At full load a 265 W server (static 0.6264) draws 1...

X Description: SquareServerPowerModel and CubicServerPowerModel divide the dynamic range by 100 once, then raise utilization * 100 to the second or third power. At full load a 265 W server (static 0.6264) draws 1...

Opengraph URL: https://github.com/EdgeSimPy/EdgeSimPy/pull/33

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9fa9fed2-2a62-4a34-4426-f2e0ea7afc38
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC58E:154D88:A19CF4:CDD88C:6B012CD6
html-safe-nonce0d06c09a10c28910f36eda6e9c0704e972425a46541126276a598998b75ace98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNThFOjE1NEQ4ODpBMTlDRjQ6Q0REODhDOjZCMDEyQ0Q2IiwidmlzaXRvcl9pZCI6IjI5MzM4OTkxNzUzNzQ0MzM0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac86f9cad0207477610ded2e53925a6e6b23c8c891f553f49d27967c5aa50c11a2
hovercard-subject-tagpull_request:5343420596
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
twitter:imagehttps://avatars.githubusercontent.com/u/57414987?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/57414987?s=400&v=4
og:image:altSquareServerPowerModel and CubicServerPowerModel divide the dynamic range by 100 once, then raise utilization * 100 to the second or third power. At full load a 265 W server (static 0.6264) draws 1...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/EdgeSimPy/EdgeSimPy git https://github.com/EdgeSimPy/EdgeSimPy.git
octolytics-dimension-user_id112723488
octolytics-dimension-user_loginEdgeSimPy
octolytics-dimension-repository_id534266784
octolytics-dimension-repository_nwoEdgeSimPy/EdgeSimPy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id534266784
octolytics-dimension-repository_network_root_nwoEdgeSimPy/EdgeSimPy
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FEdgeSimPy%2FEdgeSimPy%2Fpull%2F33%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FEdgeSimPy%2FEdgeSimPy%2Fpull%2F33%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=EdgeSimPy%2FEdgeSimPy
Reloadhttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
Reloadhttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
Reloadhttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
EdgeSimPyhttps://github.com/EdgeSimPy
EdgeSimPyhttps://github.com/EdgeSimPy/EdgeSimPy
Codehttps://github.com/EdgeSimPy/EdgeSimPy
Issues4 (4)https://github.com/EdgeSimPy/EdgeSimPy/issues
Pull requests1 (1)https://github.com/EdgeSimPy/EdgeSimPy/pulls
Actionshttps://github.com/EdgeSimPy/EdgeSimPy/actions
Projectshttps://github.com/EdgeSimPy/EdgeSimPy/projects
Security and qualityhttps://github.com/EdgeSimPy/EdgeSimPy/security
Insightshttps://github.com/EdgeSimPy/EdgeSimPy/insights
Sign up for GitHub https://github.com/signup?return_to=%2FEdgeSimPy%2FEdgeSimPy%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FEdgeSimPy%2FEdgeSimPy%2Fissues%2Fnew%2Fchoose
pauloseverohttps://github.com/paulosevero
EdgeSimPy:masterhttps://github.com/EdgeSimPy/EdgeSimPy/tree/master
prawalpokharel:fix-square-cubic-powerhttps://github.com/prawalpokharel/EdgeSimPy/tree/fix-square-cubic-power
Conversation 1 https://github.com/EdgeSimPy/EdgeSimPy/pull/33
Commits 1 https://github.com/EdgeSimPy/EdgeSimPy/pull/33/commits
Checks 0 https://github.com/EdgeSimPy/EdgeSimPy/pull/33/checks
Files changed https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
Please reload this pagehttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
[Fix] Scaling the square and cubic server power models to max power https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#top
Show all changes 1 commit https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
9c60a2f [Fix] Scaling the square and cubic server power models to max power prawalpokharel Nov 16, 2026 https://github.com/EdgeSimPy/EdgeSimPy/pull/33/commits/9c60a2f640c537e85961526d531cc4df40f889b9
Clear filters https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
Please reload this pagehttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
Please reload this pagehttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files
cubic_server_power_model.py https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-87ee0cf32d68b9caa57dc997818ecaf667145a2b2e7d609053a42f093bd9964e
square_server_power_model.py https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-73b6bee68bf56f68874e4f9350bcfe86721c5a6c63eb436ffd094306bf222c2e
edge_sim_py/components/power_models/servers/cubic_server_power_model.pyhttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-87ee0cf32d68b9caa57dc997818ecaf667145a2b2e7d609053a42f093bd9964e
View file https://github.com/prawalpokharel/EdgeSimPy/blob/9c60a2f640c537e85961526d531cc4df40f889b9/edge_sim_py/components/power_models/servers/cubic_server_power_model.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/EdgeSimPy/EdgeSimPy/pull/33/{{ revealButtonHref }}
https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-87ee0cf32d68b9caa57dc997818ecaf667145a2b2e7d609053a42f093bd9964e
https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-87ee0cf32d68b9caa57dc997818ecaf667145a2b2e7d609053a42f093bd9964e
edge_sim_py/components/power_models/servers/square_server_power_model.pyhttps://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-73b6bee68bf56f68874e4f9350bcfe86721c5a6c63eb436ffd094306bf222c2e
View file https://github.com/prawalpokharel/EdgeSimPy/blob/9c60a2f640c537e85961526d531cc4df40f889b9/edge_sim_py/components/power_models/servers/square_server_power_model.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/EdgeSimPy/EdgeSimPy/pull/33/{{ revealButtonHref }}
https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-73b6bee68bf56f68874e4f9350bcfe86721c5a6c63eb436ffd094306bf222c2e
https://github.com/EdgeSimPy/EdgeSimPy/pull/33/files#diff-73b6bee68bf56f68874e4f9350bcfe86721c5a6c63eb436ffd094306bf222c2e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.