diff options
author | Giulio Cervera <giulio.cervera@cyanogenmod.org> | 2014-11-28 21:30:51 +0100 |
---|---|---|
committer | Giulio Cervera <giulio.cervera@cyanogenmod.org> | 2014-11-28 21:30:51 +0100 |
commit | c97d33beebc01c3aa7a45ac34d51c9c8524e4d7e (patch) | |
tree | cb6994f5fb6ed9af50ef1534c60023b0179b13a5 | |
parent | fad1532556f1058065da38ac284d67d01ea54fb3 (diff) |
Define TCP buffer
Change-Id: I4e2f218266304beb78f2efdced9117e6da8e5a90
-rw-r--r-- | rootdir/init.qcom.rc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 5370f7a..c0284dc 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -195,6 +195,20 @@ on boot chown system system /sys/kernel/ipv4/tcp_delack_seg chown system system /sys/kernel/ipv4/tcp_use_userconfig + # Define TCP buffer sizes for various networks + # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, + setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 + 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.wifi 524288,2097152,4194304,262144,524288,1048576 + # Define TCP delayed ack settings for WiFi & LTE setprop net.tcp.delack.default 1 setprop net.tcp.delack.wifi 20 @@ -203,6 +217,11 @@ on boot setprop net.tcp.usercfg.wifi 1 setprop net.tcp.usercfg.lte 1 + # 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 + chmod 660 /dev/rtc0 chown system system /dev/rtc0 |