Disabling
- To reduce CPU usage:
If you are running KDE (see ["DebianKDE"]), do not use the newsticker - at least not with many sources. This can consume over 90% of your CPU resources. If you have a poor performance and you see "kdeinit: kicker" on the first ranks in top then it's probably the newsticker. In particular, consult [http://wiki.kde.org/tiki-index.php?page=Performance%20Tips the KDE Performance Tips]
- To reduce memory usage:
Uninstall or at least stop any unneeded service (["Apache"], ["PostgreSQL"], XFS (the X Font Server), Samba, ["MySQL"], ...) with update-rc.d -f apache remove for example (not quite the right way to do it, because on next upgrade of the service, it will put the links back)
- Use mingetty, or better, fgetty, instead of ["getty"]. Even better, reduce the number of *gettys used if you know you'll never switch to console
Niceing (from highest to lowest priority)
Renice esd/artsd to -15. If these don't get CPU right away when they need it, your sound will break up
- Jack the nice value of X from 0 to -10. The nice value doesn't make it much "faster", but it does significantly improve latency. There is a debconf question for that, if you need to do it at all. Check first if it's not running nice -10 out of the box (my woody box did). Deprecated with kernel 2.6 and ["XFree86"] 4.3
gpm (see ["GPMMouseConfig"]) should be niced to match X when acting as a repeater. (Should it be even higher priority? & Why use gpm?)
- Software that's always sucking down a little CPU in the background but still should be interactive (like lopster or gtk-gnutella) should be niced to 5 or so
- If you run any servers on your workstation, they should run around nice 10. They need to get back to the user, but they shouldn't make your UI get unpleasant when they get hit
Make all your cron jobs run at nice 20 (crontab -e, edit command line to contain nice -n20). They have no reason to demand interactive latency, and you do need said latency for your UI
[http://and.sourceforge.net/ AND (the Auto Nice Daemon)] should be used to renice or kill programs that get too much or too few priority, as well as those often going bersek (like gnome-spell used to). It should completely remove the manual mess recommended hereup if you configure it right
Low-level Tuning
Turn on DMA and unmasked interrupts (insert usual warnings about potential problems with really old computers having these on). Significantly reduces "jerkiness" in X when doing disk access, including paging. See the two following points. Try the options first, then run hdparm at boot time. The easiest way is to install hwtools and edit /etc/init.d/hwtools
- You can do "hdparm -c3 -d1 /dev/yourharddrivenamehere" with almost no risk
- With caution (backup your data first) you can play with the -u and -m options (preferentially with your device mounted ro)
- Sarge's hdparm seems to get all this almost optimal
Updating
Use mozilla 1.1 or + (much faster redraw than 1.0): I don't know if 1.1 enables it already by default, but you can tweak the redraw speed by adding the line user_pref("nglayout.initialpaint.delay", 100); into user.js. If you don't find any such file in your system, just create one with the said line in it in the directory under ~/.mozilla where your prefs.js resides
Use [http://www.kde.org KDE 3.2]. The rewritten kwin is faster than the previous one. It has also many new features. A very good upgrade in my opinion. Consider ["DebianKDE"]
Use an up-to-date version of GTK+ 2.x. (wow, the version RedHat is packaging is much faster at rendering AA text than the old snapshot I had from [http://www.novell.com/linux/ximian.html Ximian])
- Use gnuserv mode in emacs/emacs
Use [["XFree86"] http://www.xfree86.org] 4.2 or more, it loads fonts a lot faster (because it uses a cache)
Develop directly from Sid to get new packages that can make the system feel nicer. Consider ?CopingWithUnstable though
Kernel
(see ["KernelALaDebian"])
Use a 2.6 kernel whenever possible. It includes a lot of improvements for speed and better use of your hardware.
Use a kernel shipped with Debian and optimized for your CPU's architecture. You could already notice HUGE improvements (see ?InstallingOptimizedKernelPackage)
?BuildYourOwnKernel images with the following points bearing in mind. This can make a BIG difference in speed! (Tempered by difficulty to implement)
- Compile for your specific processor architecture! this makes sure that you are actually using the new features your processor provides...
- Enable only the stuff that you really need.
Include things like the low-latency patch and the preemption patch which make the system feel faster. At least the preemption patch is included in the 2.6.x series and only requires turning on before compiling. The low-latency patch is a special case where a prebuild kernel can be used for both desktop and server, by switching low-latency with echo 1 > /proc/sys/kernel/low-latency.
Refer to the [http://members.optusnet.com.au/ckolivas/kernel/ Kernel patch homepage of Con Kolivas] for a fairly complete list.
- Use devfs (see ["DevFAQ"]), or preferably udev if on a 2.6 kernel, as devfs has been deprecated. Should be faster when seeking for a peripheral as well as provide with more flexibility when using hotpluggable hardware (ex: USB) and present a clearer /dev for the newcomer.
Other
Prelink your binaries, especially OpenOffice. See: [http://people.debian.org/~chris/prelink/ Debian page about prelinking] (this page seems to be dead; there is an archived version of this page at http://web.archive.org/web/20031010172145/http://people.debian.org/~chris/prelink/ ) and [http://www.gentoo.org/doc/en/prelink-howto.xml Gentoo prelink howto] (somewhat useful for Debian, too). There is no prelink package in Woody because prelinking requires a newer libc version than Woody's. It exists in Sarge/Sid though and OpenOffice's installation will ask you if you want to prelink it if package prelink has been installed before.
- Install package libc6-i686, which improves things on any decent, modern CPU.
Further Reading
Improve Linux performance: http://www-106.ibm.com/developerworks/linux/library/l-perf/?ca=dgr-lnxw83FasterLinux
- Tweaking Tux:
- How to boot GNU/Linux faster (a.k.a. using make to manage services dependencies):
Based on suggestions made on Slashdot on the [http://slashdot.org/articles/02/09/30/1118206.shtml?tid=110 Redhat 8.0 Reviewed] topic.
Contributors: Jérôme Warnier (jwarnier@beeznest.net), Mark Bucciarelli, David Andel, Leonithas Arvanitis, Carlos Vieira [http://www.etoo.cn/xianwei 中空纤维膜] [http://www.etoo.cn/chaolv 超滤膜] [http://www.etoo.cn/jiaoxue 嵌入式教学] [http://hjsos.com/zhuangxiu.html 装修] [http://hjsos.com/jiaquan.html 甲醛] [http://hjsos.com/snwr.html 室内污染] [http://hjsos.com/zxwr.html 装修污染] [http://hjsos.com 甲醛污染] [http://www.zy-image.com 摄影学校] [http://www.ltjz2000.com/beijingsijiazhentan.htm 北京私家侦探] [http://www.timead.net/zgjs.html 窄告] [http://www.etoo.cn/jianruishiyou 尖锐湿疣] [http://www.etoo.cn/jlb 计量泵] [http://www.etoo.cn/yiliao/gfzbd.htm 高分子绷带] [http://www.etoo.cn/yiliao/gkqx.htm 骨科器械] [http://www.etoo.cn/yiliao/gkzrw.htm 骨科植入物] [http://www.etoo.cn/yiliao/wgdzj.htm 外固定支架] [http://www.etoo.cn/yiliao/jzcp.htm 脊柱产品] [http://www.etoo.cn/yiliao/nwgd.htm 内外固定] [http://www.etoo.cn/yiliao/jkhc.htm 进口耗材] [http://www.etoo.cn/yiliao/gkhc.htm 骨科耗材] [http://www.etoo.cn/yiliao/gkqc.htm 骨科器材] [http://www.etoo.cn/yiliao/ylqx.htm 医疗器械] [http://www.etoo.cn/yiliao/ylqc.htm 医疗器材] [http://www.16safe.com/qiche/anquan.htm 轮胎安全] [http://www.16safe.com/qiche/znjc.htm 智能监测] [http://www.16safe.com/qiche/luntai.htm 轮胎防爆] [http://www.16safe.com/qiche/qiche.htm 汽车轮胎] [http://www.ltjz2000.com/zhentan.htm 私人侦探] [http://www.ltjz2000.com/sj.htm 私家侦探] [http://www.ltjz2000.com/xunren.htm 寻人] [http://www.ltjz2000.com/hydc.htm 婚姻调查] [http://www.ltjz2000.com/dc.htm 调查] [http://www.ltjz2000.com/zhentan.htm 侦探] [http://www.ltjz2000.com/sj.htm 北京私家侦探] [http://www.ltjz2000.com/dc.htm 调查公司] [http://www.etoo.cn/zhaigao 窄告] [http://www.etoo.cn/sports 健身器材] [http://www.etoo.cn/sports 健康器材] [http://www.etoo.cn/sports 体育器材] [http://www.etoo.cn/stadium 场馆设备] [http://www.etoo.cn/stadium 跑步机] [http://www.etoo.cn/21win-win 拓展训练] ?"SsSa" ?"SsSb" ?"SsSc" ?"SsSd" ?"SsSe" ?"SsSf" ?"SsSg" ?"SsSh" ?"SsSi" ?"SsSj" ?"SsSk" ?"SsSl" ?"SsSm" ?"SsSn" ?"SsSo" ?"SsSp" ?"SsSq" ?"SsSr" ?"SsSs" ?"SsSt" ?"SsSu" ?"SsSv" ?"SsSw" ?"SsSx" ?"SsSy" ?"SsSz" [http://www.wjmgy.com 脉管炎] [http://www.wjmgy.com/1 脉管炎]
