Skip to content

improve memory cleanup of job generator msg processor#674

Merged
mightqxc merged 5 commits intomasterfrom
flin
Mar 9, 2026
Merged

improve memory cleanup of job generator msg processor#674
mightqxc merged 5 commits intomasterfrom
flin

Conversation

@mightqxc
Copy link
Contributor

@mightqxc mightqxc commented Mar 9, 2026

No description provided.

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

Improves the JediJobGeneratorMsgProcPlugin message processor’s memory behavior by adding short-lived caches for heavy metadata, reusing TaskSetupper instances, and triggering explicit cleanup/heap trimming when memory usage is high.

Changes:

  • Add TTL-based caching for site/work-queue/resource-type metadata and per-queue nFiles config.
  • Reuse TaskSetupper instances across messages to reduce repeated initialization.
  • Add a finally cleanup block and conditional gc.collect() + malloc_trim when RSS exceeds a threshold.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@mightqxc mightqxc marked this pull request as ready for review March 9, 2026 09:57
@mightqxc mightqxc merged commit ee5c8f7 into master Mar 9, 2026
1 check passed
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.

2 participants