在今天与我的 amazon ec2 实例的 ssh 会话期间,我在登录时收到以下通知:
由于负载高于 1.0 禁用系统信息
读这个:
System load averages is the average number of processes that are either
in a runnable or uninterruptable state. A process in a runnable state
is either using the CPU or waiting to use the CPU. A process in unin?
terruptable state is waiting for some I/O access, eg waiting for disk.
The averages are taken over the three time intervals. Load averages
are not normalized for the number of CPUs in a system, so a load aver?
age of 1 means a single CPU system is loaded all the time while on a 4
CPU system it means it was idle 75% of the time.
Run Code Online (Sandbox Code Playgroud)
我知道这是由于 CPU 达到了 100%(我使用的是安装了 ubuntu 13.10 的微型实例)。问题是,查看我的 aws 监视器,我可以看到在过去的 20 分钟内,它甚至还没有达到 20% 的水平,并且在我安装大量更新时,半小时前出现了接近 75% 的峰值。
任何人都可以澄清是什么问题?
首先,CPU 百分比!= 平均负载。您可能应该仔细阅读其中的区别。
现在,回答你的问题。如果平均负载在登录时达到峰值,即使只有几秒钟,也足以将其推至 1.00 以上,这将禁用 Ubuntu 的系统信息显示。当显示在长时间持续时间图表中时,像这样的短峰值经常被“平均化”,因此您不会看到它们。此外,AWS cloudwatch 图表无法知道您的系统平均负载是多少。只有您实例中的内核才能知道这一点。Cloudwatch 只能查看您使用了多少 CPU,这只是进入平均负载的一个小组件。
归档时间: |
|
查看次数: |
9916 次 |
最近记录: |