:: Linux Tuning :: Tuning the Desktop

I am going to start posting tuning parameters for different systems configurations.

This is for a Small memory < 4GB desktop.  Specifically a 3GB laptop.

RHEL5 and 6, some tunables change in 6, but most are ok.

Don’t use for a server, will be really bad.  Obviously, there are network tuning parameters here and I presume NFS access/needs.  These parameters are well documented on the internet, the why of my parameters, is really my secret sauce.

At a later date, I will describe the why and how of these configurations, but for now, paly if you wish.

Of course these drop in /etc/sysctl.conf.

net.ipv4.tcp_syncookies = 1
net.core.rmem_default = 262144
net.core.rmem_max = 16777216
net.core.wmem_default = 262144
net.core.wmem_max = 16777216
net.core.optmem_max = 1048576
net.core.somaxconn = 512
sunrpc.tcp_slot_table_entries = 128
net.ipv4.ipfrag_low_thresh = 262144
net.ipv4.ipfrag_high_thresh = 393216
net.ipv4.tcp_mem = 786432  1048576 16777216
net.ipv4.tcp_rmem = 8192 87380 16777216
net.ipv4.tcp_wmem = 8192 65536 16777216
net.ipv4.tcp_sack = 0net.ipv4.tcp_timestamps = 0

vm.page-cluster = 20
vm.min_free_kbytes = 200000
vm.swappiness = 0
vm.dirty_background_ratio = 1
vm.dirty_expire_centisecs = 1000
vm.dirty_ratio = 2
vm.dirty_writeback_centisecs = 250
vm.vfs_cache_pressure = 10000
vm.zone_reclaim_mode = 1
vm.laptop_mode = 0