Launching TestFlows Machine: self-service deterministic simulation testing environment Read the post

Deterministic hypervisor

3 posts on deterministic hypervisor.

Deterministic hypervisor

So We Did Write a Deterministic Hypervisor

Almost two years ago, which in the age of AI is a long time, we set out to achieve what back then seemed to be an unachievable goal: to write our own deterministic hypervisor. Why? Well, maybe because that would make you a cool systems engineer. No, it was because, after working on designing memory chip testing solutions in the semiconductor industry and then on testing real-time operating systems, we knew that anything software can do still has its limits, but this was a clear path to get closer to hardware again. Nonetheless, the challenge was interesting, and the need for an affordable solution was clear.

Vitaliy Zakaznikov Deterministic simulation
Read more

Deterministic hypervisor

A Deterministic Hypervisor: How Many vCPUs Can You Run?

Production software rarely runs on a single CPU. A database sizes its thread pools by the number of CPUs it finds, the Linux kernel keeps per-CPU queues and caches, and locks behave differently when two CPUs contend for them. Software tested on one CPU is tested on a configuration it will probably never run on. That is why we made TestFlows Machine able to have many vCPUs, so that Linux and the software under test see a multi-CPU server just like the one they run on in production, while keeping every run deterministic. So how many vCPUs can you run? Spoiler: up to 64 in one machine. In this post we show what that looks like and what it costs.

Vitaliy Zakaznikov Deterministic simulation
Read more

Deterministic hypervisor

A Deterministic Hypervisor: Is Execution Really Deterministic?

When we tell people that a replay in a deterministic hypervisor is the same run, the first question is always the same: really? Bit for bit? It is a fair question, because it is a strong promise. The short answer is that execution is deterministic on a CPU compatible with the one the run was recorded on, and that you don’t have to take our word for it, because you can check it yourself. This post explains why a recording belongs to its original CPU, what the state of a machine actually consists of, and how TestFlows Machine confirms that a replay reaches the same state, using a small example that boots Linux and prints 256 random bytes from /dev/random.

Vitaliy Zakaznikov Deterministic simulation
Read more