⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 00000135.htm

📁 一份很好的linux入门资料
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD>  <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人:&nbsp;saka&nbsp;(机器猫),&nbsp;信区:&nbsp;Linux&nbsp;<BR>标&nbsp;&nbsp;题:&nbsp;NT与Linux大比拼的真实情况&nbsp;<BR>发信站:&nbsp;BBS&nbsp;水木清华站&nbsp;(Mon&nbsp;Apr&nbsp;19&nbsp;07:36:04&nbsp;1999)&nbsp;WWW-POST&nbsp;<BR>&nbsp;<BR>Mindcraft&nbsp;Reality&nbsp;Check
&nbsp;<BR>
&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;E.L.&nbsp;Green,&nbsp;Linux&nbsp;Hardware&nbsp;Solutions&nbsp;
&nbsp;<BR>
&nbsp;<BR>I.&nbsp;Executive&nbsp;Summary:&nbsp;
&nbsp;<BR>
&nbsp;<BR>Recently&nbsp;Mindcraft&nbsp;released&nbsp;a&nbsp;study&nbsp;comparing&nbsp;network&nbsp;performance&nbsp;of&nbsp;Windows&nbsp;&nbsp;<BR>NT&nbsp;4.0&nbsp;and&nbsp;Red&nbsp;Hat&nbsp;5.2.&nbsp;The&nbsp;results
&nbsp;<BR>of&nbsp;such&nbsp;performance&nbsp;benchmarks&nbsp;are&nbsp;of&nbsp;great&nbsp;interest&nbsp;to&nbsp;us&nbsp;and&nbsp;to&nbsp;the&nbsp;Linux&nbsp;&nbsp;<BR>community&nbsp;as&nbsp;a&nbsp;whole.&nbsp;Past&nbsp;benchmarks&nbsp;of
&nbsp;<BR>Linux&nbsp;performance&nbsp;vs.&nbsp;its&nbsp;competitors&nbsp;have&nbsp;allowed&nbsp;us&nbsp;to&nbsp;perform&nbsp;many&nbsp;&nbsp;<BR>enhancements&nbsp;and&nbsp;improvements&nbsp;to&nbsp;the
&nbsp;<BR>performance&nbsp;of&nbsp;the&nbsp;Linux&nbsp;kernel&nbsp;and&nbsp;associated&nbsp;programs,&nbsp;such&nbsp;as&nbsp;improved&nbsp;&nbsp;<BR>network&nbsp;performance&nbsp;(a&nbsp;result&nbsp;of
&nbsp;<BR>benchmarks&nbsp;against&nbsp;FreeBSD),&nbsp;improved&nbsp;thread&nbsp;switch&nbsp;performance&nbsp;(a&nbsp;result&nbsp;of&nbsp;&nbsp;<BR>benchmarks&nbsp;against&nbsp;Windows&nbsp;NT),
&nbsp;<BR>and&nbsp;improved&nbsp;performance&nbsp;of&nbsp;the&nbsp;kernel&nbsp;open()&nbsp;call&nbsp;(a&nbsp;result&nbsp;of&nbsp;benchmarks&nbsp;&nbsp;<BR>against&nbsp;Windows&nbsp;NT).&nbsp;
&nbsp;<BR>
&nbsp;<BR>Fair&nbsp;comparisons&nbsp;are&nbsp;welcomed&nbsp;by&nbsp;those&nbsp;of&nbsp;us&nbsp;in&nbsp;the&nbsp;Linux&nbsp;community.&nbsp;&nbsp;<BR>Unfortunately,&nbsp;this&nbsp;Mindcraft&nbsp;comparison
&nbsp;<BR>appears&nbsp;to&nbsp;be&nbsp;fatally&nbsp;flawed&nbsp;by&nbsp;misconfigurations&nbsp;of&nbsp;Linux,&nbsp;and&nbsp;thus&nbsp;is&nbsp;not&nbsp;&nbsp;<BR>useful&nbsp;for&nbsp;comparing&nbsp;the&nbsp;true&nbsp;performance&nbsp;of
&nbsp;<BR>Red&nbsp;Hat&nbsp;5.2&nbsp;versus&nbsp;Windows&nbsp;NT.&nbsp;
&nbsp;<BR>
&nbsp;<BR>II.&nbsp;Personnel&nbsp;Problems&nbsp;with&nbsp;Study&nbsp;
&nbsp;<BR>
&nbsp;<BR>Mindcraft&nbsp;has&nbsp;proven&nbsp;themselves&nbsp;in&nbsp;the&nbsp;past&nbsp;to&nbsp;be&nbsp;masters&nbsp;of&nbsp;expertly&nbsp;tuning&nbsp;&nbsp;<BR>Windows&nbsp;NT.&nbsp;See,&nbsp;for&nbsp;example,&nbsp;their
&nbsp;<BR>comparison&nbsp;testing&nbsp;of&nbsp;Windows&nbsp;NT&nbsp;versus&nbsp;Novell&nbsp;Netware&nbsp;5.0,&nbsp;which&nbsp;showed&nbsp;&nbsp;<BR>Mindcraft's&nbsp;skill&nbsp;at&nbsp;expertly&nbsp;tuning
&nbsp;<BR>Windows&nbsp;NT&nbsp;to&nbsp;its&nbsp;best.&nbsp;In&nbsp;this&nbsp;study,&nbsp;Mindcraft&nbsp;continues&nbsp;to&nbsp;display&nbsp;their&nbsp;&nbsp;<BR>expertise&nbsp;in&nbsp;tuning&nbsp;Windows&nbsp;NT.
&nbsp;<BR>Unfortunately,&nbsp;they&nbsp;also&nbsp;demonstrate&nbsp;their&nbsp;lack&nbsp;of&nbsp;expertise&nbsp;in&nbsp;tuning&nbsp;Linux.&nbsp;&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>Tuning&nbsp;Linux,&nbsp;and&nbsp;any&nbsp;Unix&nbsp;in&nbsp;general,&nbsp;requires&nbsp;a&nbsp;certain&nbsp;level&nbsp;of&nbsp;expertise.&nbsp;&nbsp;<BR>This&nbsp;level&nbsp;of&nbsp;expertise&nbsp;cannot&nbsp;be&nbsp;gained
&nbsp;<BR>within&nbsp;the&nbsp;three-day&nbsp;time&nbsp;period&nbsp;during&nbsp;which&nbsp;this&nbsp;study&nbsp;took&nbsp;place.&nbsp;This&nbsp;&nbsp;<BR>expertise&nbsp;can&nbsp;be&nbsp;gained&nbsp;via&nbsp;coursework&nbsp;from
&nbsp;<BR>companies&nbsp;such&nbsp;as&nbsp;Learning&nbsp;Tree&nbsp;International&nbsp;or&nbsp;Eklektix,&nbsp;via&nbsp;concerted&nbsp;&nbsp;<BR>querying&nbsp;of&nbsp;the&nbsp;USENET&nbsp;newsgroups&nbsp;via
&nbsp;<BR>DejaNews&nbsp;over&nbsp;a&nbsp;period&nbsp;of&nbsp;months,&nbsp;and&nbsp;by&nbsp;other&nbsp;such&nbsp;mechanisms&nbsp;over&nbsp;a&nbsp;period&nbsp;&nbsp;<BR>of&nbsp;months.&nbsp;This&nbsp;level&nbsp;of&nbsp;expertise&nbsp;is
&nbsp;<BR>similar&nbsp;to&nbsp;the&nbsp;level&nbsp;of&nbsp;expertise&nbsp;needed&nbsp;to&nbsp;tune&nbsp;Windows&nbsp;NT,&nbsp;which&nbsp;generally&nbsp;&nbsp;<BR>requires&nbsp;MCSE&nbsp;coursework&nbsp;in&nbsp;order&nbsp;to
&nbsp;<BR>fully&nbsp;master.&nbsp;
&nbsp;<BR>
&nbsp;<BR>A&nbsp;useful&nbsp;comparison&nbsp;test&nbsp;between&nbsp;Windows&nbsp;NT&nbsp;and&nbsp;Red&nbsp;Hat&nbsp;Linux&nbsp;5.2&nbsp;would&nbsp;&nbsp;<BR>require&nbsp;that&nbsp;a&nbsp;Linux&nbsp;engineer&nbsp;with&nbsp;similar
&nbsp;<BR>expertise&nbsp;in&nbsp;tuning&nbsp;high-end&nbsp;systems&nbsp;be&nbsp;on&nbsp;hand&nbsp;in&nbsp;order&nbsp;to&nbsp;properly&nbsp;tune&nbsp;the&nbsp;&nbsp;<BR>Linux&nbsp;system.&nbsp;When&nbsp;ZD&nbsp;Labs
&nbsp;<BR>benchmarked&nbsp;Samba&nbsp;versus&nbsp;NT,&nbsp;they&nbsp;invited&nbsp;Jeremy&nbsp;Allison&nbsp;of&nbsp;the&nbsp;Samba&nbsp;team&nbsp;to&nbsp;&nbsp;<BR>assist&nbsp;in&nbsp;setting&nbsp;up&nbsp;their&nbsp;Samba
&nbsp;<BR>configuration.&nbsp;A&nbsp;comparison&nbsp;test&nbsp;of&nbsp;properly&nbsp;tuned&nbsp;Linux&nbsp;and&nbsp;Windows&nbsp;NT&nbsp;&nbsp;<BR>systems&nbsp;would&nbsp;be&nbsp;quite&nbsp;constructive.&nbsp;
&nbsp;<BR>
&nbsp;<BR>Unfortunately,&nbsp;from&nbsp;looking&nbsp;at&nbsp;the&nbsp;large&nbsp;number&nbsp;of&nbsp;technical&nbsp;mistakes&nbsp;(listed&nbsp;&nbsp;<BR>below)&nbsp;made&nbsp;while&nbsp;configuring&nbsp;the&nbsp;Linux
&nbsp;<BR>system,&nbsp;it&nbsp;is&nbsp;quite&nbsp;obvious&nbsp;that&nbsp;such&nbsp;Linux&nbsp;expertise&nbsp;was&nbsp;not&nbsp;on&nbsp;hand.&nbsp;This&nbsp;&nbsp;<BR>violation&nbsp;of&nbsp;basic&nbsp;testing&nbsp;protocol&nbsp;means&nbsp;that
&nbsp;<BR>the&nbsp;results&nbsp;of&nbsp;the&nbsp;test&nbsp;are&nbsp;not&nbsp;useful&nbsp;for&nbsp;valid&nbsp;comparison&nbsp;purposes.&nbsp;
&nbsp;<BR>
&nbsp;<BR>III.&nbsp;Technical&nbsp;Problems&nbsp;with&nbsp;Study&nbsp;
&nbsp;<BR>
&nbsp;<BR>A.&nbsp;Hardware&nbsp;Problems&nbsp;with&nbsp;Study&nbsp;
&nbsp;<BR>
&nbsp;<BR>1)&nbsp;RAID&nbsp;controller&nbsp;Problems:&nbsp;The&nbsp;AMI&nbsp;RAID&nbsp;controller&nbsp;used&nbsp;in&nbsp;the&nbsp;study&nbsp;is&nbsp;&nbsp;<BR>known&nbsp;to&nbsp;have&nbsp;difficulties&nbsp;running&nbsp;under
&nbsp;<BR>Linux.&nbsp;Linux&nbsp;Hardware&nbsp;Solutions&nbsp;was&nbsp;approached&nbsp;several&nbsp;months&nbsp;ago&nbsp;by&nbsp;AMI&nbsp;&nbsp;<BR>regarding&nbsp;using&nbsp;their&nbsp;RAID&nbsp;controllers
&nbsp;<BR>on&nbsp;our&nbsp;systems,&nbsp;and&nbsp;after&nbsp;thorough&nbsp;evaluation,&nbsp;we&nbsp;concluded&nbsp;that&nbsp;the&nbsp;drivers&nbsp;&nbsp;<BR>for&nbsp;those&nbsp;controllers&nbsp;were&nbsp;still&nbsp;of
&nbsp;<BR>beta-quality&nbsp;and&nbsp;not&nbsp;appropriate&nbsp;for&nbsp;a&nbsp;production&nbsp;server.&nbsp;AMI&nbsp;themselves&nbsp;to&nbsp;a&nbsp;&nbsp;<BR>certain&nbsp;extent&nbsp;admits&nbsp;this&nbsp;--&nbsp;the&nbsp;version
&nbsp;<BR>of&nbsp;the&nbsp;AMI&nbsp;RAID&nbsp;driver&nbsp;used&nbsp;by&nbsp;Mindcraft&nbsp;was&nbsp;version&nbsp;0.92,&nbsp;i.e.,&nbsp;it&nbsp;wasn't&nbsp;&nbsp;<BR>even&nbsp;mature&nbsp;enough&nbsp;to&nbsp;be&nbsp;awarded&nbsp;a&nbsp;1.0
&nbsp;<BR>version&nbsp;number.&nbsp;
&nbsp;<BR>
&nbsp;<BR>A&nbsp;fair&nbsp;test&nbsp;would&nbsp;use&nbsp;a&nbsp;RAID&nbsp;controller&nbsp;equally&nbsp;well&nbsp;supported&nbsp;by&nbsp;both&nbsp;Linux&nbsp;&nbsp;<BR>and&nbsp;Windows&nbsp;NT,&nbsp;such&nbsp;as&nbsp;the&nbsp;ICP-Vortex
&nbsp;<BR>GDT&nbsp;line&nbsp;of&nbsp;RAID&nbsp;controllers&nbsp;used&nbsp;by&nbsp;Linux&nbsp;Hardware&nbsp;Solutions,&nbsp;or&nbsp;the&nbsp;Mylex&nbsp;&nbsp;<BR>line&nbsp;of&nbsp;RAID&nbsp;controllers&nbsp;used&nbsp;by&nbsp;VA
&nbsp;<BR>Research&nbsp;Linux&nbsp;Solutions.&nbsp;In&nbsp;reality,&nbsp;a&nbsp;company&nbsp;buying&nbsp;a&nbsp;server&nbsp;of&nbsp;this&nbsp;size&nbsp;&nbsp;<BR>for&nbsp;use&nbsp;with&nbsp;Linux&nbsp;is&nbsp;going&nbsp;to&nbsp;buy&nbsp;one
&nbsp;<BR>optimized&nbsp;for&nbsp;Linux&nbsp;with&nbsp;an&nbsp;appropriate&nbsp;RAID&nbsp;controller,&nbsp;rather&nbsp;than&nbsp;buy&nbsp;an&nbsp;&nbsp;<BR>off-the-shelf&nbsp;DELL&nbsp;server&nbsp;with&nbsp;a&nbsp;poorly
&nbsp;<BR>supported&nbsp;RAID&nbsp;controller.&nbsp;
&nbsp;<BR>
&nbsp;<BR>2)&nbsp;Disk&nbsp;Configuration&nbsp;Problems&nbsp;with&nbsp;Study:&nbsp;Both&nbsp;Windows&nbsp;NT&nbsp;and&nbsp;Linux&nbsp;were&nbsp;&nbsp;<BR>installed&nbsp;simultaneously&nbsp;on&nbsp;the
&nbsp;<BR>tested&nbsp;system.&nbsp;The&nbsp;drives&nbsp;were&nbsp;partitioned&nbsp;such&nbsp;that&nbsp;Windows&nbsp;NT&nbsp;occupied&nbsp;half&nbsp;&nbsp;<BR>the&nbsp;drive,&nbsp;and&nbsp;Linux&nbsp;occupied&nbsp;the&nbsp;other
&nbsp;<BR>half.&nbsp;Unfortunately,&nbsp;it&nbsp;is&nbsp;not&nbsp;stated&nbsp;within&nbsp;the&nbsp;study&nbsp;whether&nbsp;Linux&nbsp;was&nbsp;on&nbsp;&nbsp;<BR>the&nbsp;inner&nbsp;half&nbsp;or&nbsp;outer&nbsp;half&nbsp;of&nbsp;the&nbsp;drive.&nbsp;Note
&nbsp;<BR>that&nbsp;the&nbsp;outermost&nbsp;tracks&nbsp;of&nbsp;a&nbsp;hard&nbsp;drive&nbsp;have&nbsp;approximately&nbsp;1.5&nbsp;to&nbsp;two&nbsp;times&nbsp;&nbsp;<BR>the&nbsp;data&nbsp;transfer&nbsp;rate&nbsp;of&nbsp;the&nbsp;innermost
&nbsp;<BR>tracks,&nbsp;due&nbsp;to&nbsp;the&nbsp;larger&nbsp;number&nbsp;of&nbsp;sectors&nbsp;spinning&nbsp;past&nbsp;the&nbsp;head&nbsp;in&nbsp;a&nbsp;&nbsp;<BR>second's&nbsp;time.&nbsp;
&nbsp;<BR>
&nbsp;<BR>B.&nbsp;Linux&nbsp;Configuration&nbsp;Problems&nbsp;with&nbsp;Study&nbsp;
&nbsp;<BR>
&nbsp;<BR>1)&nbsp;Failure&nbsp;to&nbsp;configure&nbsp;Linux&nbsp;with&nbsp;large&nbsp;memory&nbsp;support&nbsp;A&nbsp;quick&nbsp;search&nbsp;of&nbsp;&nbsp;<BR>DejaNews&nbsp;with&nbsp;the&nbsp;parameters&nbsp;&quot;2
&nbsp;<BR>gigabyte&nbsp;memory&nbsp;linux&quot;&nbsp;swiftly&nbsp;turned&nbsp;up&nbsp;a&nbsp;message&nbsp;on&nbsp;how&nbsp;to&nbsp;configure&nbsp;Linux&nbsp;&nbsp;<BR>to&nbsp;access&nbsp;up&nbsp;to&nbsp;2&nbsp;gigabytes&nbsp;of&nbsp;physical
&nbsp;<BR>memory.&nbsp;In&nbsp;their&nbsp;test,&nbsp;Mindcraft&nbsp;had&nbsp;Linux&nbsp;accessing&nbsp;only&nbsp;96%&nbsp;of&nbsp;the&nbsp;memory&nbsp;&nbsp;<BR>that&nbsp;they&nbsp;had&nbsp;allocated&nbsp;for&nbsp;NT.&nbsp;This
&nbsp;<BR>would&nbsp;be&nbsp;an&nbsp;immediate&nbsp;4%&nbsp;performance&nbsp;hit&nbsp;in&nbsp;most&nbsp;file&nbsp;serving&nbsp;situations.&nbsp;
&nbsp;<BR>
&nbsp;<BR>2)&nbsp;Failure&nbsp;to&nbsp;tune&nbsp;buffer&nbsp;allocation&nbsp;parameters&nbsp;Like&nbsp;all&nbsp;Unix-type&nbsp;operating&nbsp;&nbsp;<BR>systems,&nbsp;the&nbsp;Linux&nbsp;operating&nbsp;system&nbsp;has
&nbsp;<BR>various&nbsp;tuning&nbsp;parameters&nbsp;to&nbsp;control&nbsp;the&nbsp;allocation&nbsp;of&nbsp;buffer&nbsp;memory,&nbsp;number&nbsp;&nbsp;<BR>of&nbsp;file&nbsp;handles&nbsp;available,&nbsp;and&nbsp;number&nbsp;of
&nbsp;<BR>inode&nbsp;entries&nbsp;allowed.&nbsp;The&nbsp;default&nbsp;Linux&nbsp;2.2&nbsp;kernel&nbsp;will&nbsp;use&nbsp;up&nbsp;to&nbsp;60%&nbsp;of&nbsp;&nbsp;<BR>physical&nbsp;memory&nbsp;as&nbsp;disk&nbsp;buffer&nbsp;cache,&nbsp;will&nbsp;allow
&nbsp;<BR>up&nbsp;to&nbsp;4096&nbsp;open&nbsp;files,&nbsp;and&nbsp;will&nbsp;allow&nbsp;up&nbsp;to&nbsp;12288&nbsp;inodes.&nbsp;This&nbsp;is&nbsp;optimal&nbsp;for&nbsp;&nbsp;<BR>applications&nbsp;serving,&nbsp;but&nbsp;is&nbsp;completely
&nbsp;<BR>inappropriate&nbsp;for&nbsp;file&nbsp;or&nbsp;web&nbsp;serving&nbsp;on&nbsp;a&nbsp;1gb&nbsp;machine.&nbsp;Tuning&nbsp;the&nbsp;file&nbsp;&nbsp;<BR>buffer&nbsp;size&nbsp;so&nbsp;that&nbsp;more&nbsp;than&nbsp;60%&nbsp;of&nbsp;memory&nbsp;can
&nbsp;<BR>be&nbsp;used&nbsp;(90%&nbsp;in&nbsp;this&nbsp;example)&nbsp;can&nbsp;be&nbsp;accomplished&nbsp;by&nbsp;issuing&nbsp;the&nbsp;following&nbsp;&nbsp;<BR>command:&nbsp;
&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&quot;2&nbsp;10&nbsp;90&quot;&nbsp;&gt;/proc/sys/vm/buffermem&quot;&nbsp;
&nbsp;<BR>
&nbsp;<BR>This&nbsp;is&nbsp;documented&nbsp;in&nbsp;the&nbsp;file&nbsp;/usr/src/linux/Documentation/sysctl/vm.txt&nbsp;&nbsp;<BR>along&nbsp;with&nbsp;many&nbsp;other&nbsp;tuning&nbsp;parameters,
&nbsp;<BR>such&nbsp;as&nbsp;the&nbsp;'bdflush'&nbsp;parameter.&nbsp;Jeremy&nbsp;Allison&nbsp;of&nbsp;the&nbsp;Samba&nbsp;team&nbsp;claims&nbsp;a&nbsp;&nbsp;<BR>factor&nbsp;of&nbsp;two&nbsp;improvement&nbsp;in&nbsp;Samba
&nbsp;<BR>performance&nbsp;when&nbsp;these&nbsp;parameters&nbsp;are&nbsp;set&nbsp;properly.&nbsp;
&nbsp;<BR>
&nbsp;<BR>Please&nbsp;note&nbsp;that&nbsp;queries&nbsp;of&nbsp;the&nbsp;DejaNews&nbsp;archives&nbsp;looking&nbsp;for&nbsp;queries&nbsp;by&nbsp;&nbsp;<BR>MindCraft&nbsp;researchers&nbsp;regarding&nbsp;tuning&nbsp;the
&nbsp;<BR>Linux&nbsp;2.2&nbsp;kernel&nbsp;during&nbsp;the&nbsp;relevant&nbsp;time&nbsp;period&nbsp;turned&nbsp;up&nbsp;only&nbsp;one&nbsp;possible&nbsp;&nbsp;<BR>(but&nbsp;not&nbsp;probable)&nbsp;message,&nbsp;which&nbsp;asked&nbsp;a
&nbsp;<BR>question&nbsp;about&nbsp;network&nbsp;card&nbsp;tuning.&nbsp;During&nbsp;the&nbsp;time&nbsp;span&nbsp;of&nbsp;January&nbsp;1,&nbsp;1999&nbsp;&nbsp;<BR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -