-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cgroup limits not per surface #2084
Comments
Yeah the cgroup documentation did not make it clear to me what exactly the semantics were here. I thought this did apply to the children and is meant to be per surface but I'm not totally sure. If you (or anyone, me) could verify this that'd be very helpful. |
I tried to verify it with memory limit with With
Looking at cgroups
Current pids:
Pid.Max:
So I hit the limit of surfaces with processes from different surfaces not just from one. After I hit the error in one tab I also hit it in the other |
The config documentation suggests that
linux-cgroup-memory-limit
works per surface but I believe it is shared by all surfaces.ghostty/src/config/Config.zig
Lines 1270 to 1277 in 956b097
I am not a 100% that this is true, but it makes not sense to me. I would expect the limit to be set for every creation of a new surface, not all surfaces.
Maybe I am misunderstanding how single-instance and cgroups interact or the controller does something.
ghostty/src/apprt/gtk/cgroup.zig
Lines 50 to 72 in 956b097
PS: Both settings (for all surfaces and per surface) could be useful, but the configuration documentation says it is per surface…
Version and Config
The text was updated successfully, but these errors were encountered: