Skip to content

Prototype support to monitor mrs(3) from libprocstat/procstat.#2519

Open
rwatson wants to merge 1 commit intodevfrom
mrs_procstat
Open

Prototype support to monitor mrs(3) from libprocstat/procstat.#2519
rwatson wants to merge 1 commit intodevfrom
mrs_procstat

Conversation

@rwatson
Copy link
Member

@rwatson rwatson commented Jan 1, 2026

This prototype allows mrs(3) to export internal state / statistics to the kernel via a new ELF auxarg type, which alongside a new sysctl for process monitoring allows the information to be extracted by libprocstat/procstat for monitoring purposes.

This prototype contains many limitations including the use of atomics for statistics gathering in mrs(3) that may either be too heavy weight, unnecessary due to the existing global lock in mrs, or possibly both. This also lifts an approach from our c18n monitoring that, while very functional in practice, appeals for generalisation. It's not clear that we are capturing all the information we want from mrs. And in the absence of context from jemalloc/etc about underlying fragmentation, interpreting this data may be challenging.

However, it's very useful to get useful insight into mrs behaviour in practice.

This prototype allows mrs(3) to export internal state / statistics to the
kernel via a new ELF auxarg type, which alongside a new sysctl for process
monitoring allows the information to be extracted by libprocstat/procstat
for monitoring purposes.

This prototype contains many limitations including the use of atomics for
statistics gathering in mrs(3) that may either be too heavy weight,
unnecesary due to the existing global lock in mrs, or possibly both.  This
also lifts an approach from our c18n monitoring that, while very functional
in practice, appeals for generalisation.  It's not clear that we are
capturing all the information we want from mrs.  And in the absence of
context from jemalloc/etc about underlying fragmentation, interpreting this
data may be challenging.

However, it's very useful to get useful insight into mrs behaviour in
practice.
@rwatson rwatson self-assigned this Jan 1, 2026
@rwatson rwatson added the temporal Issues related to the temporal safety implementation(s) label Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

temporal Issues related to the temporal safety implementation(s)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant