bargees / barge-os

Yet another lightweight Linux distribution for Docker containers
GNU General Public License v2.0
163 stars 15 forks source link

RPi: Revert "cgroup: Add kernel param to enable memory group" #64

Closed ailispaw closed 6 years ago

ailispaw commented 6 years ago

Revert "cgroup: Add kernel param to enable memory group" · raspberrypi/linux@b1c6f0b

ailispaw commented 6 years ago

Reimplement the disabling of the memory cgroup by pelwell · Pull Request #2201 · raspberrypi/linux https://github.com/raspberrypi/linux/pull/2201/files

ailispaw commented 6 years ago

https://github.com/raspberrypi/linux/issues/1950#issuecomment-347481182

After some feedback and a rethink I've reworked this code as two new patches. The first makes cgroup_enable=memory work as expected, and the second adds the cgroup_memory= flag as a backwards compatibility patch which may be dropped for 4.14.

ailispaw commented 6 years ago

cgroup: Fix automatic disabling of cgroup "memory" · raspberrypi/linux@9066809

ailispaw commented 6 years ago

cgroup: Retain support for cgroup_memory=1 · raspberrypi/linux@a57f17a

ailispaw commented 6 years ago

config: Enable CONFIG_MEMCG, but leave it disabled (due to memory cos… · raspberrypi/linux@f256603

ailispaw commented 6 years ago

As the results,

cgroup_enable=cpuset cgroup_memory=1

should be

cgroup_enable=cpuset,memory
ailispaw commented 6 years ago

Close via https://github.com/bargees/barge-os/commit/ca38730e671606c613bd489b9e822ffbafbe48bc