Absolutely! I just wanted to solicit some feedback from the OpenBSD community before proposing it upstream :-)

On 3/28/23 00:56, Courtney Hicks wrote:
Wouldn’t it make more sense to submit this upstream so the patch doesn’t have 
to be maintained in ports?

Courtney

PS - sorry if this reaches you incorrectly. First time responding to the 
mailing list from my phone.

On Mar 27, 2023, at 1:45 PM, Volker Schlecht <[email protected]> wrote:

Hi,

I was bothered long enough by the

"OS_MON (cpu_sup), util/1 unavailable for this OS"

message when testing erlang builds on OpenBSD and decided to have a shot at an 
implementation.

I tried to keep it structurally very similar to the already available FreeBSD 
implementation (which looks to me like it's leaking memory, though), and filled 
the gaps with what I understood from OpenBSD's top(1) implementation.

Tests pass, and interactive use of cpu_sup:util/0 and cpu_sup:util/1 produces 
reasonable results here, both with and without SMP enabled.

It would be great if some of you could have a look if what I came up with makes 
sense.

cheers,
Volker
<erlang-cpu_sup.diff>


Reply via email to