meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vm:proxmox:lxc:config [2023/06/20 17:59] niziakvm:proxmox:lxc:config [2025/02/24 08:53] (current) niziak
Line 2: Line 2:
  
 ===== /etc/pve/lxc/<ctid>.conf ===== ===== /etc/pve/lxc/<ctid>.conf =====
- 
  
 <file conf /etc/pve/lxc/ctid.conf> <file conf /etc/pve/lxc/ctid.conf>
 lxc.mount.entry: hugetlbfs dev/hugepages hugetlbfs rw,relatime,create=dir 0 0 lxc.mount.entry: hugetlbfs dev/hugepages hugetlbfs rw,relatime,create=dir 0 0
 lxc.apparmor.profile: unconfined lxc.apparmor.profile: unconfined
 +</file>
  
 +==== cpu pinning ====
 +
 +<file conf /etc/pve/lxc/ctid.conf>
 +lxc.cgroup2.cpuset.cpus=0,2,4,8,10
 +#lxc.cgroup2.cpuset.cpus=0-10
 </file> </file>
 +
 +<code bash>
 +pct cpusets
 +-------------------------------------------------------------------
 +...
 +848:  0           10    12    14    16    18    20    22
 +...
 +-------------------------------------------------------------------
 +</code>
 +