Open msooseth opened 9 months ago
Yep, I was just fuzzing (with mobical
) on MacOS and did not wrap it into runlim
.
Probably there is similar functionality on MacOS though. For instances in kissat
I found a way to determine current resident set size on MacOS (see resources.c
) instead of going through /proc
, but that is not well document (the Internet knows though)..
To port runlim
completely to MacOS one would need to find a way to traverse the process tree (well ps
also exists on MacOS and was used as inspiration for runlim
on Linux too). Maybe if my Apple HW is more powerful than my Indel/AMD machines I will look into that.
Yeah, it's possible via sysctl
apparently on MacOS. But I don't feel like re-writing much of runlim
for sysctl
. Currently, I'm just going to run it inside Docker, which runs inside a Linux VM. Sad, but at least it works. BTW, the MacOS hardware is insanely good. There is a Linux distro for it too, https://asahilinux.org/
Well my AMD machines are faster (30% than my M2 Pro) and have more cores (but also need way more power).
For example, on MacOS:
I guess the subprocess has already been started, so
error(1)
at the end ofopen_proc_file_path_for_reading
only killsrunlim
itself?The time limit is not enforced, but that's expected, I think. Mac doesn't have
/proc
. It's kinda odd, I guess, maybe someone could think this would work on Mac but it doesn't :cry:Mate