Why need to optimize ubuntu performance improve ubuntu boot speed? Ubuntu10.04 boot time is only 25-30 seconds after a new installation, but the boot time rose to around 1m20s after used a period of time. When desktop wallpaper appears, panel load very slow, so i expect to optimize the boot Start Project to improve Ubuntu boot speed and performance.
1. Using Startup Application that the system comes with
Open System -> Preferences -> Startup application
One is the system default, but not frequently used daily can stop off, such as: Remote Desktop, visual aids, Bluetooth Manager, personal folders sharing, hardware updates, power management, print queue. Ubuntu one, evolution remind, Login voice reminders, disk report.
Another is the program automatically added to start the application after installed the software, such as red pandas, conky, all can removed.
2. Using the Boot-Up Manager to prohibit the services without start automatically Boot-Up Manager
Description:In the Debian family of distributions, the system read the script file / etc / init.d. if you want these scripts do not work, you need to change the script permissions, but this is very complicated, for the convenience of you DIY your own computer, Boot-Up Manager used a graphical interface to configure your system startup scripts.
Boot-Up Manager Install: sudo apt-get install bum
Boot-Up Manager Usage:In the System -> Applications to find Boot Up-Manager
Just wait a few minutes when you first use it until the software generates the disk cache.Select “Advance”, will appear three tab summary, service, startup and shutdown script.
Improve the ubuntu boot speed – Service Optimization
In the summary tab, set the startup items of the Ubuntu system configuration.
Reservation: udevmonitor, nvidia-kernel, plymouth, network-manager, acpi-support, pulseaudio , kernleloops, preload, cron time task.
Closure: Acpid-Power Management apache2 server, atd time task, bootlog, cups printers, mysql database, openvpn, ssh, tor relay service, winbind … … ..
3. Set: timeout=0 optimize ubuntu performance improve ubuntu boot speed.
If the system installation procedures and software are not the same, the content of the summary tab will be different, should be adjusted according to individual circumstances.
4. Optimizing memory.
This is not optimize the physical memory, but optimize Kernel paging mechanism, use$ Sysctl vm.swappiness you can view the current kernel value, legal value from 0 to 100, you can modify the default value to 20.Add the following line to the file / etc / sysctl.confvm.swappiness = 20
Of course, physical memory is large enough, at least 1GB, or it may be counter-productive.
5. Optimizing disk performance.
If your hard drive supports DMA (Direct Memory Access), you need to use the tool called hdparm, modify disk parameters, it’s best to backup data.In the ubuntu system, this tool is installed by default.$ Sudo hdparm-tT / dev / hdaThis command is to test the disk read speed, you can run several times to obtain the average value
Boot disk DMA mode $ Sudo hdparm-d1 / dev/hda1Where hda1 is the boot partition, note that it will not be saved after startup, if you want to use it each time after boot, you can run it each time, or write to the script and automatically run it, such as write to /etc/rc.local. However, all current SATA disks will automatically start, so this is an effective to IDE disk.
6. Starting the process in parallel to optimize ubuntu performance improve ubuntu boot speed.
Of course, the real parallel execution need multi-core support, if the computer is multi-core, you can modify / etc / init.d / rc file, change CONCURRENCY = none to CONCURRENCY = shell6.
Reconfigure the boot sequence
According to the location of services on disk, ubuntu could order those service, and disk pre-reading technology to set the boot sequence of appropriate service . In the file / etc / readahead directory, containing pre-reading project, there are no startup items you configured, because it is for developers. To enable this technology, edit the kernel boot parameters, you can join the profile, after the start, you will find ubuntu run slow, this is normal, after the reboot it will be soon. Of course, this also depends on the layouts of individual files on the disk.
8. Using a lightweight window manager such as Xfce, box series.
9. Recompile the kernel to optimize ubuntu performance improve ubuntu boot speed.
In order to meet the needs of a variety of hardware platforms, Ubuntu build core with a wide range of support, the kernel has become so large and unwieldy.
10. Method to see the system boot time.
Open Software Center, search bootchart, then install the two software you found.
After boot there will be a PNG format picture in / var / log / bootchart folder, PNG pic record the behavior of the system boot. Unnecessary boot services takes up more time, you can use chkconfig to configure the boot service, or use graphical software Boot up Manager to configure.
bootchart is the default boot, if you do not like, you can delete it.
sudo apt-get autoremvoe bootchart pybootchartgui-purge.
11. Disable IPv6.
IPv6 is not coming now, this Ubuntu advanced functionality can be blocked.
# Vi / etc / modprobe.d / aliasesalias net-pf-10 ipv6===>alias net-pf-10 off # ipv6.
12. Using localhost as the the host name.
This method could improve the speed of start the application after using Ubuntu GNOME.# Vi / etc / hosts127.0.0.1 localhost127.0.1.1 Ubuntu===>127.0.0.1 localhost Ubuntu127.0.1.1 UbuntuNOTE: In the end of the first line, add the host name, which is the name of the second line.
13. Disable Pango to optimize ubuntu performance improve ubuntu boot speed
Pango is a international, for output, and text rendering library, but the library may result in Firefox and some other program is consuming too much CPU, so we can disable it.
# Vi / etc / environment
MOZ_DISABLE_PANGO = “1″
14. Disable gettys
# Vi / etc/event.d/tty3
All lines with start at the beginning, with the # comment out (:% s / ^ start / # start /)
15. Installing preload
You can preload some lib libraries and applications that can be used commonly into memory to increase the speed of proceedings
# Apt-get install preload
16. Setting swappiness to optimize ubuntu performance improve ubuntu boot speed
Reducing the system write to swap frequently, to speed up switching between applications will help improve system performance.
System default is 60, you can change it to 10
# Sysctl vm.swappiness = 10
If you want it to start automatically set
# Vi / etc / sysctl.conf (added)
vm.swappiness = 10
17. # vi /etc/fstab
# /dev/sda1
UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf / ext3 defaults,errors=remount-ro 0 1
===>
# /dev/sda1
UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf / ext3 defaults,errors=remount-ro 0 0
18. Cancel Boot Splash Screen
# vi /boot/grub/menu.lst
title Ubuntu 7.10, kernel 2.6.22-14-genericroot (hd0,0)kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf ro quiet splashinitrd /boot/initrd.img-2.6.22-14-genericquiet===>title Ubuntu 7.10, kernel 2.6.22-14-genericroot (hd0,0)kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=740accd9-9adc-4bce-8ca1-c2a7cb8428cf ro quiet nosplashinitrd /boot/initrd.img-2.6.22-14-genericquiet.
After you have installed all kinds of software(How to install Ubuntu from hard disk drive in the Win 7 without CD-ROM), then you can optimize the Ubuntu system performance to improve ubuntu boot speed, this will reduce the mistakes, the following is the programs I tested, does not affect any performance of the system and computer.
1, boot speed
sudo apt-get remove ubuntu-xsplash-artwork libusplash0
sudo gedit /etc/fstab
2, speed up system
sudo apt-get remove gnome-games-common
sudo apt-get remove libbluetooth3
sudo apt-get remove hdparm
sudo apt-get remove openoffice.org-draw openoffice.org-math openoffice.org-impress openoffice.org-calc openoffice.org-writer
sudo apt-get remove cron anacron rsync
sudo apt-get remove cups hplip system-config-printer-common
sudo apt-get remove libbrasero-media0
sudo apt-get remove empathy-doc evolution-common
sudo apt-get remove xsane-common
sudo apt-get remove pulseaudio
Remove the system components in isolation dpkg-l | grep ^ rc | awk ‘(print $ 2)’ | tr ["\ n"] [""] | sudo xargs dpkg-P -
If you have good idea to optimize ubuntu performance improve ubuntu boot speed, welcome to share.




