- 浏览: 849393 次
- 性别:
- 来自: lanzhou
文章分类
最新评论
-
liu346435400:
楼主讲了实话啊,中国程序员的现状,也是只见中国程序员拼死拼活的 ...
中国的程序员为什么这么辛苦 -
qw8226718:
国内ASP.NET下功能比较完善,优化比较好的Spacebui ...
国内外开源sns源码大全 -
dotjar:
敢问兰州的大哥,Prism 现在在12.04LTS上可用么?我 ...
最佳 Ubuntu 下 WebQQ 聊天体验 -
coralsea:
兄弟,卫星通信不是这么简单的,单向接收卫星广播信号不需要太大的 ...
Google 上网 -
txin0814:
我成功安装chrome frame后 在IE地址栏前加上cf: ...
IE中使用Google Chrome Frame运行HTML 5
Boost your network
You've tweaked your router, optimised your server and replaced all your broadband filters in your house - and you still have a slow connection. Before you make an angry phone call to your ISP, there's a possibility that the client machine may be the bottleneck. With just a few of these tweaks you can improve your connections, or at the very least eliminate your client machine as the single point of failure.
Use hostname 'localhost'
This doesn't cause a drastic improvement on its own, but in conjunction with the other network tricks here can improve your local machine's network performance. Simply open /etc/hosts in a text editor with root permissions and change the top two lines to:
127.0.0.1 localhost yourhost 127.0.1.1 yourhost
where yourhost is the name of the machine (ie bobdesktop). Ensure you keep a backup of your /etc/hosts file, as not all distros are compatible with this!
Optimise TCP settings
Distros come preconfigured for "average" internet users, but in a world of 3G, dial-up and ADSL there is no such thing as an average user. Now edit /etc/sysctl.conf as root and append the following:
net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_sack = 1
(This may take some trial and error, so keep a backup of the files you edit.) The top line removes timestamps and so relieves all incoming and outgoing packets of a 12k overhead. The bottom line enables selective acknowledgements, which means fewer checks are initiated on each packet so they are delivered quicker. We don't recommend the latter tweak for dial-up connections as this increases the number of packets which need to be resent.
Metrics and backlogs
You can further optimise your TCP settings by appending the following lines to the same text file:
net.ipv4.tcp_no_metrics_save = 1 net.core.netdev_max_backlog = 2500
The top line speeds up connections by ensuring that TCP metrics are not saved for each individual packet. The second line dictates the backlog of packets allowed. To give an idea of the scale of the figure you should use for your backlog, around 2,000 is recommended for wireless or older Ethernet connections, and around 5,000 for a 1GB Ethernet cable to broadband connection. On the other hand, this figure can rise up to 30,000 for an expensive 10GB Ethernet cable. The slower the connection, the lower your backlog should be, as the aim of this tweak is to clear outstanding packets as soon as possible in order to boost connection speeds.
TCP window scaling
The TCP window settings define the minimum and maximum size of packets we can send and recieve. Dial-up users will see a speed boost with smaller packet sizes while broadband users will see a speed boost with larger packet sizes. Edit /etc/sysctl.conf as root, and append this:
net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_wmem = 10240 87380 16777216 net.ipv4.tcp_rmem = 10240 87380 16777216 net.ipv4.tcp_mem = 16777216 16777216 16777216 net.core.rmem_max = 16777216 net.core wmem_max = 16777216
Those figures are optimised for a 2Mbps connection on Sky broadband over a wireless connection, but the packet size recommendation for any given connection is usually maximum bandwidth divided by latency. You can find these figures by heading to www.speedtest.net , and you can also analyse how your changes are affecting your connection via www.speedguide.net:8080 .
www.speedguide.net can give you an indication of which values and tweaks will improve your network connection.
Faster Firefox
Continuing with the networking theme, you can optimise much more than just your TCP settings. Mozilla Firefox has a raft of options cunningly hidden from users that can untap the browser's potential...
Disable IPv6 (again!)
With this tweak we will simply amend an existing value. Type the following into the search bar: network.dns.disableIPv6
You shouldn't have to type out the whole thing, as the listings change dynamically as you're typing. Simply double-click on the entry to change the default value of "False" to "True".
Render pages faster
Create a new integer value in about:config named content.notify.backoffcount and set the value to 5 so that Firefox won't wait for the entire page to download before rendering. You can also create a value with the name nglayout.initialpaint.delay and set the value to zero . This ensures that Firefox doesn't wait for the page layout information to be fully downloaded before rendering.
Optimise your history
If you reduce the amount of web history that Firefox stores, it will load faster and also save you some disk space. Type the following in the search bar: browser.history and change browser.history_expires_days and browser.history_expires_min to zero . You can also use low numbers if you want to keep some browser history.
More TCP tweaks
Change the network.http.pipelining and network.http.proxy.pipelining values to "True" and then set network.http.pipelining.maxrequests to 8 instead of 4 . These tweaks boost performance for broadband users as we use a TCP technique known as pipelining, which allows Firefox to make multiple requests on a single connection.
Any mistakes here could break Firefox, so once you've made a backup and a vow of honour you can unleash the power hidden in your browser.
Speed up menus
Start by typing about:config and accepting the warning that comes up (you will need to do this for all these Firefox tips). The listing you see is much like the Firefox equivalent of the Windows registry, which means that though this is a very powerful way to tweak your browser you can cause serious stability problems if you get it wrong.
We can make our Firefox menus load faster by adding our own value to the listing. Right-click anywhere in the listing and then click New > Integer . Use ui.submenuDelay as the name and then set the value to zero . When you restart Firefox you should notice that your menus load noticeably faster, as you have removed the delay for the menu popups.
Voice of the Guru #3
Paul Frields - Fedora project leader
"Here's something I can’t live without: combining the Mutt mail reader with offlineimap. The offlineimap utility synchronises my remote IMAP stores on to my local hard disk, which means my email reading is faster by several orders of magnitude. I can sync my email before I pack for travel, and then while in transit, or waiting at an appointment, I can read email as quick as a flash because it's all stored locally. Mutt makes my mail processing chores incredibly efficient, so I can effectively deal with the thousands of email messages I get every week. When I get back online and run offlineimap again, all the flags are synchronised again and my remote IMAP stores record what I've read."
发表评论
-
Fedora 13 Alpha 发布
2010-03-09 10:03 1058经过一周的延期过后,代号 Goddard 的 Fedora 1 ... -
超简单 无需光驱Windows下硬盘安装CentOS
2010-01-02 05:23 6243只要按照以下步骤做了,包你能把CentOS请回家:loveli ... -
Make Linux faster and lighter<4>
2009-11-05 15:54 843Speed up your software Almost ... -
Make Linux faster and lighter<2>
2009-11-05 15:53 610Optimise Gnome Along with KDE, ... -
Make Linux faster and lighter<1>
2009-11-05 15:52 1019With just a few tweaks, your Li ... -
20 Free Best Linux Wallpapers
2009-11-05 15:51 1507Hey linux guys! Who said I fo ... -
The 10 Best Linux Distributions of 2009
2009-11-05 15:49 921It was exactly one year ago tod ... -
Linux虚拟化:10个让你不得不爱的理由
2009-10-31 15:04 725对于很多云技术供应商、虚拟软件 生产商以及大型IT公司来 ... -
CentOS 5.4 发布
2009-10-22 11:09 936CentOS Linux 是一个依 GPL 规范,及利用 Re ... -
Everything is Unix
2009-10-13 07:51 770Recently there has been some ch ... -
GNU项目发布Debugger 7.0
2009-10-10 09:55 837做为一款多种编程语言(如C,C++和Pascal)的调试器,G ... -
openSuse 11.2的最后beta版
2009-10-06 08:06 676openSUSE11.2发布了最后的beta版本。第一个最终候 ... -
Gemtoo Linux为10周年发布特别版的LiveDVD
2009-10-06 08:00 1075Gentoo的开发者宣布为了10周年纪念发布了特别版的Live ... -
Linux saves Aussie electrical grid
2009-10-06 07:44 800QUICK THINKING open sourcerers ... -
恢复LINUX的root密码
2009-10-04 08:43 1000一. lilo 1. 在出现 lilo: 提示 ... -
Linux系统中Mysql 密码恢复
2009-10-04 08:43 952【IT168 专稿】Mysql隔一 ... -
戴尔的即时启动Linux主板:是在浪费时间?
2009-10-04 08:42 819本周早些的时候,我 ... -
Linux TCP Tuning
2009-10-01 08:16 1217There are a lot of difference ...
相关推荐
<END><br>28,ColorProgressBar.zip<br>Replaces the standard progress bar with one that is on the order of O(n^2) times faster, with color options, and directional options.<END><br>29,MDITaskBarDemo.zip...
1,01.zip<br>MFC Extension Library<br>MFC扩展界面库, 使用Visual C++ 6.0(15KB)<END><br>2,02.zip<br>Visual Studio style UI<br>Visual Studio风格的界面效果(15KB)<END><br>3,03.zip<br>Internet Explorer 4 ...
<br><br> m_hDC = CreateCompatibleDC(0) <br> If (m_hDC <> 0) Then <br> If (CreateDIB(m_hDC, lWidth, lHeight, m_hDIb)) Then <br> m_hBmpOld = SelectObject(m_hDC, m_hDIb) <br> Create = True <br> Else <br...
<br><br> m_hDC = CreateCompatibleDC(0) <br> If (m_hDC <> 0) Then <br> If (CreateDIB(m_hDC, lWidth, lHeight, m_hDIb)) Then <br> m_hBmpOld = SelectObject(m_hDC, m_hDIb) <br> Create = True <br> Else <br...
YOu can change the ToopTip and images in RunTime, this will make it easy to make a flashing icon to get the users attention.<END><br>15 , ExcellOS.zip<br>This is a fake Operating System <END><br>16 ,...
The sample creates a new database file and allows you to view, add, or delete records in this database."<END><br>2 , dbprint.zip<br>This demonstrates how to print data from a database.<END><br>3 , ...
Its functionality lies between MySQL and PostgreSQL, however it is faster than both databases.<br><br>In SQLite, author Chris Newman provides a thorough, practical guide to using, administering and ...
<depth>3</depth> </size> <object> <name>dog</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>100</xmin> <ymin>50</ymin> <xmax>300</xmax> ...
其中,`<filename>`指定了图像文件名,`<size>`包含了图像的宽、高和通道数,`<object>`标签下的`<name>`表示目标类别,`<bndbox>`则给出了目标的边界框坐标(`<xmin>`, `<ymin>`, `<xmax>`, `<ymax>`),描述了目标...
<depth>图像通道数(通常是3,RGB)</depth> </size> <segmented>0</segmented> <object> <name>硬币类型(如一元、五角、一角)</name> <pose>Unspecified</pose> <truncated>0或1(是否被截断)</truncated...
You can also create your own policy files that define arbitrary permission sets.<br/><br/>Comparison of the sample security policy file <br/><br/> <br/>Permissions/Resource Setting Admin Default ...
<depth>3</depth> </size> <object> <name>car</name> <bndbox> <xmin>100</xmin> <ymin>50</ymin> <xmax>300</xmax> <ymax>250</ymax> </bndbox> </object> </annotation> ``` 在上述例子中,`<name>`...
<depth>3</depth> </size> <object> <name>class1</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>100</xmin> <ymin>50</ymin> <xmax>200</xmax> ...
<depth>3</depth> </size> <segmented>0</segmented> <object> <name>car</name> <pose>Unspecified</pose> <truncated>0</truncated> <difficult>0</difficult> <bndbox> <xmin>100</xmin> <ymin>50</...
* Clipboard Tools - The clipboard as your trusty sidekick because a smart clipboard is a whole lot better than a simple one.<br> * Navigation Tools - Move through source code faster because fishing ...
* Clipboard Tools - The clipboard as your trusty sidekick because a smart clipboard is a whole lot better than a simple one.<br> * Navigation Tools - Move through source code faster because fishing ...
1、写入训练的txt文件 <br>    修改configs包下面的config文件中三个属性    然后根据自己的数据集的标注文件是怎么个形式选择执行data包下面process_data.py文件中的两个方法。 <br>  &...
经典的模型如YOLO(You Only Look Once)、SSD(Single Shot Multibox Detector)或Faster R-CNN等都可以被用于目标检测任务,通过网络学习来识别和定位跌倒事件。同时,考虑到跌倒检测的动态特性,也可以考虑使用...
<label for="friction">friction <span>(f>1: faster, faster! f<1: slow....)</span></label><br /> <input id="friction" value=".9" min="0.5" step="0.05" ...