Cpulimit ramlimit

Hello i was thinking on linux with cpulimit command, how it could work on haiku and if there are a practical way to do something similar for the ram, Haiku can handle it? a way to contain something like a chromium port for ex, if i dont want give all permissions to crhome to handle all my memory ram or processor, can i limit it? to me the question for haiku

You can tweak thread priorities, for example from ProcessController. It is not a hard limit, but rather leaves priority to other threads before getting to lower priority ones.

I don’t know of a way to limit RAM usage, but in 32bit haiku, each process cannot use more than 2GB of RAM anyway. This is already an hard enough limit for a web browser… unfortunately.

1 Like