Operating system 如何用公式计算简单的CPU负载
我错过了一节课,现在我很困惑。 我正在尝试解决此任务:Operating system 如何用公式计算简单的CPU负载,operating-system,Operating System,我错过了一节课,现在我很困惑。 我正在尝试解决此任务: On a server with 2 CPU are 3 processes running They are waiting 10% of their time on I/O How high is the CPU load 我得到的唯一公式是 CPU-load of a 1 CPU system = 1 - p^n p = %of time idle n = number of processes 我不知道如何解释公式中的第二个CP
On a server with 2 CPU are 3 processes running
They are waiting 10% of their time on I/O
How high is the CPU load
我得到的唯一公式是
CPU-load of a 1 CPU system = 1 - p^n
p = %of time idle
n = number of processes
我不知道如何解释公式中的第二个CPU。
或者我可以说一个CPU运行两个进程,而另一个只运行一个。如果两个进程不能运行,那么一个处理器是空闲的。一个处理器空闲的概率为 .1x.1+.1x.1+.1x.1-.1x.1x.1 如果3个进程无法运行,则两个处理器都处于空闲状态。两个处理器空闲的概率为: .1x.1x.1 那么问题是一个处理器空闲还是两个处理器都空闲?如果前一个处理器和一个处理器正在运行,您认为这是半空闲吗
我对他们让学生们做的无用的工作感到惊讶。这个问题对我来说太困惑了。在脚本中,它是这样写的:一个操作系统在服务器上运行,而操作3进程正在运行,它们正在等待10%的I/O。预期的CPU负载有多高。忘记包括2个ProSecor。在和教授谈过之后,他告诉我这是整个CPU空闲的时候,所以概率是。1x。1x。谢谢!