CPU Utilization metrics not matching

1

Hi, I'm using c5d.2xlarge EC2 instance. When compared CPU metrics from Cloudwatch with top command, they are not matching.

Even though the top command shows around 90% of CPU utilization, in the cloudwatch it is showing around 26% only.

Could you please help me with this

Reskom
已提問 1 年前檢視次數 614 次
1 個回答
0
已接受的答案

The c5d.2xlarge instance type has 8 vCPUs. top will report CPU usage as a percentage of a single CPU. You can press I (shift + i, capital I) to toggle Irix mode, which is explained as:

    1. %CPU  --  CPU Usage
       The task's share of the elapsed CPU time since the last screen
       update, expressed as a percentage of total  CPU  time.   In  a
       true  SMP environment, if 'Irix mode' is Off, top will operate
       in 'Solaris mode' where a task's cpu usage will be divided  by
       the  total  number  of  CPUs.  You toggle 'Irix/Solaris' modes
       with the 'I' interactive command.

Otherwise, you can press 1 within top to show a break down of all the CPUs. This should give you data that is closer to what CloudWatch shows.

profile picture
專家
bwhaley
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南