Speed up UBUNTU

9 07 2008
1. Disable IPv6
Edit /etc/modprobe.d/aliases and change the line:
alias net-pf-10 ipv6

to

alias net-pf-10 off #ipv6

2. Run boot processes in parallel
Edit /etc/init.d/rc and change:

CONCURRENCY=none

to

CONCURRENCY=shell

3. Aliasing hostname to localhost
Modify /etc/hosts‘s first two line as follows:

127.0.0.1 localhost yourhost
127.0.1.1 yourhost

where yourhost, is your chosen hostname. This will fasten up applications load.

4. Preload
Preload is an adaptive readahead daemon. It monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times.

sudo apt-get install preload

5. Swappiness
Let’s use swap less frequent. It will faster switching between applications.

sudo sysctl vm.swappiness=10

And edit /etc/sysctl.conf and add the line at the end of the file to set it automatically at boot time:

vm.swappiness=10

7. Profile grub
Grub cap profile your startup, it’s a kind of index on file read at boottime, so after the first time (when it builds the index) it will access those files faster.
Edit /boot/grub/menu.lst and place “profile” at every line’s end witch is starting with “kernel /vlminuz…”

UPDATE: remove if after the next boot.

8. Speed up your HDD
Install hdparm with

sudo apt-get install hdparm

and enable 32 bit IO and UDMA if it wasn’t before with:

hdparm -c3 -d1 /dev/yourdevice

where /dev/yourdevice is your HDD.
And to make it persistent you also need to edit /etc/hdparm.conf, and make it run at every startup, so you have to enable the “Hard disk tuning (hdparm)” service with System->Administration->Services.

9. Speedup Broadband Internet

You have to open your /etc/sysctl.conf file back up again.

scroll to the bottom and just add these lines to it.


net.core.rmem_default = 524288


net.core.rmem_max = 524288


net.core.wmem_default = 524288


net.core.wmem_max = 524288


net.ipv4.tcp_wmem = 4096 87380 524288


net.ipv4.tcp_rmem = 4096 87380 524288


net.ipv4.tcp_mem = 524288 524288 524288


net.ipv4.tcp_rfc1337 = 1


net.ipv4.ip_no_pmtu_disc = 0net.ipv4.tcp_sack = 1


net.ipv4.tcp_fack = 1net.ipv4.tcp_window_scaling = 1


net.ipv4.tcp_timestamps = 1net.ipv4.tcp_ecn = 0


net.ipv4.route.flush = 1

or the sysctl to take effect.

sudo sysctl -p


الإجراءات

Information

3 تعليقات

10 07 2008
Peru

haha, yeah well thnkyu so much, my email is sayyingsorryx@gmail.com

8 08 2008
zakir ahmed

hey why dont you write in both languages man … it would be easy for me to read … by the way cool blog😛 what do you do ? r u a student? do you have a gtalk id ?

10 08 2008
Blaze Boy

thanx for comment🙂,
yes i’m a student of computer science and yes i have a Gtalk ID blazeeboy[at]gmail

أضف تعليقاً

إملأ الحقول أدناه بالمعلومات المناسبة أو إضغط على إحدى الأيقونات لتسجيل الدخول:

WordPress.com Logo

أنت تعلق بإستخدام حساب WordPress.com. تسجيل خروج   / تغيير )

صورة تويتر

أنت تعلق بإستخدام حساب Twitter. تسجيل خروج   / تغيير )

Facebook photo

أنت تعلق بإستخدام حساب Facebook. تسجيل خروج   / تغيير )

Google+ photo

أنت تعلق بإستخدام حساب Google+. تسجيل خروج   / تغيير )

Connecting to %s




%d مدونون معجبون بهذه: