Skip to content

Shm size #1184

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

Merged
merged 2 commits into from
May 13, 2025
Merged

Shm size #1184

merged 2 commits into from
May 13, 2025

Conversation

ArneTR
Copy link
Member

@ArneTR ArneTR commented May 13, 2025

Greptile Summary

This PR adds support for Docker shared memory (SHM) size configuration and improves resource limit validation, including handling of null values for CPU and memory limits in container configurations.

  • Added support for shm_size in both string ('30MB') and byte (15728640) formats in /lib/scenario_runner.py
  • Added validation for numeric types (float, int) in memory limits in /lib/schema_checker.py
  • Fixed container name mismatch in /tests/data/usage_scenarios/resource_limits_cpu_none.yml between service definition and flow section
  • Added comprehensive test cases in /tests/data/usage_scenarios/resource_limits_shm_good.yml for SHM configurations
  • Needs to address invalid cpus: null configuration in resource_limits_cpu_none.yml which violates schema requirements

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link

Eco CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Measurement #1 28.6143 3346.46 4.18 800.06
--- --- --- --- ---
Total Run 28.61 3346.46 4.18 800.06
--- --- --- --- ---
Additional overhead from Eco CI N/A 9.51 4.05 2.35

🌳 CO2 Data:
City: Chicago, Lat: 41.8835, Lon: -87.6305
IP: 172.183.57.240
CO₂ from energy is: 1.295080020 g
CO₂ from manufacturing (embodied carbon) is: 0.228268165 g
Carbon Intensity for this location: 387 gCO₂eq/kWh
SCI: 1.523348 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

@ArneTR ArneTR merged commit 8117468 into main May 13, 2025
2 checks passed
@ArneTR ArneTR deleted the shm-size branch May 13, 2025 10:25
ArneTR added a commit that referenced this pull request May 15, 2025
* main: (68 commits)
  Guard clause that runner.run_until may never be used without a context
  Software add now accepts but logs unknown endpoints other than GitHub and GitLab
  Added volumes key
  allow_unsafe and skip_unsafe technically usable via configuration. Not exposed
  Bump psycopg[binary] from 3.2.8 to 3.2.9 (#1188)
  Bump redis from 5.2.1 to 6.1.0 (#1187)
  Added statistical significance schedule mode [skip ci] (#1186)
  Bump deepdiff from 8.4.2 to 8.5.0 (#1181)
  Bump pylint from 3.3.6 to 3.3.7 (#1175)
  Adding dev-no-sleeps and dev-no-optimization to the cluster (#1185)
  Shm size (#1184)
  Shutdown in the cluster happens now dynamically depending on what is configured in shutdown_on_job_no
  Memory resource limits may also be plain int or float\nWill then be interpreted as bytes
  Bump playwright/python in /docker/auxiliary-containers/gcb_playwright (#1174)
  Bump psycopg[binary] from 3.2.7 to 3.2.8 (#1183)
  Bump hiredis from 3.1.0 to 3.1.1 (#1182)
  Temperature errors are reset now inline
  (fix): Version is allowed to be int, float or datetime too
  Added --dev-no-save flag (#1179)
  Removed duplicate ln
  ...
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

Successfully merging this pull request may close these issues.

1 participant