TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.57k stars 244 forks source link

lx: cgroups: echo 0 > tasks not supported #966

Open ismell opened 3 years ago

ismell commented 3 years ago

https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/cgroups.html#attaching-processes

 printf "%d" 0 > "$cgroup/tasks"

This should move the current task into the cgroup.

Currently this fails:

 printf "%d" 0 > /sys/fs/cgroup/openrc/tasks 
-bash: printf: write error: No such process
sjorge commented 3 years ago

I don’t think lx has support for cgroups at the moment.