I created two Bitrix Environment with virtualbox and lxd. The performance of those two environments is very different. Virtualbox is a lot more performance than lxd. Does anyone know where the cause is and how to fix it for LXD?
I see on your screenshot ‘vmware server 1.06’. Do I understand correctly that you are running all this on a virtual machine whose last supported version 1.10 was released 11 years ago !!?
The config you posted seems to suggest you are running this in an LXD container, as I see no qemu ID key and the output of /proc/cpuinfo doesn’t show a single virtualised CPU core (as is the default without specifying it in the config). Also the image is showing as centos 7, which we do not have a VM image for yet.
So just to confirm you are asking for why the performance monitor apparently runs better in a virtualbox VM than a LXD container?
I cant find the reference immediately. But I read a couple of years ago that the numbers from Virtualbox’s guest always show inflated values but the ‘real-world’ performance is NOT as good as the numbers indicate. They are moderate.
Ideally you install plain Ubuntu/Centos or whatever in different hypervisors or vms and then run real WORLD programs to test.
Also if you just downloaded the vdi or ova or img from Bitrix - it may perform depending on the setup of the image.
Yes, I am using an LXD container (centos 7). My guess is that cpu is not virtualized like virtualbox did. Is there a way to set up cpu solely for containers or virtualization like vms.
P/s: Exactly! I’m asking for why the performance monitor apparently runs better in a virtualbox VM than a LXC container?
I’m not entirely sure how to interpret those screen shots, or the multipronged arrows, however I can see from those that the first one took 3.93s and the second one took 8.15s to load. However looking at those, the first one transferred 0.5MB (559KB) of data and the second one transferred 1.7MB of data, so there are some large differences in the work or data transfer that is taking place meaning they are not necessarily comparable (is there some caching going on for the first request that means it may look like it takes less time than it actually does)?