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
SUMMARY

The discussion focuses on calculating CPU utilization with 5 processes running concurrently and an average I/O wait time of 30%. The formula for CPU utilization is defined as 1 - p^n, where n represents the number of processes and p is the average percentage of time processes are waiting for I/O. The calculation presented by the user, 1 - (0.3)^5, yields a CPU utilization of 0.9975. However, there is confusion regarding the correct formula, as participants point out discrepancies between 1 - p^n and 1 - p^n.

PREREQUISITES
  • Understanding of CPU utilization concepts
  • Familiarity with I/O wait times in computing
  • Knowledge of mathematical notation for exponential functions
  • Basic grasp of performance management in computer systems
NEXT STEPS
  • Research the correct application of the CPU utilization formula 1 - p^n
  • Explore the impact of I/O wait times on overall system performance
  • Learn about performance management techniques in multi-process environments
  • Study examples of CPU utilization calculations in real-world scenarios
USEFUL FOR

Students in computer science, system administrators, and professionals involved in performance optimization of computing systems will benefit from this discussion.

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
928
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 8 ·
Replies
8
Views
1K