Research Article
Workload-Aware and CPU Frequency Scaling for Optimal Energy Consumption in VM Allocation
Algorithm 2
VPRandom (VM, PM).
| Input: VM, PM | | Output: | | (1) for to do | | (2) for to do | | (3) = VM[][]; | | (4) uVM[]= ; | | (5) for to do | | (6) for to do | | (7) if PM[] > VM[oVM[]] | | (8) PM[] VM[oVM[]]; | | (9) M[oVM[], ] = 1; | | (10) break; | | (11) end |
|