genv icon indicating copy to clipboard operation
genv copied to clipboard

--max-memory-per-user --max-memory-for-user ?

Open shambu2k opened this issue 6 months ago • 0 comments

🐞 Problem genv already supports memory exceeded enforcement, but user can always bypass the limits. A user can override or increase their own limits in their config, bypassing intended quotas.

🎯 Feature Request Introduce new enforcement flags for genv enforce, analogous to the existing device limits: --max-memory-per-user --max-memory-for-user =

These flags should:

  • Set a global upper bound on GPU memory consumption per Linux user.
  • Prevent any environment configurations (e.g., via .genv) from exceeding that cap.
  • Ensure that the enforcer daemon terminates processes or detaches devices if a user exceeds memory usage limits.

shambu2k avatar Jun 17 '25 18:06 shambu2k