Skip to content

Create separate cgroups for processes of each tab

Theodore Wang requested to merge theodorewang12/my-konsole:cgroupmod into master

Currently, all the processes created by the application are housed within the application's cgroup without any futher categorisation. This causes the entire application to be killed if a process in the aforementioned cgroup triggers an OOM event.

To prevent the entire application from being killed, a new child cgroup is created for each new tab. Child cgroups for individual tabs are named according to this template "tab([session pid for the tab]).scope". "Background" processes (e.g. such as the main process for running konsole) are stored in the child cgroup "main.scope". This restricts the OOM event to only killing the tab which contains the offending process.

BUG: 439805

Merge request reports