[PR #15] [MERGED] Add per-page residency introspection API #63

Closed
opened 2026-10-26 22:24:14 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/comfy-aimdo/pull/15
Author: @metebalci
Created: 3/5/2026
Status: ✅ Merged
Merged: 3/5/2026
Merged by: @rattus128

Base: master ← Head: dev/getters


📝 Commits (1)

  • cb514c6 Add per-page residency introspection API

📊 Changes

2 files changed (+47 additions, -0 deletions)

View changed files

📝 comfy_aimdo/model_vbar.py (+24 -0)
📝 src/model-vbar.c (+23 -0)

📄 Description

Add three new exported functions to query VBAR state:

  • vbar_get_nr_pages: total number of 32MB pages
  • vbar_get_watermark: current watermark position
  • vbar_get_residency: per-page bitmap (resident/pinned flags)

These are read-only queries with no CUDA synchronization, intended for tooling and visualization of dynamic VRAM state.

Contribution Agreement

  • I agree that my contributions are licensed under the GPLv3.
  • I grant Comfy Org the rights to relicense these contributions as outlined in CONTRIBUTING.md.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/comfy-aimdo/pull/15 **Author:** [@metebalci](https://github.com/metebalci) **Created:** 3/5/2026 **Status:** ✅ Merged **Merged:** 3/5/2026 **Merged by:** [@rattus128](https://github.com/rattus128) **Base:** `master` ← **Head:** `dev/getters` --- ### 📝 Commits (1) - [`cb514c6`](https://github.com/Comfy-Org/comfy-aimdo/commit/cb514c6d4389fe11c97f9078197b0b13ae31a8bb) Add per-page residency introspection API ### 📊 Changes **2 files changed** (+47 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `comfy_aimdo/model_vbar.py` (+24 -0) 📝 `src/model-vbar.c` (+23 -0) </details> ### 📄 Description Add three new exported functions to query VBAR state: - vbar_get_nr_pages: total number of 32MB pages - vbar_get_watermark: current watermark position - vbar_get_residency: per-page bitmap (resident/pinned flags) These are read-only queries with no CUDA synchronization, intended for tooling and visualization of dynamic VRAM state. ### Contribution Agreement - [X] I agree that my contributions are licensed under the GPLv3. - [X] I grant **Comfy Org** the rights to relicense these contributions as outlined in [CONTRIBUTING.md](./CONTRIBUTING.md). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 22:24:14 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/comfy-aimdo#63
No description provided.