为什么 在节点Shell中执行"QoS statics volume resource cpu show"命令和"sysstat"命令的结果之间存在CPU利用率差异?
适用场景
- ONTAP 9
- 在节点Shell中使用QoS statics volume resource cpu show命令和sysstat命令检查CPU使用情况时、 结果如下所示:
18:12:31::> qos statistics volume resource cpu show -node node1
18:12:39 Workload ID CPU
18:12:39 --------------- ----- -----
18:12:39 -total- (100%) - 0%
18:12:41 -total- (100%) - 0%
18:12:42 -total- (100%) - 0%
18:12:43 -total- (100%) - 0%
18:12:44 -total- (100%) - 0%
18:12:45 -total- (100%) - 0%
18:12:46 -total- (100%) - 0%
18:12:47 -total- (100%) - 0%
18:12:48 -total- (100%) - 0%
18:12:49 -total- (100%) - 0%
18:12:50 -total- (100%) - 0%
18:12:51 -total- (100%) - 0%
18:12:52 -total- (100%) - 0%
18:12:53 -total- (100%) - 0%
18:12:54 -total- (100%) - 0%
18:12:55 -total- (100%) - 0%
18:12:56 -total- (100%) - 0%
18:12:57 -total- (100%) - 0%
18:12:58 -total- (100%) - 0%
18:12:59 -total- (100%) - 0%
18:13:00 -total- (100%) - 0%
::> system node run -node node1 -command sysstat -x -c 900 5
18:12:30 CPU
18:12:30 92%
18:12:35 94%
18:12:40 96%
18:12:45 95%
18:12:50 96%
18:12:55 97%
18:13:00 96%
18:13:05 89%
问题解答
qos statistics volume resource cpu show命令用于根据QoS卷测量CPU使用量、而节点Shell中的sysstat命令用于测量整个节点的总CPU使用量、而不管是否存在卷。- 在上述命令输出中、由于QoS卷上没有实际的IO工作负载、因此根据QoS卷及其工作负载、整个节点的总CPU使用量也为0%。
注意:创建卷时,QoS工作负载ID会自动分配给ONTAP。
