ubuntu优化
转载于此便日后查询,出处不明。
ubuntu优化
1.减小swap的读写可以提升系统性能,建议512内存以上使用。
代码: #sysctl -q vm.swappiness 用来查看当前读写值
代码: #sudo gedit /etc/sysctl.conf 打开文件
值越小使用的越少,1G建议为5,2G建议为3。
添加 vm.swappiness=10 到末行,重启即可(适合512的取值)。
2.使用tmpfs缓存文件,1G内存以上使用。
通过tmpfs从内存划出一部分作为tmp文件夹使用
编辑tmpfs文件,主义size不要超过物理内存的一半。
tmpfs /tmp tmpfs mode=1777 0 0
若要严格控制物理内存的大小,即tmp文件夹大小。
tmpfs /tmp tmpfs size=100m,mode=1777 0 0
3.卸载无用内核
uname -a (当前内核版本)
dpkg –get-selections|grep linux (查看内核状态)
sudo apt-get remove linux-image-2.6.24-12-generic (卸载无用内核,需自己选择版本)
4.guest用户无法使用usb
sudo gedit /etc/fstab
末行添加类似: none /proc/bus/usb usbfs devmode=666 0 0
5.优化firefox
url栏目中输入:about:config 搜索以下关键项若没有自己建立即可,bool就是建立布尔,整数就是建立整数,字符串就是建立字符串
更改:
network.http.pipelining 为 ture
network.http.pipilining.firstrequest 为 ture
network.http.proxy.pipelining 为 true
network.http.pipelining.maxrequest 为48
nglayout.ititialpaint.delay 0
network.http.max-connections 48
network.http.max-connection-per-server 24
network.http.max-persistent-connection-per-proxy 16
network.http.max-persistent-connection-per-sever 8
network.dns.disableIPv6 true
dom.disable_window_status_change ture
browser.cache.disk.capacity 110592
browser.search.openintab true
plugin.expose_full_path true
需新建的
content.notify.backoffcount 5
content.switch.threshold 750000
content.notify.ontimer true
content.notify.interal 750000
content.max.tokenizing.time 2250000
content.interrupt.parsing true
ui.submenuDelay 0
browser.cache.memory.capacity 30720
6.更换成realtime内核(适合i386台式机)
新立得搜索linux-image选择安装linux-image-2.22.14-rt和linux-image-modules-rt两个包。
命令行模式安装 sudo apt-get install linux-rt linux-headers-rt
另:
发现了“屏幕录像软件”
sudo apt-get install xvidcap
- 本站文章除注明转载外,均为原创
- 转载请注明:文章转载自[商业哲学评论]-Business&Philosophy Reviews
- 本文标题: 《ubuntu优化》
- 本文链接地址: http://www.busiphi.com/ubuntuspeed/
- 总裁必修的五个管理寓言 (评论暂缺)
- Firekites-AUTUMN STORY (评论暂缺)
- 博客推广站点收集 (评论暂缺)
- 10个WordPress的.htaccess技巧 (评论暂缺)
- Super Cache Plus – 又一款Wordpress 缓存插件 (评论暂缺)
- 15+ del.icio.us相关Wordpress插件 (评论暂缺)
- 搜索引擎更关注网站内容 (评论暂缺)
- 依靠Google打造成功网站[转] (3 条评论)
- WordPress 插件——GooglePR (评论暂缺)
- 本博客Pagerank实现0的突破 (12 条评论)
相关文章:
Additional comments powered by BackType



