Research Article
Workload-Aware and CPU Frequency Scaling for Optimal Energy Consumption in VM Allocation
Algorithm 3
VP-FS (VM, PM).
| Input: VM, PM, ants, error margin , parameter | | Output: | | (1) for each | | (2) = 0 | | (3) do{ | | (4) = | | (5) = | | (6) for each from 1 to | | (7) = | | (8) for each from 1 to | | (9) choose host from hosts | | (10) Allocate(, ) | | (11) If | | (12) then Dealloc(, ), back to step 9 | | (13) | | (14) | | (15) = choose_energy(, ) | | (16) = choose_balance() | | (17) for in | | (18) | | (19) = energy_sla_sum() | | (20) } while() |
|