热迁移数据与matlab绘图

14 篇文章 0 订阅
4 篇文章 0 订阅
%额外分配内存与传输数据量的关系
x=[100,200,300,400,500,600,700,800];
y=[283,397,499,603,706,810,913,1015];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',x); 
set(gca,'YTick',y);
axis([100,800,280,1020]);
xlabel('内存占用大小(M)'), ylabel('传输的数据量(M)');


%带宽与迁移时间的关系
x=[200,300,400,500,600,700,800,900,1000];
y=[49.585,32.577,24.921,20.257,17.284,14.954,13.831,12.547,11.959];
set(gca,'XTick',[200:100:1000]); 
set(gca,'YTick',[10:5:60]) ;
subplot(2,1,1),plot(x,y,'r-*');
axis([200,1000,10,60]);
xlabel('带宽(M)'), ylabel('迁移时间(s)');


%带宽与停机时间的关系
x=[200,300,400,500,600,700,800,900,1000];
z=[181,117.6,82.8,70,60,42,39.8,43,32.6];
subplot(2,1,2),plot(x,z,'b-*');
set(gca,'XTick',[200:100:1000]); 
set(gca,'YTick',[25:5:200]) ;
axis([200,1000,25,200]);
xlabel('带宽(M)'), ylabel('停机时间(ms)');


%内存与迁移时间
x=[100,200,300,400,500,700,900,1100,1300,1500,1700,1800];
y=[7.909,9.576,11.232,12.971,14.817,18.468,21.779,25.28,28.81,33.471,36,37.405];
subplot(2,1,1),plot(x,y,'r-*');
set(gca,'XTick',[100,200,300,400,500,700,900,1100,1300,1500,1700,1800]); 
set(gca,'YTick',[5:5:40]);
axis([100,1800,5,40]);
xlabel('脏页内存(M)'), ylabel('迁移时间(s)');


%内存与停机时间
x=[100,200,300,400,500,700,900,1100,1300,1500,1700,1800];
y=[70,59.2,62,54.4,62.8,59.6,67.6,69.6,72,79.2,75.4,81,];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',x); 
set(gca,'YTick',[50:5:80]) ;
axis([100,1800,50,80]);
xlabel('脏页内存(M)'), ylabel('停机时间(ms)');


%脏页率与迁移时间
x=[250,1000,2000,3003,4000,5000,6024,7042,10000,15151,20000,25000,100000];
y=[26.748,27.091,27.869,28.391,28.49,29.073,29.516,28.949,30.077,32.327,33.048,33.517,34.598];
subplot(2,1,1),plot(x,y,'r-*');
set(gca,'XTick',x); 
set(gca,'YTick',[25:1:35]);
axis([250,10000,25,35]);
xlabel('脏页率(page/s)'), ylabel('迁移时间(s)');


%脏页率与迁移时间
x=[250,1000,2000,3003,4000,5000,6024,7042,10000,15151,20000,25000,100000];
y=[60,73.3,80.5,89.2,88,93.3,93.7,88,90.2,92.8,90.8,93.9,98.5];
subplot(2,1,1),plot(x,y,'b-*');
set(gca,'XTick',x); 
set(gca,'YTick',[60:5:95]);
axis([250,10000,60,95]);

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)');


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 13
    评论
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值