Skip to content

Conversation

@eddyashton
Copy link
Member

A more thorough/aggressive version of #7527.

Hopefully both show the same perf impact (or lack thereof), but I think this one should be merged regardless. Even if it's not a measurable perf impact, it's a daft amount of work, for no observed benefit.

@eddyashton eddyashton requested a review from a team as a code owner December 12, 2025 14:46
Copilot AI review requested due to automatic review settings December 12, 2025 14:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the LoadMonitor functionality that tracked and logged ringbuffer message statistics. The implementation collected message counts and byte sizes from both the host and enclave, periodically logging them for debugging purposes. This monitoring added overhead without providing observed benefits, making it a candidate for removal.

Key Changes:

  • Deleted the entire LoadMonitor implementation (100+ lines)
  • Removed message counting infrastructure from the Dispatcher class
  • Eliminated the work_stats admin message that communicated statistics between enclave and host

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/host/run.cpp Removed LoadMonitor instantiation and header include
src/host/load_monitor.h Deleted entire file containing LoadMonitor implementation
src/enclave/interface.h Removed work_stats message type and payload declarations
src/enclave/enclave.h Removed code that retrieved and sent message counts to host on tick
src/ds/messaging.h Removed message counting infrastructure (field, retrieval and conversion methods)
src/ds/test/messaging.cpp Removed test assertions that validated message count tracking

@achamayou achamayou enabled auto-merge (squash) December 14, 2025 18:25
@achamayou achamayou merged commit 81df0d6 into microsoft:main Dec 14, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants