Calculating CPU Utilization with 5 Processes & 30% I/O Time

  • Thread starter Thread starter zak100
  • Start date Start date
  • Tags Tags
    cpu Time
AI Thread Summary
The discussion centers on calculating CPU utilization for five processes with an average I/O wait time of 30%. The formula for CPU utilization is presented as 1 - p^n, where n is the number of processes and p is the percentage of time spent waiting for I/O. A user proposes using the calculation 1 - (0.3)^5, arriving at 0.9975, and seeks confirmation on its correctness. However, there is confusion regarding the formula's representation, with participants clarifying the correct expression and addressing issues related to a missing image. The conversation highlights the complexity of performance management and the importance of accurate formula application.
zak100
Messages
462
Reaction score
11
Mod note: Initially posted in a non-HW forum section, so missing the template
Summary::
Hi,
I am trying to find CPU utilization

What is the CPU utilization if there are 5 processes running at the same time, and on average the CPU spends 30% of its time waiting on I/O completion?

The formula is :
The formula for CPU utilization is 1−pn, in which n is number of process running in memory and p is the average percentage of time processes are waiting for I/O.

What is P in this formula?: 1-P ^n
I found a solution which finds the CPU utilization for each process separately.
Can we do it in the following way:
1- (0.3)^5
= 0.9975

Is the above answer correct?
Somebody please guide me. Zulfi.
 
Last edited by a moderator:
Physics news on Phys.org
It's not that simple. Performance management is its own whole discipline. Generally in a CPU set the IO processor(s) may be viewed as distinct from the MMU (memory management unit(s)) and from the ALU (arithmetic and logical unit(s)), but there's still communication between them, and you have to measure based on specific processes.
 
Last edited:
  • Informative
Likes Klystron
zak100 said:
Summary:: Hi,
I am trying to find CPU utilization

What is the CPU utilization if there are 5 processes running at the same time, and on average the CPU spends 30% of its time waiting on I/O completion?

The formula is :

The formula for CPU utilization is 1−pn, in which n is number of process running in memory and p is the average percentage of time processes are waiting for I/O.
What is P in this formula?: 1-P ^n
What is the formula you're working with? In what you quoted, it has ##1 - pn##. Just above you have ##1 - P^n##.
zak100 said:
I found a solution which finds the CPU utilization for each process separately.
Can we do it in the following way:
1- (0.3)^5
= 0.9975

Is the above answer correct?
Somebody please guide me. Zulfi.
You attached an image, but I am not able to view it.

Also, this is a homework question, so should be posted in the Eng. & Comp Sci Homework section. I am moving to that forum section, but in future homework questions, please post them in that section.
 
Hi,
Please provide the link where you have moved the question.

Zulfi.
 
zak100 said:
Please provide the link where you have moved the question.
Zulfi.
The link was there for 1 day, Apparently you figured out where to look for your moved post.

From my post last Thursday...
Mark44 said:
What is the formula you're working with? In what you quoted, it has ##1 - pn##. Just above you have ##1 - P^n##.
Mark44 said:
You attached an image, but I am not able to view it.
 
Hi,
Okay I would know about the link, once I get any reply.

Zulfi.
 
Enough about the link.

How about the questions I asked? It's not clear what you need to do, since you have two different formulas, and an uploaded image that was blank.
 
Sorry, I don't have any clue for the image. I don't know who did that. I have to change my password. I don't use such numbers for images.

Hope you would now provide me the link.

Zulfi.
 
zak100 said:
Sorry, I don't have any clue for the image. I don't know who did that. I have to change my password. I don't use such numbers for images.
The original post, which was moved by @berkeman, had an image link in it. I don't see that link any longer. Possibly the image was just the part that is quoted in post #1, that follows "The formula is:"
zak100 said:
Hope you would now provide me the link.
Let's forget about the image link.

For the third time...
Mark44 said:
What is the formula you're working with? In what you quoted, it has ##1 - pn##. Just above you have ##1 - P^n##.
Right now, this is all I'm concerned with.
Is the formula ##1 = pn## or is it ##1 - P^n##?
 
Back
Top