Skip to content

Fix unsigned underflow in available physical page calculation#377

Open
cmssmc00 wants to merge 1 commit into
ovg-project:mainfrom
cmssmc00:fix-avail-physical-pages-underflow
Open

Fix unsigned underflow in available physical page calculation#377
cmssmc00 wants to merge 1 commit into
ovg-project:mainfrom
cmssmc00:fix-avail-physical-pages-underflow

Conversation

@cmssmc00

@cmssmc00 cmssmc00 commented Jul 2, 2026

Copy link
Copy Markdown

Partially addresses #371.

Summary:

  • Avoid unsigned underflow when subtracting GPU utilization headroom from available physical memory.
  • Return 0 usable physical memory when available memory is below the configured headroom.
  • Prevent the prealloc path from seeing an artificially huge available-page count under memory pressure.

Tests:

  • git diff --check

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