Poor performance in OpenBSD VM

Hello,

I recently (okay, it was yesterday) installed OpenBSD 6.3 i386 into a virtual machine using the usual qemu/kvm constellation.
My intent - in case it matters - was to test a bit of software I am working on across several platforms; OpenBSD tries to be a very harsh environment for misbehaving applications, which makes it an excellent system to do such testing on.

But the performance is … problematic.It is ridiculously slow, when I ssh into the VM and type a command, there is a noticable delay between me hitting the key and the corresponding letter appearing on the command line. As if I was connected through a slow modem or something.
I have another VM running on the same physical host, this one is running Void Linux, and its performance is very snappy.
So I wonder if OpenBSD is known to have performance issues when running under KVM?
The issue is not network-related, I think: When I open the console and login there, the problem remains.

I also have a small home server running FreeBSD, where I have an OpenBSD (amd64) VM running on bhyve, FreeBSD’s native hypervisor. It is slow, too, but not nearly as slow as the one running under KVM, even though the FreeBSD host has a far slower CPU.

Is there a trick to getting this to work nicely, or is OpenBSD just a hog in virtualized environments? I know performance is not their main goal, but my experience running OpenBSD on real hardware has been okay.

Also, is this the right place to ask? The longer I think about it, the less I am certain if this is a KVM problem or an OpenBSD problem. I am asking here first, because the OpenBSD crowd tends to deal harshly with people who ask stupid questions like me. :wink:

Thank you very much for any insights you might be able to share with me,
Benjamin

OpenBSD is as responsive as any other KVM linux guest you might have for the same physical machine - the host. I myself run an OpenBSD 6.3 64 bit kvm guest in Xfce DE configuration in Leap 15 host without any problems or performance hogs.
Check proper allocation of memory, selection of the proper virtual CPU and the number of CPU cores to tune performance.

Thank you!
The host machine is a Ryzen 1700 with 32GB of RAM and SSD storage, so I don’t think that is a problem. Like I said, another VM on the same host runs Void Linux, and that VM feels very responsive.
As the OpenBSD VM is still fresh, I will just delete it entirely, create a new one and install from scratch.

Thank you once more, have a beautiful day!

I just wiped the old VM and created a new one from scratch. Happy to say performance is very good now.

Thank you!