Hello, I'm installed from some weeks Proxmox VE 7.3 (just updated to 7.4) to a HP ProDesk 600 G3 mini PC for my homelab (testing PVE because in the near future I intend to propose it to a business which I collaborate with, obviousy on serious hardware).
Actually, for homelab I installed Debian 11 and then PVE. The mini PC has an SSD (HP, I dunno if it is enterprise or consumer grade, I fear the second one...) with root and swap (two plain GPT partitions) and LVM with some LVs that I use for backups, ISOs and other things. And an NVME with LVM thin for VM and LXC.
Now, I reduced disk writing of the OS to as few as possibile. I noticed that the last two processes that writes constantly to disk (root partition) are:
I noticed that /etc/pve is generated in some way from pmxcfs from that config.db, from a single table. Just curious about internals, also because I have a question about it: I noticed that every single thread of pmxcfs opens config.db... so every single thread for the main process, cfs_loop (???) and for every single VM or container commits every few seconds config.db?
Thank you in advance... for an homelab it would be too expensive to change the SSD every few years or months...
Actually, for homelab I installed Debian 11 and then PVE. The mini PC has an SSD (HP, I dunno if it is enterprise or consumer grade, I fear the second one...) with root and swap (two plain GPT partitions) and LVM with some LVs that I use for backups, ISOs and other things. And an NVME with LVM thin for VM and LXC.
Now, I reduced disk writing of the OS to as few as possibile. I noticed that the last two processes that writes constantly to disk (root partition) are:
- rrdcache: updates of RRDs in /var/lib/rrdcached/db
- pmxcfs: writing on /var/lib/pve-cluster/config.db (SQLITE3 with WAL)
I noticed that /etc/pve is generated in some way from pmxcfs from that config.db, from a single table. Just curious about internals, also because I have a question about it: I noticed that every single thread of pmxcfs opens config.db... so every single thread for the main process, cfs_loop (???) and for every single VM or container commits every few seconds config.db?
Thank you in advance... for an homelab it would be too expensive to change the SSD every few years or months...
pmxcfs 817 root mem REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 root 4u REG 253,0 36864 1836156 /var/lib/pve-cluster/config.db
pmxcfs 817 root 5u REG 253,0 4124152 1833414 /var/lib/pve-cluster/config.db-wal
pmxcfs 817 root 6u REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 818 cfs_loop root mem REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 818 cfs_loop root 4u REG 253,0 36864 1836156 /var/lib/pve-cluster/config.db
pmxcfs 817 818 cfs_loop root 5u REG 253,0 4124152 1833414 /var/lib/pve-cluster/config.db-wal
pmxcfs 817 818 cfs_loop root 6u REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1359 server root mem REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1359 server root 4u REG 253,0 36864 1836156 /var/lib/pve-cluster/config.db
pmxcfs 817 1359 server root 5u REG 253,0 4124152 1833414 /var/lib/pve-cluster/config.db-wal
pmxcfs 817 1359 server root 6u REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1360 pmxcfs root mem REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1360 pmxcfs root 4u REG 253,0 36864 1836156 /var/lib/pve-cluster/config.db
pmxcfs 817 1360 pmxcfs root 5u REG 253,0 4124152 1833414 /var/lib/pve-cluster/config.db-wal
pmxcfs 817 1360 pmxcfs root 6u REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1361 pmxcfs root mem REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1361 pmxcfs root 4u REG 253,0 36864 1836156 /var/lib/pve-cluster/config.db
pmxcfs 817 1361 pmxcfs root 5u REG 253,0 4124152 1833414 /var/lib/pve-cluster/config.db-wal
pmxcfs 817 1361 pmxcfs root 6u REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1428 pmxcfs root mem REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm
pmxcfs 817 1428 pmxcfs root 4u REG 253,0 36864 1836156 /var/lib/pve-cluster/config.db
pmxcfs 817 1428 pmxcfs root 5u REG 253,0 4124152 1833414 /var/lib/pve-cluster/config.db-wal
pmxcfs 817 1428 pmxcfs root 6u REG 253,0 32768 1833422 /var/lib/pve-cluster/config.db-shm