返回   qkShare香港討論區 > 電腦專區 > UNIX / Linux (*nix)
註冊 論壇輔助說明 會員名單 搜尋 今日新文章 標記討論區已讀


UNIX / Linux (*nix)
UNIX: AIX HPUX Solaris
Linux: Arklinux CentOS Conectiva Debian Fedora Gentoo Mandrake Mandriva OpenSuSE RedHat SuSE Trustix TurboLinux Ubuntu
電腦 精華 教學 密技 技巧 應用 知識

回覆
 
主題工具 顯示模式
舊 03-07-2008, 12:12   #1
初心者
 
註冊日期: Jan 2008
文章: 2424
積分: 59426
acid1031
預設 Linux Configure Jumbo Frames to Boost Network Performance / Throughput

Q. Jumbo frames are Ethernet frames with more than 1500 bytes of payload MTU. Does Linux support jumbo frames? If so how do I set frames to 9000 bytes?
A. Most modern Linux distros (read as Linux Kernel 2.6.17+) does support frames larger than 1500 bytes. This can improve the performance. First, make sure your network driver supports custom MTU. Second you need to have a compatible gigabit NIC and switch (such as Cisco Catalyst 4000/4500 Switches with Supervisor III or Supervisor IV ) that is jumbo frame clean. If you are not sure about requirements, please refer to your product documentation.

Jumbo frames can reduce server overhead such as a big decrease in CPU usage when transferring larger file. Also you should see some increase in network throughput.


Configure eth0 interface for Jumbo Frames
WARNING! These examples may not work with your setup as it depends upon a compatible network gear such gigabit Ethernet switches and gigabit Ethernet network interface cards

Simply type the following command at a shell prompt to set new MTU (Jumbo Frames):
程式碼:
# ifconfig eth0 mtu 9000
Make changes permanent

Edit the network configuration file for eth0 interface - for example, /etc/sysconfig/network-script/ifcfg-eth0 (CentOS / RHEL / Fedora Linux):
程式碼:
# vi /etc/sysconfig/network-script/ifcfg-eth0
Append the following configuration directive, which specifies the size of the frame in bytes:
程式碼:
MTU=9000

A note about Debian / Ubuntu Linux user:

Debian / Ubuntu Linux user should add MTU=9000 to /etc/network/interfaces configuration file.
Close and save the file. Restart the Interface eth0:
程式碼:
# /etc/init.d/networking restart
To confirm the MTU used between two specific devices. use ip command as follows:
程式碼:
# ip route get {IP-address}
# ip route get 192.168.1.1
Output:
192.168.1.1 dev eth0 src 192.168.1.100 cache mtu 9000 advmss 1460 hoplimit 64


Application Protocol Tunning

You may need to tune the application / network protocol such as NFS and SMB to take advantage of Jumbo Frames.

此文章於 03-07-2008 12:12 被 acid1031 編輯.
acid1031 目前離線   回覆時引用此篇文章
回覆


目前檢視此主題的會員: 1 (0 位會員和 1 位遊客)
 
主題工具
顯示模式

發表文章規則
不可以發表新主題
不可以回覆主題
不可以上傳附件
不可以編輯您的文章

開啟 vB 代碼
關閉 HTML 程式碼
Trackbacks are 關閉
Pingbacks are 關閉
Refbacks are 關閉
論壇跳轉

相似的主題
主題 主題作者 討論區 回覆 最後發表
[軟體] Mandriva Linux Powerpack 給初學者的 linux Boom101764 軟件分享區 1 04-14-2009 10:22
[軟體] Windows XP Performance Edition SP3 - October 2008 [242.2 MB] random825 軟件分享區 4 11-09-2008 17:30
High Performance Street Racing 高性能街頭賽車 nike102913 電腦遊戲分享區 0 06-26-2008 20:32
Enigma Unit Frames 2.5.5(08.04.02) rabbit35517 魔獸UI插件專區 0 04-03-2008 14:22
SCET 發表 PLAYSTATION Network 儲值獎賞優惠活動 tehpwnzr1014 PlayStation3 專區 (PS3) 0 04-01-2008 11:40


所有時間均為 +8。現在的時間是 02:31


qkShare All Rights Reserved.
重要聲明:本討論區是以即時上載留言的方式運作,qkShare香港討論區 對所有留言的真實性、完整性及立場等,不負任何 法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見 (如涉及醫療、法律或投資等問題)。 由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。qkShare香港討論區有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。