xlabel('脏页率(page/s)'), ylabel('停机时间(ms)');
CPU负载与迁移时间
x=[10,20,30,40,50,60,70,80,90,100];
y=[5.453,5.415,5.4,5.426,5.47,5.422,5.47,5.386,5.476,5.469];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',x);
set(gca,'YTick',[4:0.25:7]);
axis([10,100,4,7]);
xlabel('CPU利用率(%)'), ylabel('迁移时间(s)');
%CPU负载与停机时间
x=[10,20,30,40,50,60,70,80,90,100];
y=[59,63.2,62.9,64.2,62.4,60.8,65,67.2,70.2,72.6];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',x);
set(gca,'YTick',[55:2:75]);
axis([10,100,55,75]);
xlabel('CPU利用率(%)'), ylabel('停机时间(ms)');
%虚拟机大小与迁移时间
x=[1,1.5,2,3];
y=[4.986,5.3,5.948,7.145];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',1:0.5:3);
set(gca,'YTick',[4:0.5:7.5]);
axis([1,3,4,7.5]);
xlabel('虚拟机大小(G)'), ylabel('迁移时间(ms)');
%虚拟机大小与停机时间
x=[1,1.5,2,3];
y=[60.2,59.2,56.8,52.2];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',1:0.5:3);
set(gca,'YTick',[40:5:65]);
axis([1,3,40,65]);
xlabel('虚拟机大小(G)'), ylabel('停机时间(ms)');
%CPU负载与迁移时间
x=[1,1.5,2,3];
y=[4.986,5.3,5.948,7.145];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',1:0.5:3);
set(gca,'YTick',[4:0.5:7.5]);
axis([1,3,4,7.5]);
xlabel('虚拟机大小(G)'), ylabel('迁移时间(ms)');
%热迁移对IO写的影响
x=[23.0 20.6 20.5 22.0 20.5 20.5 21.5 20.5 20.5 21.0 20.5 21.5 20.5 19.0 13.0 15.0 16.0 16.0 12.0 9.5 16.0 14.5 8.0 14.5 17.0 15.5 15.5 16.0 14.5 14.5 15.0 14.6 14.5 14.5 16.5 24.0 23.0 25.0 25.5 24.0 24.5 24.5 25.0 24.5 24.5 25.5 25.0 25.5 25.5 25.0 24.5 25.0];
subplot(2,1,1),plot(x,'b-*');
set(gca,'XTick',0:3:54);
set(gca,'YTick',[5:3:35]);
axis([0,54,5,35]);
xlabel('time(s)'), ylabel('IO write rate(MB/s)');
%热迁移对于IO读的影响
x=[11.3 11.6 11.3 11.9 11.4 12.1 11.7 12.2 10.8 7.7 6.5 6.4 6.4 6.6 6.4 6.5 6.4 6.3 6.3 6.3 6.3 6.3 6.3 6.4 6.3 6.2 6.1 6.3 6.5 6.3 6.1 6.2 6.1 6.4 6.0 6.1 6.1 6.8 6.2 7.0 13.4 14.1 13.4 13.1 13.5 13.3 14.6 13.3 13.3 13.2 15.7 15.3 13.0 12.5 ];
subplot(2,1,1),plot(x,'b-*');
set(gca,'XTick',0:3:54);
set(gca,'YTick',[0:2:20]);
axis([0,54,2,20]);
xlabel('time(s)'), ylabel('I/O read(M/s)');
%额外分配内存与迁移时间的关系
x=[100,200,300,400,500,600,700,800];
y=[8.2,11.4,14.5,17.4,20.6,23.7,26.8,29.9];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',x);
set(gca,'YTick',y);
axis([100,800,8,30]);
xlabel('内存占用大小(M)'), ylabel('迁移时间(s)');
%热迁移对于CPU密集型应用的影响
x=[78.2 78.3 78.2 78.3 78.2 78.3 78.2 77.4 73.5 75.0 77.1 77.3 77.1 77.6 77.4 77.6 77.5 76.9 77.5 77.6 77.3 77.7 77.8 77.7 77.7 77.8 77.8 77.7 76.3 78.2 78.2 78.2 78.0 78.2 78.2 78.2 77.7 78.1 78.1 78.1 78.1 78.1 77.9 ];
subplot(2,1,1),plot(x,'b-*');
set(gca,'XTick',0:3:45);
set(gca,'YTick',[70:1:80]);
axis([0,45,70,80]);
xlabel('time(s)'), ylabel('10e5(time/s)');