[SOLVED] How to define lxc.cgroup.cpuset.cpus with pct?

zenny

Renowned Member
Jul 7, 2008
93
2
73
SOLVED: [appended 'lxc.cgroup.cpuset.cpus = 0,1 appended to /etc/pve/lxc/<CTID>.conf to get rid of the error as below in §1, fyi]

Hi,

1§ I am getting the following error inside a ubuntu 16.04 container inside proxmox v4.4:

"ufs: temp directory created at "/tmp/ufs"
nodejs: src/unix/linux-core.c:747: read_times: Assertion `num == numcpus' failed.
Aborted"

2§ This pointed to a limitation as described at https://github.com/Unitech/PM2/issues/1416#issuecomment-153415598:

"the relevant container setting is:
cgroup setting: cpuset.cpus
explained here: https://access.redhat.com/documenta...tml/Resource_Management_Guide/sec-cpuset.html

I hope that helps others as well.. if you are running on virtualized servers, ask the hoster to adjust the values (they probably wont, as that would mean unlimiting your cpu-count in the vm).

P.S. : Similar problems might occur when running in limited docker containers."

3§ A similar issue was discussed in this forum at https://forum.proxmox.com/threads/lxc-cgroup-cpuset-cpus-not-being-respected.25576/ which asks to make custom changes in /etc/pve/lxc/<CTID>.conf

4§ /etc/pve/lxc/<CTID>.conf states:

# cat /etc/pve/lxc/<CTID>.conf
arch: amd64
cores: 1
hostname: hostname.com
memory: 1024
net0: name=eth0,bridge=vmbr0,gw=192.168.200.1,hwaddr=C2:8A:AE:75:17:A2,ip=192.168.200.103/24,type=veth
ostype: ubuntu
rootfs: local-zfs:subvol-103-disk-1,size=100G
swap: 2048

'pct cpusets' command output that specific container is using CPU 1.

5§ The question is how to specify cpuset.cpus cgroup settings in /etc/pve/lxc/>CTID>.conf?

Any input appreciated!

Cheers,
/z
 
Last edited:
Hello team,
I have exactly the same problem :/
How did you fix it please ?
Best Regards
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!