c16915b871
This patch caches all dirty pages logging until the used ring index
is updated.
The goal of this optimization is to fix a performance regression
introduced when the vhost library started to use atomic operations
to set bits in the shared dirty log map. While the fix was valid
as previous implementation wasn't safe against concurrent accesses,
contention was induced.
With this patch, during migration, we have:
1. Less atomic operations as only a single atomic OR operation
per 32 or 64 (depending on CPU) pages.
2. Less atomic operations as during a burst, the same page will
be marked dirty only once.
3. Less write memory barriers.
Fixes:
|
||
---|---|---|
.. | ||
fd_man.c | ||
fd_man.h | ||
iotlb.c | ||
iotlb.h | ||
Makefile | ||
meson.build | ||
rte_vdpa.h | ||
rte_vhost_crypto.h | ||
rte_vhost_version.map | ||
rte_vhost.h | ||
socket.c | ||
vdpa.c | ||
vhost_crypto.c | ||
vhost_user.c | ||
vhost_user.h | ||
vhost.c | ||
vhost.h | ||
virtio_crypto.h | ||
virtio_net.c |