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
tree: 94a89b92c6d9197ac3d3d93222337a165a48cf4b
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.