Skip to content

Task execution time calculation #471

Answered by manoelcampos
JerryLeibniz asked this question in Q&A
Discussion options

You must be logged in to vote

In addition, I think there is a problem with the calculation logic of the execution time. It does not consider how to calculate when a task is allocated to multiple CPUs. In the test, I found that the execution time of allocating 2 CPUs and 4 CPUs is the same. This is obviously wrong.

That depends on what you want to simulate. If you consider a web server that is responding requests concurrently, more CPUs just indicates more users can be served at the same time. If we have 2 CPUs and we are serving 2 users, adding 2 more CPUs doesn't make the requests for these 2 users run faster.

Consider you have a CPU-intensive task instead of this web server example. If you split a task into multip…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by manoelcampos
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@manoelcampos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #466 on October 20, 2023 13:41.