- Piit
I believe that assigning ALL the real CPUs to all of your VMs will
decrease performance. My experience just confirming this.
I was starting to assign only one single vCPU to my VMs but because(?)
the current kernels are optimized for SMP - it my cause problems.
There was a discussion about this years ago - and we agreed(?) that 2
vCPU would be the ideal default for a general VM.
[piit@dom0 ~]$ xentop -d 1 -n
[...]
xentop - 01:03:34 Xen 4.6.0
7 domains: 2 running, 5 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 33132780k total, 15711164k used, 17421616k free CPUs: 8 @ 2793MHz
NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR VBD_RSECT
dom0 -----r 1036 11.6 4164116 12.6 21332024 64.4 8 0 0 0 0 0 0 0 0
sys-firewa --b--- 22 0.1 3047412 9.2 3073024 9.3 8 0 0 0 4 0 18672 2622 549475
sys-net --b--- 43 0.1 298996 0.9 308224 0.9 8 0 0 0 4 0 38764 9149 1264233
sys-whonix --b--- 32 0.3 3071988 9.3 3073024 9.3 8 0 0 0 4 0 8840 1470 484565 untrusted --b--- 1407 1.2 409588 1.2 410624 1.2 8 0 0 0 4 6 16272276 4435715 230661555 win7-ready -----r 1461 103.9 4194296 12.7 4195328 12.7 8 0 0 0 2 0 0 0 0 win7-ready --b--- 69 0.9 45056 0.1 46080 0.1 1 0 0 0 2 0 306192 42446 11272312 VBD OO - Prints number of total VBD OO requests.
This shows the number of times that the VBD has encountered an out of requests error.
When that occurs, I/O requests for the VBD are delayed.
Another thing that I found out using xentop is, that the untrusted VMs is running out of RAM and using Swap.
I found this by looking at the VBD_OO value in xentop which should be zero.VBD OO - Prints number of total VBD OO requests.
This shows the number of times that the VBD has encountered an out of requests error.
When that occurs, I/O requests for the VBD are delayed.
strangely the untrusted VM was only using 400 MB of RAM, while the may memory value in Qubes Manager was set to 4 GB for this VM.
Currently,prefmemis simply 130% of current memory usage in a domain (without buffers and cache, but including swap)