Skip to content

Print max RSS in red if a worker is to be killed - #151

Merged
christiangnrd merged 2 commits into
JuliaTesting:mainfrom
christiangnrd:redrss
Jul 29, 2026
Merged

Print max RSS in red if a worker is to be killed#151
christiangnrd merged 2 commits into
JuliaTesting:mainfrom
christiangnrd:redrss

Conversation

@christiangnrd

@christiangnrd christiangnrd commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

I've been finding myself wanting a more obvious way to tell if a worker was killed or not. Having RSS show up red seems like a good way to indicate that the threshold was reached and therefore the worker will be stopped.

Passing the info as IO context makes this non-breaking for custom TestRecords

Example:
image
image

@christiangnrd christiangnrd added the enhancement New feature or request label Jul 28, 2026

@giordano giordano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks useful

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

I'll merge this before registering the bugfix

@giordano

giordano commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Should have a test for this? It should be easy to test, but perhaps it's a too niche and specific of a feature to test it. Also, a mention in the docs to explain what's the red for? That could be obscure to other users.

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

Yeah I should definitely add a mention in the docs. As for a test, we don't seem to test any other output styling so I didn't bother.

I'll also be directly testing CUDA.jl with this before merging

Comment thread docs/src/index.md
- GC time and percentage
- Memory allocation
- RSS (Resident Set Size) memory usage
- RSS (Resident Set Size) memory usage, shown in red once it exceeds the RSS threshold and the worker will be restarted

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This was suggested by Claude. I thing it's the right place to bring it up, but I'm not sure I like how it's the only option to have extra details.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think this is a blocker we can always tweak the wording if needed

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

CUDA seems fine

@christiangnrd
christiangnrd merged commit 366ebbc into JuliaTesting:main Jul 29, 2026
22 checks passed
@christiangnrd
christiangnrd deleted the redrss branch July 29, 2026 00:13
@giordano

giordano commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

I'm liking the visual clue, but perhaps a slightly less alarming colour (like yellow?) would be better?

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

I have no issues with using yellow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants