跳转到主内容

用于分析 CPU 系统性能的指标有哪些?

Views:
444
Visibility:
Public
Votes:
0
Category:
not set
Specialty:
perf
Last Updated:

适用于

  • ONTAP 9
  • Data ONTAP 8 7-模式
  • Data ONTAP 7 及更早版本 

回答

  • CPU 是 Data ONTAP 可用的物理资源类型之一。
  • 在分析系统性能时,请从整体上看待系统。
  • 分析瓶颈的一般策略是使用服务指标(协议/卷/lun 延迟/工作负载)和组件指标(CPU、磁盘 IO、网络 IO)
    • 这提供了系统的完整视图,并减少了错误的结论。
  • 具体来看 CPU 资源,工作分为优先级:
    • 某些类型的工作被确定为后台或非必要/机会性:
      • 这意味着,当后台工作使用一个或多个 CPU 内核时,当请求到达时,它将有效地屈服于更高优先级的工作。 
  • 此外,随着系统负载的增加,处理优化可能会导致物理 CPU 核心利用率和逻辑 CSMP 域利用率的非线性扩展。这在复杂的计算系统中是正常的。
CPU 瓶颈类型

由于 CSMP 模型,可能存在以下三种 CPU 瓶颈类型:

  • 平均 CPU 内核利用率:所有内核的 CPU 内核利用率平均值达到 100%。
  • 逻辑域瓶颈:
    • 逻辑域达到其并发限制。
    • 例如,如果逻辑域的并发性为 1 个 CPU 核心,并且达到 100% 的利用率。
  • 逻辑域之间的交互:
    • 某些逻辑域是互斥的,不能与另一个相关的逻辑域同时运行。
      • 例如,WAFL_ex 表示并行 WAFL 处理,而 Kahuna 表示串行 WAFL 处理。
      • 这两个逻辑域是相互排斥的,这意味着 Kahuna 可以在 1 个 CPU 上处于活动状态,或者 WAFL_ex 可以在 1+ 个 CPU 上处于活动状态,但 Kahuna 和 WAFL_Ex 不能同时处于活动状态。
    • 根据工作负载,Kahuna 可能会限制 WAFL_ex 可以执行的工作量。
      • 注: 这种类型的瓶颈是对先前状况的简单变化。

注意:如果没有达到域瓶颈或平均 CPU 瓶颈,物理 CPU 核心上的瓶颈是不可能的。因此,作为直接措施的物理 CPU 利用率监控无效。

注意: 从 Data ONTAP 8.2.1 开始,表示 CPU 利用率的算法(cpu_busy)已被更改,它基于 CPU 核心总数具有不同的算法。 

  • <= 20 CPU cores, cpu_busy 返回以下两个值中较高的值:
    • 所有 CPU 内核的平均 CPU 利用率(avg_processor_busy)

    • 并发为 1 的最繁忙域的 CPU 利用率

  • > 20 CPU 内核cpu_busy返回以下三个值中的最高值。对于 CPU 内核数超过 20 个的平台,这些 CPU 内核将平均分为两个分区。

    • 第一个分区(非 WAFL 分区)的平均 CPU 利用率

    • 第二个分区(WAFL 分区)的平均 CPU 利用率

    • 并发为 1 的最繁忙域的 CPU 利用率

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.