mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #287] [MERGED] perf: tune DAMON reclaim profile and cover full guest memory #320
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#320
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/287
Author: @zlzGithub-0801
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/15/2026
Merged by: @yingdi-shan
Base:
main← Head:fix/damon-reclaim-profile-and-memory-range📝 Commits (1)
9f81b31perf: tune DAMON reclaim profile and cover full guest memory📊 Changes
3 files changed (+183 additions, -15 deletions)
View changed files
📝
config/default.toml(+1 -1)📝
src/sandbox/firecracker/config.rs(+14 -14)📝
src/sandbox/firecracker/sandbox.rs(+168 -0)📄 Description
What
Tune the default DAMON reclaim profile and automatically set its monitoring range to cover the full Firecracker guest memory span.
Why
The previous automatic DAMON range could omit guest RAM above the architecture-specific memory hole. The updated profile improves memory usage with a limited runtime impact. See #281
Related issue
Scope and non-goals
Includes DAMON defaults and x86_64/arm64 guest memory range calculation. Does not change Firecracker’s memory layout or dirty-page settings.
Design and behavior changes
When neither monitor range parameter is explicitly configured, AgentENV appends a range covering the guest RAM span. Explicit user values remain unchanged.
Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetSkipped checks and reasons: Services, generated protocol, and documentation checks are not applicable to the changed files.
Risks and reviewer notes
More aggressive reclaim can increase page faults and runtime for cache-sensitive workloads. The monitoring span may include architecture-specific address holes, which DAMON safely skips because they have no mapped pages.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.