lxc-auto: Mount /sys/fs/cgroup/systemd cause lxc cgroup2 limit not apply
Open
Nobody has claimed this yet.
bug
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Package Name
lxc-auto
Maintainer
Marko Ratkaj markoratkaj@gmail.com
OpenWrt Version
ALL
OpenWrt Target/Subtarget
ALL
Steps to Reproduce
Add lxc.cgroup2.memory.max: 1G to config and restart container.
Limits will not be apply.
Remove boot section mount systemd, limit will be apply.
Actual Behaviour
/sys/fs/cgroup/lxc.payload.<name>/memory.max is max not 1G (in bytes).
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the lxc-auto package's boot section that mounts /sys/fs/cgroup/systemd and reproduce the issue with lxc.cgroup2.memory.max: 1G. Compare the cgroup2 memory.max value before and after that mount is removed. Done means the configured 1G limit is applied after restarting the container while the boot mount remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100