New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bootenv/rockchip] Force cgroup v1 usage #3830
[bootenv/rockchip] Force cgroup v1 usage #3830
Conversation
Force cgroup v1 usage since some runc apps like docker 20.10+ cannot run on rockchip with cgroup v2 enabled. (It generates BPF related issues, see opencontainers/runc#2959) This is a workaround until a proper fix is submitted. Tested on Asus Tinkerboard with current stable kernel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is O.K. to merge.
I may guess there are no particular issues in using cgroups v1; recently I enable BPF and CGROUPS kernel config options for kernel 5.15 on rk322x and folks did not report any side effects so far. |
Wasted a disproportionate amount of time due to this. |
@rpardini hmmm, I'm very sorry this made you lose lot of time. I'm not an expert in container and affine technologies, so it turns out that the errors pointed by @theblackhole require lot of effort and time to replicate that can't spend right now. |
OMfG :( I wasn't aware neither. |
@paolosabatino and @igorpecovnik thanks -- there's absolutely no need to be sorry. |
Oh damn. Well, since it is also used in newer boards, just rollback this PR until a proper fix is found (...or not, since more and more apps are beginning to drop armhf support). Fortunatly, this patch can be applied individually without any custom kernel build (by modifying
Sorry, the kernel config I tried, that are supposed to fix the issue, didn't work. And since I opened this PR, I didn't have the opportunity (and time) to look further into it. |
We can perhaps solve this by adding a separate env file for 64bit https://github.com/armbian/build/blob/master/config/sources/families/include/rockchip64_common.inc#L6 ? |
✅ Thanks! |
Description
This commit forces cgroup v1 usage as a workaround for docker / runc BPF issues until a proper fix is submitted
Context
Docker 20.10+ cannot run on our Asus Tinkerboard, it throws BPF related errors (Like opencontainers/runc#2959 , especially this comment). I tried a lot of armbian flavors (focal, jammy, bullseye + current, edge and legacy kernels), and even building an image with
CONFIG_BPF_SYSCALL=y
as suggested by this comment but it didn't fix the issue.The only thing that fixed docker was to add
extraargs=systemd.unified_cgroup_hierarchy=0
to/boot/armbianEnv.txt
.Until someone else does a proper fix to make cgroup v2 working, I suggest downgrading to cgroup v1 with this extraarg.
How Has This Been Tested?
(Sorry I had to quickly put the machine into production and didn't have time to test other kernels)
Checklist:
=> Does it need a documentation change ?