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

  • Thread starter Thread starter zak100
  • Start date Start date
  • Tags Tags
    cpu Time
Click For Summary

Discussion Overview

The discussion centers around calculating CPU utilization with multiple processes and I/O wait time. Participants are exploring the correct formula to use for this calculation, particularly in the context of a homework question involving 5 processes and an average I/O wait time of 30%.

Discussion Character

  • Homework-related
  • Debate/contested
  • Technical explanation

Main Points Raised

  • One participant presents a formula for CPU utilization as 1−pn, where n is the number of processes and p is the average percentage of time waiting for I/O, and questions the value of P in the context of their calculations.
  • Another participant argues that performance management is complex and involves distinct components like the I/O processor, MMU, and ALU, suggesting that the situation is not straightforward.
  • There is confusion regarding the correct formula, with participants noting discrepancies between 1 - pn and 1 - P^n, leading to questions about which formula should be applied.
  • Multiple participants express uncertainty about an attached image that was supposed to clarify the formula but is not viewable, complicating the discussion further.
  • Some participants request links to the moved post and express frustration over the lack of clarity regarding the formula being discussed.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correct formula for CPU utilization, and there are multiple competing views regarding the interpretation of the formulas presented. The discussion remains unresolved with ongoing questions and clarifications needed.

Contextual Notes

There are limitations in the discussion due to missing assumptions about the formulas, the unclear nature of the uploaded image, and the potential for miscommunication regarding the formulas being referenced.

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   Reactions: 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##?
 

Similar threads

Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
1
Views
4K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 14 ·
Replies
14
Views
7K
Replies
6
Views
1K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K