-
Notifications
You must be signed in to change notification settings - Fork 10
Enabling CGroups
If there's an issue applying the resource limits when installing the application, there's a good chance that cgroup
isn't enabled on the system.
cgroups (abbreviated from control groups) is a Linux kernel feature that limits, accounts for, and isolates the resource usage (CPU, memory, disk I/O, etc.[1]) of a collection of processes.
You would expect to see the following warning when installing applications.
Income Generator Application Manager
----------------------------------------
Installing only applications supporting VPS/Hosting...
[+] Running 18/18
✔ Container spide Started 12.0s
✔ Container tm Started 11.5s
✔ Container watchtower Started 13.2s
! traffmonetizer Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. 0.0s
! watchtower Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. 0.0s
! spide Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. 0.0s
Press Enter to continue...
To enable cgroup
on Rasberry Pi, it is required to modify the cmdline.txt
boot file to automount and enable the feature.
sudo nano /boot/firmware/cmdline.txt`
And append the following three entries to the file.
- cgroup_enable=cpuset
- cgroup_enable=memory
- cgroup_memory=1
cgroup_enable=memory swapaccount=1 cgroup_memory=1 cgroup_enable=cpuset
Reboot the Raspberry Pi and the cgroup
feature should be enabled. Redeploy the applications again for the changes to take place.