From d0ebd8157e82141bde25060d03242c16d84927c7 Mon Sep 17 00:00:00 2001 From: Guntawee Tiwapong Date: Wed, 20 Feb 2013 14:34:38 -0800 Subject: [PATCH] init.rc: Restored TCP performance tuning This patch tunes the TCP buffer sizes for high performance data links including global max rmem and wmem. Change-Id: Ida0f9fd6ec23143b158284a019fd26672103c6ce CRs-Fixed: 439205 435908 --- rootdir/init.rc | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 9e0f2c187a4..aefa41fa905 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -387,17 +387,22 @@ on boot # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, setprop net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208 setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576 - setprop net.tcp.buffersize.lte 4096,87380,1220608,4096,16384,563200 - setprop net.tcp.buffersize.umts 4096,87380,563200,4096,16384,110208 - setprop net.tcp.buffersize.hspa 4096,87380,704512,4096,16384,110208 - setprop net.tcp.buffersize.hsupa 4096,87380,704512,4096,16384,262144 - setprop net.tcp.buffersize.hsdpa 4096,87380,704512,4096,16384,262144 - setprop net.tcp.buffersize.hspap 4096,87380,1220608,4096,16384,393216 - setprop net.tcp.buffersize.edge 4096,26280,35040,4096,16384,35040 - setprop net.tcp.buffersize.gprs 4096,8760,11680,4096,8760,11680 - setprop net.tcp.buffersize.evdo 4096,87380,563200,4096,16384,262144 + setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576 + setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208 + setprop net.tcp.buffersize.hspa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hsupa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hsdpa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040 + setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 + setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144 setprop net.tcp.buffersize.evdo_b 4096,87380,704512,4096,16384,262144 +# Assign TCP buffer thresholds to be ceiling value of technology maximums +# Increased technology maximums should be reflected here. + write /proc/sys/net/core/rmem_max 2097152 + write /proc/sys/net/core/wmem_max 2097152 + # Set this property so surfaceflinger is not started by system_init setprop system_init.startsurfaceflinger 0