从2.6.24到2.6.33:Linux内核十个版本性能对比
时间:2010-03-02
来源:linux论坛
在手机上看
手机扫描阅读
从2008年1月底至今,Linux Kernel系统内核已经先后升级了十次,版本号也从2.6.24
上升到2.6.33
,并且下个版本2.6.34也已进入开发阶段。今天我们就看看过去两年内这十个版本在性能上有何差异。
测试平台是一套工作站系统,硬件配置包括AMD Opteron 2384 2.7GHz四核心处理器(“上海”)、泰安Thunder n3600B S2927主板(NVIDIA nForce 3600PRO芯片组)、4GB DDR2 ECC Reg内存、希捷ST3300622AS 300GB硬盘、ATI FirePro V8700显卡,软件上采用Ubuntu 8.04.4 LTS 64位操作系统,组件有GNOME 2.22.3、X.Org Server 1.4.0.90、GCC 4.2.4、EXT3。
Linux Kernel 2.6.24-2.6.33的每个版本都从Ubuntu PPA源上获取,而且均为64位版本。除了替换内核之外,系统其他设置均保持默认。
[url=/uploadfile/2010/0302/20100302094306251.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094306175.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Apache Benchmark(静态网页服务):2.6.33成绩大幅提升,但事实最早的2.6.24版反而才是好的,之后八个版本都差得很多,最新版终于基本正常了。
[url=/uploadfile/2010/0302/20100302094307517.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094307756.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
PostgreSQL pgbench(每秒钟TPC-B交易数):2.6.30的成绩比上个版本骤然提升了多达770%,但之后2.6.32迅速下滑,最新的2.6.33却又完全不如2.6.30之前的六个版本了。
[url=/uploadfile/2010/0302/20100302094307833.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094307822.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
7-Zip Compression(文件压缩速度):不同版本有所波动,最新的2.6.33成了赢家,这才是我们最希望看到的。
[url=/uploadfile/2010/0302/20100302094308347.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094308592.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
LZMA Compression(256MB文件压缩):十个版本几乎没什么区别。
[url=/uploadfile/2010/0302/20100302094308738.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094308146.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Bork File Encrypter(文件加密时间):经过一番起伏之后,2.6.33又回到了当初2.6.24的水平,而之前一个版本2.6.32还是最快的。
[url=/uploadfile/2010/0302/20100302094312672.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094312805.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
PostMark(磁盘性能):和PostgreSQL测试结果惊人地相似,2.6.30-2.6.32三个版本性能异常突出,最新版里却又消失了。
[url=/uploadfile/2010/0302/20100302094312683.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094313997.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Dbench(单个客户):PostgreSQL、PostMark的故事再次上演,而且2.6.33的性能成了最差的,落后幅度也很大。
[url=/uploadfile/2010/0302/20100302094313608.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094313255.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Dbench(12个客户):运行多个Dbench客户端之后情况又不同泐,2.6.30-2.6.32同样有明显改进,2.6.33则呈现井喷之势,不过也可能和系统内存缓存有关。
[url=/uploadfile/2010/0302/20100302094313567.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094314321.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
FFmpeg(AVI视频转NTSC VCD):所有版本都差不多。
[url=/uploadfile/2010/0302/20100302094314726.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094314349.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
C-Ray光线追踪引擎:完全没区别。
[url=/uploadfile/2010/0302/20100302094315379.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094315405.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Bullet物理引擎:只有第一个版本2.6.24稍差一些,之后一直非常稳定。
[url=/uploadfile/2010/0302/20100302094315383.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094317960.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
NAS Parallel Benchmark:美国航空航天局(NASA)用于评估并行超级计算机性能的测试程序,所有版本都没什么不同。
小结:
经过两年多的发展,Linux Kernel系统内核在稳定性和功能上都有了翻天覆地的变化,而这里我们只是考察了它们在部分情况下的性能,特别是和工作站应用相关的。
总的来说,十个版本在性能上基本保持稳定,但也有一些例外,最明显的就是PostgreSQL、PostMark的起起伏伏,很可能和EXT3文件系统已经廉颇老矣有关,不过EXT4系统目前的主要工作仍是保证稳定性和可靠性,性能也有待提升。
新版内核也有不少时候表现更好一些,尤其是Apache Web服务器性能,终于解决了困扰将近两年的性能问题。7-Zip压缩性能也不错。
上升到2.6.33
,并且下个版本2.6.34也已进入开发阶段。今天我们就看看过去两年内这十个版本在性能上有何差异。
测试平台是一套工作站系统,硬件配置包括AMD Opteron 2384 2.7GHz四核心处理器(“上海”)、泰安Thunder n3600B S2927主板(NVIDIA nForce 3600PRO芯片组)、4GB DDR2 ECC Reg内存、希捷ST3300622AS 300GB硬盘、ATI FirePro V8700显卡,软件上采用Ubuntu 8.04.4 LTS 64位操作系统,组件有GNOME 2.22.3、X.Org Server 1.4.0.90、GCC 4.2.4、EXT3。
Linux Kernel 2.6.24-2.6.33的每个版本都从Ubuntu PPA源上获取,而且均为64位版本。除了替换内核之外,系统其他设置均保持默认。
[url=/uploadfile/2010/0302/20100302094306251.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094306175.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Apache Benchmark(静态网页服务):2.6.33成绩大幅提升,但事实最早的2.6.24版反而才是好的,之后八个版本都差得很多,最新版终于基本正常了。
[url=/uploadfile/2010/0302/20100302094307517.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094307756.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
PostgreSQL pgbench(每秒钟TPC-B交易数):2.6.30的成绩比上个版本骤然提升了多达770%,但之后2.6.32迅速下滑,最新的2.6.33却又完全不如2.6.30之前的六个版本了。
[url=/uploadfile/2010/0302/20100302094307833.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094307822.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
7-Zip Compression(文件压缩速度):不同版本有所波动,最新的2.6.33成了赢家,这才是我们最希望看到的。
[url=/uploadfile/2010/0302/20100302094308347.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094308592.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
LZMA Compression(256MB文件压缩):十个版本几乎没什么区别。
[url=/uploadfile/2010/0302/20100302094308738.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094308146.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Bork File Encrypter(文件加密时间):经过一番起伏之后,2.6.33又回到了当初2.6.24的水平,而之前一个版本2.6.32还是最快的。
[url=/uploadfile/2010/0302/20100302094312672.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094312805.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
PostMark(磁盘性能):和PostgreSQL测试结果惊人地相似,2.6.30-2.6.32三个版本性能异常突出,最新版里却又消失了。
[url=/uploadfile/2010/0302/20100302094312683.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094313997.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Dbench(单个客户):PostgreSQL、PostMark的故事再次上演,而且2.6.33的性能成了最差的,落后幅度也很大。
[url=/uploadfile/2010/0302/20100302094313608.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094313255.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Dbench(12个客户):运行多个Dbench客户端之后情况又不同泐,2.6.30-2.6.32同样有明显改进,2.6.33则呈现井喷之势,不过也可能和系统内存缓存有关。
[url=/uploadfile/2010/0302/20100302094313567.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094314321.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
FFmpeg(AVI视频转NTSC VCD):所有版本都差不多。
[url=/uploadfile/2010/0302/20100302094314726.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094314349.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
C-Ray光线追踪引擎:完全没区别。
[url=/uploadfile/2010/0302/20100302094315379.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094315405.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
Bullet物理引擎:只有第一个版本2.6.24稍差一些,之后一直非常稳定。
[url=/uploadfile/2010/0302/20100302094315383.png]screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0302/20100302094317960.png');}" onmousewheel="return imgzoom(this);" alt="" />[/url]
NAS Parallel Benchmark:美国航空航天局(NASA)用于评估并行超级计算机性能的测试程序,所有版本都没什么不同。
小结:
经过两年多的发展,Linux Kernel系统内核在稳定性和功能上都有了翻天覆地的变化,而这里我们只是考察了它们在部分情况下的性能,特别是和工作站应用相关的。
总的来说,十个版本在性能上基本保持稳定,但也有一些例外,最明显的就是PostgreSQL、PostMark的起起伏伏,很可能和EXT3文件系统已经廉颇老矣有关,不过EXT4系统目前的主要工作仍是保证稳定性和可靠性,性能也有待提升。
新版内核也有不少时候表现更好一些,尤其是Apache Web服务器性能,终于解决了困扰将近两年的性能问题。7-Zip压缩性能也不错。
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28