I tried the example from the cpuset(7) manual and created a cpuset Charlie. On both Ubuntu 14.4 LTS and SLES 12 I get the following error when trying to put the current process into the cpuset:
/dev/cpuset/Charlie# echo $$ > tasks
bash: echo: write error: No space left on device
Any help?
This usually means that you don't have any memory nodes assigned to the cpuset.
would return an empty line. So you can't assign a new task to this cgroup as it will not have any memory to work with.
Assign one or all memory nodes to this cgroup should fix it.
You also need to assign a cpu node as that will also likely be empty.
Setting cgroup.clone_children to 1 can help in automatically inheriting memory and node setting from parent cgroup when a child cgroup is created.