Allocation of vms in host

263 views
Skip to first unread message

geetha

unread,
Jul 17, 2014, 1:47:04 AM7/17/14
to clou...@googlegroups.com
Hi,
   I am currently learning how to work with cloudsim. But I got some doubts while working with it. please anyone help me clarify my doubts.

This is what I did: 
           I created 1 datacenter, 1 broker, 2 host and 4 Vms using Helper class. And I created 5 cloudlets each with same properties (length=4000000, pesNumber=1, fileSize=300, outputSize=300, utilizationModel=utilizationModelFull for cpu, ram, and bw), Scheduling interval=300. Vm0, Vm1 is allocated to Host1 and Vm2, Vm3 is allocated to Host0.

Part of my output:
300.10: [Host #1] Total allocated MIPS for VM #0 (Host #1) is 2660.00, was requested 5000.00 out of total 2500.00 (200.00%)
300.10: [Host #1] MIPS for VM #0 by PEs (2 * 2660.0). PE #0: 660.00. PE #1: 2000.00.
300.10: [Host #1] Under allocated MIPS for VM #0: 2340.00
300.10: [Host #1] Total allocated MIPS for VM #1 (Host #1) is 2000.00, was requested 2000.00 out of total 2000.00 (100.00%)
300.10: [Host #1] MIPS for VM #1 by PEs (2 * 2660.0). PE #0: 2000.00.
300.10: [Host #1] utilization is 87.59%

My Question:
        Here total mips for Vm#0 is 2500 but it requests 5000 mips and 2660 mips is allocated in Host#1. How it has been allocated 2660 mips but its mips is 2500?
can anyone explain this?

patel sandip

unread,
Jul 22, 2014, 1:30:37 AM7/22/14
to clou...@googlegroups.com
hi geetha.
 
 
       i want to conform confiuration perameter.
 
        you said that  1 datacenter 
                                 2 host(host0=1860,host1=2660)
                                   4 vm(vm0=2500,vm1=2000,vm2=1000,vm3=500)
         is it correct configuration?

geetha

unread,
Jul 22, 2014, 10:28:07 AM7/22/14
to clou...@googlegroups.com
yes sandip. you are right. These are the configurations parameter.

patel sandip

unread,
Jul 23, 2014, 12:57:48 AM7/23/14
to clou...@googlegroups.com
ok now see geetha
 we have 2 host host0=1860 and host1=2660 ok
and for 4 vm
vm0=2500
vm1=2000
vm2=1000
vm3=500


now compare each vm mips to host mips if host(mips)>vm(mips) then allocate this vm to that particular host ...for example 2660(host1)>2500(vm0) so vm0 is aalocated to host 1 ok

geetha

unread,
Jul 24, 2014, 1:49:21 PM7/24/14
to clou...@googlegroups.com
thanks for ur reply sandip. but this isn't i asked. actually the mips set to vm during initialization is 2500 but after some time interval (say 300.10) it requests its host for 5000 mips. but the host allocates 2660 mips for the vm. The original mips for vm is 2500 but the host has allocated 2660. why it allocates 160 more mips for vm?

patel sandip

unread,
Jul 25, 2014, 12:29:59 AM7/25/14
to clou...@googlegroups.com
its simple calculation 200% of 2500mips


--

---
You received this message because you are subscribed to a topic in the Google Groups "cloudsim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cloudsim/_iukF-GQE3c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
With Regards,

Sandip Patel


geetha

unread,
Jul 25, 2014, 1:46:21 PM7/25/14
to clou...@googlegroups.com
i know that how 5000 came but want to know how that 2660 is allocated to the vm.

Shahinaz Refaat

unread,
Jul 26, 2014, 7:46:35 AM7/26/14
to clou...@googlegroups.com
Hello geetha,

 I think coz in in hostlist creation  VmSchedulerTimeSharedOverSubscription is used in vm scheduling , im still on it but that may help
check also this link for a previous question that might clear the issue.

https://groups.google.com/forum/#!msg/cloudsim/LCB6c4CE1RE/32AZeFeJ7JwJ
Reply all
Reply to author
Forward
0 new messages