Ubuntu optimization: 1. Disabling IPv6 is not yet available. The advanced Ubuntu function can be blocked temporarily to speed up # vi/etc/modprobe. d/aliasesaliasnet-pf-10ipv6 ===& gt; aliasnet-pf-10off # Running STARTUP script in parallel (with caution)/etc/init. d/The following are all startup scripts. By default, these scripts are started in order. In fact, if you are using
Ubuntu optimization:
1. Disable IPv6
IPv6 is not yet available. Ubuntu's advanced feature can be blocked for the moment to speed up
# Vi/etc/modprobe. d/aliases
Alias net-pf-10 ipv6
==>
Alias net-pf-10 off # ipv6
2. Run the boot script in parallel (use with caution)
/Etc/init. d/The following are all startup scripts. By default, these scripts are started in order. In fact, if you are using SATA or SCSI interfaces, you can start these script programs in parallel to accelerate the startup process.
# Vi/etc/init. d/rc
CONCURRENCY = none
==>
CONCURRENCY = shell
3. Use localhost as the host name.
It is said that this method can improve the problem of slow startup of applications in GNOME after using Ubuntu.
# Vi/etc/hosts
127.0.0.1 localhost
127.0.1.1 Ubuntu
==>
127.0.0.1 localhost Ubuntu
127.0.1.1 Ubuntu
Note: add the host name at the end of the first line, that is, the name of the second line.
4. Disable Pango
Pango is a library that focuses on internationalization and is used for output and text rendering. However, this library may cause some programs such as Firefox to occupy too much CPU, so we can disable it.
# Vi/etc/environment
Pai_disable_pango = "1"
5. Disable gettys.
# Vi/etc/event. d/tty3
Comment out all rows starting with start (: % s/^ start/# start/) /)
6. Install preload
You can pre-load some commonly used lib libraries and applications to the memory to increase the startup speed of the program.
# Apt-get install preload
7. Set swappiness
Reducing frequent swap writes will accelerate switching between applications and improve system performance.
The default value is 60. You can change it to 10.
# Sysctl vm. swappiness = 10
If you want it to be automatically set upon startup
# Vi/etc/sysctl. conf (ADD)
Vm. swappiness = 10
8. # 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
9. # vi/boot/grub/menu. lst (cancel the boot screen)
Title Ubuntu 7.10, kernel 2.6.22-14-generic
Root (hd0, 0)
Kernel/boot/vmlinuz-2.6.22-14-generic root = UUID = 740accd9-9adc-4bce-8ca1-c2a7cb8428cf ro quiet splash
Initrd/boot/initrd. img-2.6.22-14-generic
Quiet
==>
Title Ubuntu 7.10, kernel 2.6.22-14-generic
Root (hd0, 0)
Kernel/boot/vmlinuz-2.6.22-14-generic root = UUID = 740accd9-9adc-4bce-8ca1-c2a7cb8428cf ro quiet nosplash
Initrd/boot/initrd. img-2.6.22-14-generic
Quiet