CPU utilization and Execution time of a task in cloud computing

444 views
Skip to first unread message

huned materwala

unread,
Jan 28, 2018, 6:49:33 AM1/28/18
to cloudsim
Greetings, 
I am trying to understand the concept of time shared policy for tasks and VMs and got some doubt. I have framed my questions in the following scenarios:

Scenario 1:

Suppose, i Have just one VM whose processing power is described in MIPS. Now, I submit one task (defined by MI). How can i know the execution time of that tasks and the amount of CPU utilized by that task.

Scenario 2:

Now, I submit one more task to the VM while the first one is running. How can i Know the execution time of this task and the amount of CPU utilized by this task. Also, how will this new task will have an impact on the CPU utilization and execution time of the previously running task

Please, help me out with the above mentioned problems.

Mohammed Alanzy

unread,
Jan 28, 2018, 7:03:53 AM1/28/18
to clou...@googlegroups.com
Hi, 
U can get the execution time by creat a function to calculate it 
Hence, execution time=cloudlet length/ vm’s mips 
When u configure a cloudlet u should send all its details such as length, ram, cpu, and so on. 
In that way u can calculate the utilisation 
But if u want to get the cpu utilitisaion  
There’s a code shared here to get it 

Thanks & Regards



Sent from my iPhone
--

---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

huned materwala

unread,
Jan 28, 2018, 7:12:53 AM1/28/18
to cloudsim
Thank you for the reply.
But, what when I submit another cloudlet, how will the speed of the first cloudlet be affected, which will be implicit to the the processing power of VMs. That is; will the processing power of VM will change will more cloudlets running simultaneously??

Mohammed Alanzy

unread,
Jan 28, 2018, 8:03:30 AM1/28/18
to clou...@googlegroups.com
When u will use spaceshare manner, 
The broker will submit one by one 
So once the first one finish its execution then the second one will get process if I’m not mistaken 

Sent from my iPhone

huned materwala

unread,
Jan 28, 2018, 8:08:39 AM1/28/18
to cloudsim
Thanks for the reply.
I am using time-shared policy, and I want to know how the processing speed will be affected with arrival of a new task.

Mohammed Alanzy

unread,
Jan 28, 2018, 9:02:54 AM1/28/18
to clou...@googlegroups.com
I didn’t work on timeshare policy 
I’m really sorry maybe others can help u in this matter 

Sent from my iPhone

huned materwala

unread,
Jan 28, 2018, 9:31:48 AM1/28/18
to cloudsim
Thank you for the help and support

Mohammed Alanzy

unread,
Jan 28, 2018, 5:22:32 PM1/28/18
to clou...@googlegroups.com
You are welcome 🙏🏻 

Sent from my iPhone

Anupinder Singh

unread,
Jan 29, 2018, 2:03:16 PM1/29/18
to cloudsim
Dear,

I think you may refer to following resources, they will help you to understand the basic concepts and then we can discuss:

  1. CloudSim Tutorial: Switch between Timeshared and Spaceshared policies for VM and cloudlets: This resource will give you an insight into the various basic aspects of the Timeshare and Space shared models available with Cloudsim

  2. CloudSim Tutorial: Demo Simulation of Space Shared VM and TimeShared Cloudlets: This video will get you some more extended information on how to manage the VM and Cloudlets in different configurations and is a supplemental resource to the previous video.


Additional Resource Links:

  1. Superwits Academy Website

  2. YouTuble Channel

huned materwala

unread,
Jan 31, 2018, 6:22:44 AM1/31/18
to cloudsim
Thank you for the reply.
I looked at the videos and they were helpful. I am trying to move further and will need your assistance if required.

huned materwala

unread,
Feb 4, 2018, 2:29:28 AM2/4/18
to cloudsim
Greetings, The videos are nicely explained and it did a great help for me to understand some concepts. But, Can you please tell me more about the utilization model. The utilization model used hereon second video is utilization model full (i.e. The cloudlet will always use the full CPU utilization), but I want to calculate the CPU utilization based on the length of cloudlet and also find the remaining CPU utilization of a VM, after assigning a cloudlet. If second incoming cloudlet can be occupied by the remaining utilization of that VM, then the second cloudlet should be assigned to that VM or else to another VM which can accommodate that cloudlet. Please help me with this.

On Monday, January 29, 2018 at 11:03:16 PM UTC+4, Anupinder Singh wrote:

huned materwala

unread,
Feb 4, 2018, 6:57:13 AM2/4/18
to cloudsim
Greetings,
Can you please help me with energy aware tasks shceduling
Reply all
Reply to author
Forward
0 new messages