Virtual Machine CPU weight

godfather007

Dabbler
Joined
Mar 1, 2018
Messages
12
Hello,

i'm considering a migration on my home-machine from Proxmox to Scale.
Before i'm making the step, i'm testing the possibilities of Scale and despite the different GUI options:

Is there a way to give a Virtual Machine less weight on the system? Let's say there is a VM with a higher core-count, could it be throttled so other VM's get more attention while needed?

Thanks in advance,
Martijn
 

diogen

Explorer
Joined
Jul 21, 2022
Messages
72
Have you tried oversubscribing vCPUs for the VMs that potentially need it?

More information is needed about your hardware and VMs you are running...
 

godfather007

Dabbler
Joined
Mar 1, 2018
Messages
12
My machine is a 16 core xeon L on a supermicroboard with 256GB.
I understand what you're saying. Only my virtual router has enough when running 3 cores (1gbit fiber internet).
There's one beast used for transcoding video which should not take all available cpu-cycles and don't forget the zfs & lz4 cycles.

Maybe through command-line or vm-config file manually?
 

godfather007

Dabbler
Joined
Mar 1, 2018
Messages
12
Using proxmox there are config files: /etc/pve/qemu-server/101.conf:

where CPUunits is normally 1024, in this case higher

Code:
agent: 1
boot: order=sata0;net0;ide2
cores: 3
cpu: host
cpuunits: 2048
ide2: none,media=cdrom
memory: 2048
meta: creation-qemu=6.1.0,ctime=1636789915
name: LOC00
net0: virtio=6A:85:48:F3:87:E3,bridge=vmbr0
net1: virtio=86:45:66:4C:5D:C7,bridge=vmbr0,tag=107
net2: virtio=62:1E:9B:CD:28:C5,bridge=vmbr0,tag=111
net3: virtio=22:0E:DA:8B:3A:B5,bridge=vmbr0,tag=115
net4: virtio=E6:40:F0:48:BF:17,bridge=vmbr0,tag=116
net5: virtio=CE:24:91:59:96:B4,bridge=vmbr0,tag=124
net6: virtio=32:20:77:3E:D2:21,bridge=vmbr0,tag=125
net7: virtio=1E:3D:61:A9:AE:B3,bridge=vmbr0,tag=131
net8: virtio=20:e8:82:9b:d9:ef,bridge=vmbr1,tag=300
numa: 1
onboot: 1
ostype: other
sata0: NVME:vm-101-disk-0,cache=writeback,discard=on,size=10G
scsihw: virtio-scsi-pci
smbios1: uuid=7ba9e1cb-a4f5-475c-978f-5e1db4fbab69
sockets: 1
startup: order=1,up=60
vmgenid: dfc4aef3-6311-42d7-bec3-5680886d47e2


Whereas the resource-hungry machine receives just a piece of that (256):

Code:
agent: 1
boot: order=sata0;ide2;net0
cores: 16
cpu: host
cpuunits: 256
hostpci0: 0000:03:00,pcie=1,x-vga=1
ide2: none,media=cdrom
machine: pc-q35-6.1
memory: 8192
meta: creation-qemu=6.1.0,ctime=1637215275
name: PLEX01
net0: virtio=1E:64:A1:3F:EE:3A,bridge=vmbr0,firewall=1,tag=124
numa: 1
ostype: win10
sata0: NVME:vm-2480-disk-0,cache=unsafe,discard=on,size=40G
scsihw: virtio-scsi-pci
smbios1: uuid=563025d7-3eab-413c-b8e2-3682371d8222
sockets: 1
vga: none
virtio1: NVME:vm-2480-disk-1,cache=unsafe,discard=on,size=50G
vmgenid: 1c61f083-1037-43e1-a66a-dab5f0c6effe
 
Top