Hacker News new | past | comments | ask | show | jobs | submit login

This happens whenever I load up one of our PyTorch models on my M1 MBP 16gb too. I also hate the part where if the model (or any other set of programs) uses too much RAM the whole system will sometimes straight up hang and then crash due to kernel watchdog timeout instead of just killing the offender.



There is an API `proc_setpcontrol` which absolutely noone uses which does the thing you want.

It definitely gets unstable in those situations, but you probably don't want your scripts randomly OOM killed either.


> There is an API `proc_setpcontrol` which absolutely noone

Gee, I wonder why.

  $ man proc_setpcontrol
  No manual entry for proc_setpcontrol

Sorry what is the thing I want in this case? No stuttering or no crashing?


Killing the process instead of affecting (or crashing) the rest of the system.


This is almost completely undocumented outside of this HN post (check Google). Can you tell us more about what this does and how it is intended to be used? Thanks!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: