Ubuntu8.04 improved the performance by 1 after the following optimization steps. As mentioned in system installation after selecting the appropriate Ubuntu version, 32-bit CPU users install the 32-bit version of ubuntu, and 64-bit CPU users install the 64-bit version. Some people say that the 64-version software has compatibility problems. I have been using 64-bit systems since ubntuu7.04 and have never encountered any major problems since 8.04. 64-bit systems can also use 32-bit software, as long as you enter the following command in the terminal, install the corresponding 32-bit package: sudo apt-Get install ia32-libs linux32 lib32asound2, 64-bit systems are not slower than 32-bit systems in general applications, and may even be 5 ~ 10% performance improvement. This is my experience after comparing 32-bit systems with 64-bit systems. If a friend encounters any problem in the 64-bit system, can you go to the http://forum.ubuntu.org.cn/viewforum.php? F = 85. Post for help 2. Selecting the appropriate file system my root partition and/home both use XFS file system, and of course some people will recommend using reisefs file system. 3. The default kernel for Linux kernel ubuntu8.04 is 2.6.24.x-generic. You can enter uname-R in the terminal to view the kernel version, which is more suitable for laptop users. For desktop users, we recommend that you use the realtime kernel. You can search for "Linux-image" in the system-system management-new and new software package manager, install "linux-imgage-2.6.22.14-rt" and "Linux-restricted-modules-RT" two packages, the original default kernel image does not need to be deleted, restart after installation, the grub screen has two more RT options. Select the first option to use the RT kernel. RT is short for realtime. A more complete installation is to install all the later RT packages. TIPS: the default kernel does not need to be deleted. After the RT kernel is installed, restart the system. A new kernel option is displayed on the startup selection screen. Select the RT option, can enter the new kernel specific articles can see this post: http://forum.ubuntu.org.cn/viewtopic.php? T = 101888 4. To disable IPv6, we recommend that you disable the code: sudo gedit/etc/modprobe. d/aliases then modify this line: alias net-pf-10 IPv6 is: alias net-pf-10 off # IPv6 then comment out all IPv6-related line code in the hosts file: sudo gedit/etc/hosts this will disable all network interfaces that use IPv6. Create a new/etc/modprobe. d/bad_list file with the following content: alias net-pf-10 off and then restart. 5. This will make the startup program run in parallel and accelerate the Startup Process Code: sudo Kate/etc/init. d/RC (Note: It may be garbled to open it with gedit. Change the editor, such as nano and VI, and you will be OK). Find and modify the line: concurrency = none: concurrency = shell make sure your spelling is correct. if you write a wrong letter, you cannot start it !!! If you are using SATA or SCSI, this method will play the biggest role, but even if I use a machine like ata, this method also makes the logon interface of the domain name management system faster. If you use very old hardware, this method may also slow your machine startup. 6. Correct the name of localhost as the host name. You have decided that the skills I have seen in the UBUNTU Forum have indeed improved the startup of some applications. Code: After sudo Kate/etc/hosts adds your host name to localhost on the first line, like this: 127.0.0.1 localhost yourhost 127.0.1.1 yourhost 7. Preload, as its name implies, can intelligently pre-load lib files and applications used by most first editions based on your daily software usage habits, code: sudo apt-Get install preload 8. The default value of VM. swappiness for swappiness Ubuntu is 60, which is quite suitable. However, you can reduce the number of swap loads and improve the system performance a little bit. input code: sysctl-q vm. swappiness you will see the value is 60, change: Code: sudo sysctl VM. swappiness = 10 so that you can change the value from 60 to 10, which can greatly reduce the system's write to swap. We recommend that you use this method for memory of MB or more friends. If you find that swap is rarely used, you can set the value to 0. This does not prohibit your use of swap, but enables your system to write as little as possible to swap, while using as much as possible your actual memory. This plays a huge role in switching applications, because they are in physical memory rather than swap partitions. If you want to change this value permanently, you need to change sysctl. CONF file: Code: sudo Kate/etc/sysctl. conf added: VM. swappiness = 10 to the last line. Restart to take effect. TIPS: the recommended value of 1 GB memory is 5 GB memory. The recommended value of 3 GB memory is not recommended. Grub option -- profile grub has an option called profile, which is an index of all files to be read when the system starts, in this way, the system will speed up searching and reading these files. When the system starts to the grub boot menu, Press ESC to select your default startup kernel, press e to move to the second line, and then press e to add the profile to the end of the line, press enter and press the B key to start the system for a longer time. This is because you need to create an index (or whatever you call it), but it will be more stable after each start. You need to repeat this step after each kernel update, or after major system changes that affect the files required for your system startup. 10. Install sysv-RC-conf and disable services that you do not need to start. For example, my computer does not have Bluetooth or PCMCIA, so I do not need to start it. Therefore, it is prohibited to drop services that you do not have and do not need. Code: sudo apt-Get install sysv-RC-conf and then: Code: sudo sysv-RC-conf is a reference for some service options. For more information, see disable services. ACPI-support-you 'd better set the running level in S to "X. 2. acpid-ACPI daemon. These two are used for power management and are important for Laptops and Desktops, so they are enabled. 3. ALSA-if you use the Alsa sound subsystem, yes, enable it. 4. ALSA-utils-in my system, this service replaces ALSA, So I disabled ALSA and enabled it at S running level. ** Note **: "close" refers to removing all "X" from all running levels ". It's okay if you don't have it in your system. Let's continue. 5. anacron-a cron subsystem used to execute any unexecuted cron jobs when the time arrives. When a cron job is ready, you may have shut down your computer. For example, updatedb is scheduled to run at every day, but at that time, your computer was disabled, and if the ananron service was enabled, it will try to grab the updatedb cron... I disable it because I don't close my notebook frequently, but whether or not to enable this service depends on you. 6. apmd-this is a service that is very confusing to me. I have enabled the acpid service. What are the benefits of enabling apmd? If your computer is not so old and cannot even support ACPI, you can try to close it. In any case, I disable it. 7. ATD-like Cron, A Job scheduler. I disabled the 8. binfmt-support-core support for other binary file formats. I made it open 9. bluez-utiles-I turned it off because I don't have any bluetooth device 10. bootlogd-enable it 11. cron-enable it 12. cupsys-Subsystem for printer management. I don't have a printer, So I disabled it. If you have a printer, enable it. 13. messaging-message bus system ). It is very important to enable it. 14. DNS-clean-when using a dial-up connection, it is mainly used to clear DNS information. I don't need to dial, So I disabled it. 15. evms-Enterprise Volume Management System (evms). I disabled it. 16. fetchmail-a mail receiving daemon. I disabled it. 17. gmt-gnome Desktop Manager. In any case, I disable it because I use a terminal to guide the system. If you want to direct to the graphic user interface, it depends on you. 18. gdomap-in fact, I don't know why this service must be enabled. I have never seen this daemon in other systems, so I shut it down and I don't think I have lost anything. Is enabling it good for laptops or desktops? 19. GPM-terminal mouse support. If you think it is better to use the mouse on the terminal, enable it in the running level 1 and 2. That's exactly what you need. 20. Halt-do not change it. 21. hdparm-Hard Disk adjustment script. I deleted it in the running level 2, 3, and 4, but added it in the S running level. I think opening DMA early, 32bit I/O, and so on will be beneficial to other processes. I also streamlined the original script. If I know what I am doing, I think it is useless to do too many checks. The corresponding configuration file is/etc/hdparm. conf. 22. hibernate-if your system supports sleep, open it; otherwise, it will be useless to you. 23. hotkey-setup-This daemon creates some hotkey ing for your notebook. Supported Manufacturers include HP, Acer, Asus, Sony, Dell, and IBM. If you have a brand notebook, you can open it, otherwise it may not be good for you. 24. hotplug and hotplug-net # activating the hot swapping system is time-consuming. I will consider turning them off. I made many changes to the/etc/Network/interfaces file and set it to run automatically, instead of ing my wireless Nic during the hot swapping process. So I can turn them off. I have tested them, even I disabled them, UBUNTU still can detect my USB drive, my digital camera, and so on. So I think it is safe to turn them off. ** note ** if you find that your sound card department is working after the hot swapping service is disabled, you can turn the service on, alternatively, edit the/etc/modules file and add the audio/video driver module. Tested, the latter is faster. 25. I shut down the maid printer and graphics subsystem. 26. ifrename-network interface rename script. It sounds cool, but I turned it off. It is mainly used to manage multiple network interface names. Although I have a wireless network card and an Ethernet card, the two are identified by the kernel as eth0 and ATH0, so this service is not very useful to me. 27. ifupdown and ifupdown-clean-open it. These are the network and port activation scripts at startup. 28. inetd or inetd. Real-view the file/etc/inetd. conf to comment out all services you don't need. If the file does not contain any services, it is safe to disable it. 29. klogd-open it. 30. Linux-restricted-modules-common-you should check whether your system has any restricted modules. Since I need the madwifi ath_pci module, I will enable it. Restricted modules can be viewed from/lib/Linux-restricted-modules. If you find that you have not used any restricted modules, it is okay to disable this service. 31. LVM-I have not used logical volumes, So I disable this service. Enable it If you * indeed * have LVM (LVM is not extended here as the logical volume manager). 32. makedev-open it. 33. mdamd-raid management tool. I disable this service because raid is not used. 34. Module-init-tools-load the extension module from/etc/modules. You can study the/etc/modules file to check whether there are modules you don't need. We usually enable this service. 35. Networking-add network interfaces and configure DNS information by scanning the/etc/Network/interfaces file during startup. Open it. 36. ntpdate-synchronization time through the Ubuntu time server. I don't need it when I start it, so I turned it off. 37. NVIDIA-kernel-I compiled the NVIDIA driver myself, so this service is useless to me. If you use the NVIDIA driver from a restricted module, enable this service. 38. PCMCIA-activate the pcmica device. I open this service at S running level instead of 2, 3, 4, 5 running level, because I think it is better to prepare the hardware at first. If you are using a desktop without a pcmica card, disable this service. 39. Portmap-manages daemon for services such as NIS and NFS. If your laptop or desktop is a pure client, disable this service. 40. powernowd-client program for managing CPU frequencies. This notebook is mainly used to support CPU speed stepping technology. Generally, if you are configuring a notebook, you should enable this service. If it is a desktop, this service should be useless. 41. PPP and PPP-DNS-are useless to me. I do not use dialing. 42. readahead-** thanks to mr_pouit! ** Readahead seems to be a type of "preload program ". At startup, it loads some library files into the memory so that some programs can start faster. However, it increases the startup time by 3-4 seconds. So you can keep it... Or no. ** Update **: After my test, I think the loader is no different. So I decided to disable this service. If you have reason to open this service, open it. 43. Reboot-do not change it. 44. resolvconf-automatically configure the DSN information according to your network status. I will open it. 45. rmnologin-If nologin is found, remove it. This will not happen in the notebook, so I will get rid of it. 46. Rsync-rsync daemon. I don't plan to use the rsync protocol on my laptop, so I disable it 47. sendsigs-send signals during restart and shutdown. Let it go. 48. Single-activate single-user mode. Let it go. 49. Ssh-ssh daemon. I need SSH, So I open this service. 50. Stop-bootlogd-Stop bootlogd from 2, 3, 4, 5. Let it go. 51. Sudo-check the sudo status. I did not see any benefits of using sudo on a laptop or Desktop client, so I disabled it. 52. sysklogd-Let it go. 53. udev and udev-monoclonal-user space Dev File System (userspace Dev filesystem ). Good stuff. I will open them. 54. umountfs-Let it go. 55. urandom-random number generator. It may be useless, but I keep it. 56. usplash-well, if you want to see a beautiful boot screen, let it go. In any case, disable this service. If you want to disable it, you can also comment out the splashimage line in the/boot/GRUB/menu. LST file to remove the splash core options. 57. vbesave-video card BIOS Configuration tool. It can save the status of your video card. I will enable it. 58. Xorg-common-set X service ice socket. I started it from S to 2, 3, 4, 5. If I direct to the single-user mode, I do not need this service. This method will not take up time during initial boot. 59. adjtimex-this is also a tool for adjusting the core HW clock. Usually you will not see it in the boot list. In rare cases, if you see it in the boot process, it is a reason, so it is best to let it go. In my case, it is disabled. 60. dirmngr-certification lists management tool ). Work with GnuPG. You must check whether you need it. In my case, I switched it off. 61. hwtools-An irqs optimized tool. Not sure about the benefits of opening it. In my case, I switched it off. 62. libpam-devperm-a daemon used to repair the device file license after a system crash. It sounds good, so I opened it. 63. lm-sensors-if your motherboard has some sensor chips built in, it may be helpful to view the HW status through user space. I ran it, But it prompts "No sensor found", so I disabled this service. 64. The mdadm-raid-function is the same as that of the mdadm service. Used to manage raid devices. If you do not have such a device, turn it off. 65. Screen-cleanup-a script used to clear the boot screen. Well, whether or not to close it is up to you. In my case, I opened it.
- Xinetd-An inetd super daemon used to manage other daemon. In my system, xinetd manages Chargen, daytime, ECHO, and time (in/etc/xinetd. d directory found), I do not have any relationship, so I disabled this service. If you do have some important services in Xinetd, open it.
11. Disable the partition check function during system startup to speed up system startup. Enter the command sudo gedit/etc/fstab on the terminal and find all the following similar statements: #/dev/sda6 UUID = 5092-df5f/Media/sda6 vfat utf8, umask = 007, gid = 46 0 1 change the last 1 to 0, #/dev/sda6 UUID = 5092-df5f/Media/sda6 vfat utf8, umask = 007, gid = 46 0 0 save, the system will not check this partition after it is started. TIPS: It is recommended that the root partition retained check function, and the other partition check function can be disabled by 12. Optimize the 3D desktop effect by entering sudo apt-Get install compizconfig-setting-manager on the terminal. After installation, open the system -- preference -- compizconfig-setting-manager in general) in the display settings, the refresh rate is jumped to 200. Disable Option 13 for checking the refresh rate and synchronizing data to vblank. Configure DNS cache for Internet acceleration. We can use dnsmasq: "apt-Get install dnsmasq" and then edit/etc/resolv. CONF file (the DNS server list is saved here). Add "nameserver 127.0.0.1" at the beginning. 14. To clear system spam, run the following command to clear system spam: sudo apt-Get autoclean clear the old software cache sudo apt-Get clean clear all software caches sudo apt-Get autoremove Delete systems that are no longer in use isolated software should also develop a good habit, that is, use/tmp to place some temporary files. For example, I usually put some compressed files in/tmp for decompression, and then compile the installation file. 15. Disable the tracker service ubuntu8. 04 The tracker service is enabled by default. tracker is a desktop file index that allows you to find the file content. It is a tool similar to googel desktop. However, not everyone may need this tool. The method for disabling it is: System -- preferences -- session. just remove the check box for all tracker items in the tool. Using tmpfs to cache your files you can use tmpfs to split a part of your memory as a virtual buffer hard disk to accelerate file read/write. TIPS: 1. this method is recommended for 1 GB or above memory users. Users with less than 1 GB memory should use it with caution. when the prompt "insufficient/tmp capacity" appears, add the memory or do not use this optimization method to edit the/etc/fstab file. Add the following statement: tmpfs/tmp tmpfs mode = 1777 0 0 save and restart the system, the system will automatically use half of your physical memory for/tmp, as long as the file is read and written in/tmp, it is equivalent to direct read/write memory, thus reducing the number of hard disk reads and writes. This optimization method has good optimization effects for programs that frequently read and write hard disks, such as donkey, BT, and other software, you can also use the virtual backend/tmp to reduce the read/write tips on the hard disk in the cache of web pages: If you want to strictly control the size of the physical memory, you can change the statement: tmpfs/tmp tmpfs size = 100 m, mode = 1777 0 0 here size = m is to let the system draw MB from the physical memory as the virtual/tmp, but be careful that the size value specified by size should not exceed half of the physical memory, otherwise the system may slow down. If the size statement is not added, and the/tmp file size exceeds half of the physical memory, it will continue to use the swap partition as the virtual/tmp until the SWAp is full. Therefore, to make this optimization method provide the best performance, we should make the/tmp data capacity less than half of the physical memory. Note: After the system is restarted, the documents in/tmp will disappear, therefore, back up the useful files in/tmp before shutting down the system.