Hyper-v 网络 i/o 性能Hyper-V Network I/O Performance

服务器2016包含多项改进和新功能,可在 Hyper-v 下优化网络性能。Server 2016 contains several improvements and new functionality to optimize network performance under Hyper-V. 本文的后续版本中将包含有关如何优化网络性能的文档。Documentation on how to optimize network performance will be included in a future version of this article.

实时迁移Live Migration

实时迁移使你能够以透明方式将运行中的虚拟机从故障转移群集的一个节点移动到同一群集中的另一个节点,而无需断开网络连接或感觉到停机。Live Migration lets you to transparently move running virtual machines from one node of a failover cluster to another node in the same cluster without a dropped network connection or perceived downtime.

备注

故障转移群集需要群集节点的共享存储。Failover Clustering requires shared storage for the cluster nodes.

移动正在运行的虚拟机的过程可分为两个主要阶段。The process of moving a running virtual machine can be divided into two major phases. 第一个阶段是将虚拟机的内存从当前主机复制到新主机。The first phase copies the memory of the virtual machine from the current host to the new host. 第二个阶段将虚拟机状态从当前主机传输到新主机。The second phase transfers the virtual machine state from the current host to the new host. 这两个阶段的持续时间很大程度上取决于将数据从当前主机传输到新主机的速度。The durations of both phases is greatly determined by the speed at which data can be transferred from the current host to the new host.

为实时迁移流量提供专用网络有助于最大程度地减少完成实时迁移所需的时间,并确保迁移时间一致。Providing a dedicated network for live migration traffic helps minimize the time that is required to complete a live migration, and it ensures consistent migration times.

hyper-v 实时迁移配置示例

此外,在迁移所涉及的每个网络适配器上增加发送和接收缓冲区的数量可以提高迁移性能。Additionally, increasing the number of send and receive buffers on each network adapter that is involved in the migration can improve migration performance.

Windows Server 2012 R2 引入了一个选项,可通过在网络上传输之前压缩内存来加速实时迁移,或使用远程直接内存访问 (RDMA) ,前提是硬件支持。Windows Server 2012 R2 introduced an option to speed up Live Migration by compressing memory before transferring over the network or use Remote Direct Memory Access (RDMA), if your hardware supports it.

其他参考Additional References