逸凡 avatar

Microsoft 将使用 Linux 5.19 的大型 Azure VM 的 Hyper-V 启动时间缩短了几分钟

ericjiang

Published: 30 May 2022 › Updated: 30 May 2022Microsoft 将使用 Linux 5.19 的大型 Azure VM 的 Hyper-V 启动时间缩短了几分钟

Microsoft 将使用 Linux 5.19 的大型 Azure VM 的 Hyper-V 启动时间缩短了几分钟

作为 Linux 5.19 内核 Hyper-V 更新的一部分,Microsoft 提供的修复可以在启动具有大量 GPU 的虚拟机时缩短其 Azure VM 启动时间。

微软在其 Hyper-V PCI Linux 驱动程序中进行了更改,以不设置“PCI_COMMAND_MEMORY”,以避免主机在引导时花费大量时间在 VM 引导时从 pBAR 取消映射/映射 vBAR 并将其设置为少量。对于具有高达 128GB RAM 的强大加速器,128GB BAR 上的 unmap/map 可能需要 1.8 秒,并且在引导期间使用当前的 Linux/pci-hyperv 代码执行该操作八次。每个 GPU/加速器大约增加 14 秒的额外启动时间。

image.php_-75

在 Azure 上为大型 GPU 加速 VM 产品节省了相当多的启动时间。

因此,对于目前拥有 14 个 GPU/加速器的最大 Azure VM,当前内核行为可能会导致启动时间增加 176 秒……Linux 5.19 将 VM 启动时间缩短了近三分钟。

除了 Hyper-V PCI 更改以减少 GPU 加速的 Azure VM 的启动时间之外,还对其 PCI 和 hv_sock 驱动程序进行了安全强化,各种修复,删除了早已结束的 Hyper-V 版本的代码-of-life 和其他修复。有关Linux 5.19 的 Microsoft Hyper-V 更新的完整列表

Leave Microsoft 将使用 Linux 5.19 的大型 Azure VM 的 Hyper-V 启动时间缩短了几分钟 to:

Written by

穷不怪父 孝不比兄,苦不责妻,气不凶子

Read more #azure posts


Best Posts From 逸凡

We have not curated any of ericjiang's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From 逸凡