文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> 资讯>从2.6.24到2.6.33:Linux内核十个版本性能对比

从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压缩性能也不错。

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载