Monday, January 9, 2012

Mempercepat Ubuntu Part III


Setelah melewati 2 Bagian untuk Tweak Ubuntu, sekarang saatnya mengoprek sysctl.conf

Sebelum sysclt.conf kita oprek sebaiknya kita membackup dulu

    $ sudo cp /etc/sysctl.conf /etc/sysctl.conf.bak

Edit file /etc/sysctl.conf dengan mengetikkan di terminal
  
    $ sudo gedit /etc/sysctl.conf

Kemudian kita tambahkan

Untuk RAM 512 MB keatas

kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
fs.file-max = 65536
vm.swappiness = 0
vm.vfs_cache_pressure = 50

Untuk Koneksi Broadand cepat (UL 10Mbps / DL 10Mbps, my broadband connection speed) tambahkan

net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_no_metrics_save = 1

Untuk Koneksi Wifi (such as IEEE 802.11 a/b/g) or a 3.5G modem tambahkan 

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 = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1

Simpan dan keluar

Untuk mengaktifkannya 

 $ sudo sysctl -p


Reff : 


http://www.ubuntugeek.com/performance-tuning-with-system-control-sysctl-in-ubuntu.html

No comments:

Post a Comment