linux-gbmc: enable memory cgroup controller
This will enable memory cgroup controller on all platforms with linux-gbmc.
Tested: on BMC, now you see memory usage
```
root@ytbnb5-nfd11:~# systemctl status bmcweb
● bmcweb.service - Start bmcweb server
Loaded: loaded (/usr/lib/systemd/system/bmcweb.service; enabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/bmcweb.service.d
└─service-override.conf
Active: active (running) since Thu 2024-10-24 12:42:01 PDT; 1min 14s ago
TriggeredBy: ● bmcweb.socket
Main PID: 7604 (bmcweb)
Memory: 30.8M (max: 51.0M available: 20.1M)
CPU: 51.021s
CGroup: /system.slice/bmcweb.service
└─7604 /usr/bin/bmcweb
```
Memory limit also worked.
```
Oct 24 12:20:39 ytbnb5-nfd11.prod.google.com systemd[1]: bmcweb.service: A process of this unit has been killed by the OOM killer.
Oct 24 12:20:39 ytbnb5-nfd11.prod.google.com systemd[1]: bmcweb.service: Main process exited, code=killed, status=9/KILL
Oct 24 12:20:39 ytbnb5-nfd11.prod.google.com systemd[1]: bmcweb.service: Failed with result 'oom-kill'.
Oct 24 12:20:39 ytbnb5-nfd11.prod.google.com systemd[1]: bmcweb.service: Consumed 14min 23.463s CPU time.
Oct 24 12:20:40 ytbnb5-nfd11.prod.google.com systemd[1]: bmcweb.service: Scheduled restart job, restart counter is at 5.
```
Google-Bug-Id: 366281170
Change-Id: I6277d516a1248846f957b41176ccb5618689a642
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
Signed-off-by: Nan Zhou <nanzhou@google.com>
(cherry picked from commit 4513e93140c4d1e77eaf78a1e3e1de398b90007c)
2 files changed