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年前615ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ