Skip to content
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

TasksMax can't be set more than 16384 for a nspawn machine #32783

Open
level-a opened this issue May 13, 2024 · 0 comments
Open

TasksMax can't be set more than 16384 for a nspawn machine #32783

level-a opened this issue May 13, 2024 · 0 comments
Labels
bug 🐛 Programming errors, that need preferential fixing machine

Comments

@level-a
Copy link

level-a commented May 13, 2024

systemd version the issue has been seen with

252

Used distribution

Debian Bookworm

Linux kernel version used

6.5.0-0.deb12.4-amd64

CPU architectures issue was seen on

None

Component

machinectl

Expected behaviour you didn't see

override default TasksMax=16384 set in /lib/systemd/system/systemd-nspawn@.service has no effect

Unexpected behaviour you saw

No response

Steps to reproduce the problem

set higher TasksMax limit and try to fork more than 16384 processes in nspawn
looks like this limit hit

"TasksMax", "t", UINT64_C(16384));

Additional program output to the terminal or log subsystem illustrating the issue

cat /sys/fs/cgroup/machine.slice/pids.peak 
16385

[Sat May 13 19:43:51 2024] cgroup: fork rejected by pids controller in /machine.slice/machine-puppet001.scope/payload/system.slice/system-puppetserver.slice/puppetserver@003.service



systemctl show systemd-nspawn@puppet001 | rg TasksMax
TasksMax=262144

sudo dmesg | grep pid_max
[    0.225209] pid_max: default: 262144 minimum: 2048

cat /sys/fs/cgroup/machine.slice/pids.max
262144

cat /sys/fs/cgroup/system.slice/pids.max
262144
@level-a level-a added the bug 🐛 Programming errors, that need preferential fixing label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing machine
Development

No branches or pull requests

1 participant