>序 % ?& n0 k( s5 r, ]% d
>一、01.模块子系统(Module Subsystem)、统一设备模型(Unified Device Model)和 PnP 支持
>02.稳定性有所提高
>03.统一设备模型 * i1 v9 m8 m% B% W0 ?
>更准确地确定系统设备。
>04.即插即用(PnP)支持 t3 b7 ]2 y/ ]+ Z
>05.内核基础设施的变化
>06.NUMA * f. O# k, i2 m2 `/ ]
>07.线程模型,NPTL " v/ ]# f/ I& H& O
>在 2003 年 10 月,GNU C 程序库 glibc 中融入了 NPTL 支持,Red Hat 率先在 Red Hat Linux 9 和
>08.性能改进
>内核抢占(Kernel Preemption) 7 B$ h5 C) {5 M, ]* y. d0 E' _
>I/O 性能改进
>快速用户空间互斥(Fast User-Space Mutexes)
>09.扩展性改进 % r/ b# ^3 F H& K' u X- E
>用户和组 % g5 @2 s- _3 h: g
>
ID 的数量
>打开文件描述符的数量 5 D$ G3 R5 X9 }- B) U
>10.支持更多的设备
>11.文件系统
>12.除了对传统 Linux 文件系统的改进支持以外,新的内核完全支持在 Linux 中相对较新的 XFS 文件系统。 ! c* G' J% A9 T: n4 a! x
>基于以上2.6的新特性,我决定用2.6的内核,我的系统为Red Hat Enterprise Linux AS release 3 (Taroon Update 3) 9 j6 Q! O) q) @6 J( ?+ J; R
>一、下载解压并打上内核补丁 0 e6 w& E& F$ [8 W; J" n0 H" a
BTW:2.6.8的内核没用过 </P># P7 U# t F# X
>内核源<a href="http://hackbase.com/hacker" target="_blank" >代码</A>:<a href="http://www.kernel.org/pub/<a%20href=" target="_blank" >linux</A>/kernel/v2.6/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>-2.6.10.tar.bz2">http://www.kernel.org/pub/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>/kernel/v2.6/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>-2.6.10.tar.bz2</A>
>cd /usr/src
>二、修改内核源<a href="http://hackbase.com/hacker" target="_blank" >代码</A> (升级2.6就是为了优化,干脆连源<a href="http://hackbase.com/hacker" target="_blank" >代码</A>也改了吧) </P>$ b( z: l" Q6 C' N
>1.修改/usr/src/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>/include/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>/posix<a href="http://www1.hackbase.com/skill/linux/200501209624.htm#" target="_blank" >_</A>types.h
>2.修改/usr/src/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>/include/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>/fs.h 9 X1 W# f$ \! \* B
>3.修改/usr/src/<a href="http://hackbase.com/skill/linux" target="_blank" >linux</A>/include/net/tcp.h & C/ b: a. f. B+ L( ]$ u
</P>; u& `" y' F9 U% O0 u
>
>六、grub的设置 # S2 B: L( u0 E. N( @# F9 v
>ns是一个简化的调度程序它只作最基本的合并与排序。与桌面系统的关系不是很大,主要用在一些特殊的<a href="http://down.hackbase.com/" target="_blank" >软件</A>
>as是当前内核中默认的I/O调度器。它拥有非常好的性能,在2.5中它就相当引人注意。在与2.4内核进行的对比测试中,在2.4中多项以分钟为单位
>ds就是针对as的缺点进行改善而来的,还处于测试阶段,但已经很稳定了。目前表现出的性能几乎与as一样好。加之比as更加小巧, 8 `: c) _4 r* y3 |
>cfq为系统内的所有任务分配相同的带宽,提供一个公平的工作环境,它比较适合桌面环境。事实上在测试中它也有不错的表现, + _# F9 u0 I3 A, w5 e
>好了,下面说说怎么设置:参数的格式为elevator=调度器名 </P><
>修改/boot/grub/grub.conf,在kernel那行后门加入elevator=deadline </P><
>例如:kernel /boot/vmlinuz-2.6.10-bk4 ro root=/dev/你的根分区 elevator=deadline </P><
>七、reboot</P>
| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |