Proxmox
CPU Performance Scaling
-
list available governors
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
-
watch CPU frequency live
watch "lscpu | grep MHz"
-
Check the current CPU governor:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
-
set the CPU governor
echo "ondemand" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
-
set the governor at boot time
crontab -l
zigbee2mqtt USB passthrough
in /etc/pve/nodes/macminiserver/lxc/105.conf
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir
permission in /dev/serial/by-id
:
lrwxrwxrwx 1 root root 13 Mar 3 12:08 usb-Silicon_Labs_Sonoff_Zigbee_3..._USB_Dongle_Plus_0001-if00-port0 -> .../.../ttyUSB0
permissions in /dev/ttyUSB0
:
crw-rw-rw- 1 root dialout 188, 0 Mar 3 12:08 ttyUSB0
set permission with: chmod a+rw ttyUSB0
mount USB drive in a LXC container
On the host list all USB devices
lsblk -f
Create a new folder and mount the USB drive to the folder (umask if FAT32)
mount /dev/sdb5 /mnt/downloads -o umask=0000
Add a mount point to the container. Edit the container.conf file and add a line
mp0: /mnt/downloads,mp=/externaldisk,size=100G