diff options
| author | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-01-28 16:14:19 +0800 |
|---|---|---|
| committer | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-02-15 17:46:56 +0800 |
| commit | f830d91e7d8c02ded610e74c97470bd98a26d947 (patch) | |
| tree | 455716647a48b700c6acd4e313de1a28159c8eae | |
| parent | 0e53d50db72aad6d4f442212abdae05b9f7614a0 (diff) | |
flo: Tune TCP performance
Based on CAF values.
Change-Id: I41cebe5cae5b17c898992cc35d56eaf2615dc3b8
| -rw-r--r-- | init.flo.rc | 4 | ||||
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/init.flo.rc b/init.flo.rc index 60a761d..3cad56d 100644 --- a/init.flo.rc +++ b/init.flo.rc @@ -112,8 +112,8 @@ on boot # 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 1220608 - write /proc/sys/net/core/wmem_max 1220608 + write /proc/sys/net/core/rmem_max 2097152 + write /proc/sys/net/core/wmem_max 2097152 # msm specific files that need to be created on /data on post-fs-data diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 4a5084f..a149fee 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -261,4 +261,8 @@ correctly use them when installed on your device. Otherwise, keep this disabled so that applications can still use their own mechanisms. --> <bool name="config_enableAutoPowerModes">true</bool> + + <!-- Configure wifi tcp buffersizes in the form: + rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max --> + <string name="config_wifi_tcp_buffers">524288,2097152,4194304,262144,524288,1048576</string> </resources> |
