summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Abgrall2014-02-21 14:05:01 -0600
committerJP Abgrall2014-03-12 19:25:51 -0500
commitefbf36f2dad8f083de6f48dbb682461d7cfa9781 (patch)
tree189eff31399bd4863c12eac40827fd357550cf9c
parent6941a83c2dd34df606df13972576fbc23172c3c5 (diff)
downloadplatform-system-core-android-4.4w_r1.tar.gz
platform-system-core-android-4.4w_r1.tar.xz
platform-system-core-android-4.4w_r1.zip
The kernel's default is between 4~20. Prepare for javaland to modify the value at runtime. It can be done via setprop sys.sysctl.tcp_def_init_rwnd <value> Bug: 12020135 Change-Id: Id34194b085206fd02e316401c0fbbb9eb52522d2 (cherry picked from commit 7c862c8b5e59cbe216a5bc092c01f1ecba8e9de4)
-rw-r--r--rootdir/init.rc11
1 files changed, 10 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 21ebccb79..1ee9fbf4a 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -369,6 +369,9 @@ on boot
369 setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 369 setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
370 setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144 370 setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144
371 371
372# Define default initial receive window size in segments.
373 setprop net.tcp.default_init_rwnd 60
374
372 class_start core 375 class_start core
373 class_start main 376 class_start main
374 377
@@ -401,9 +404,15 @@ on property:vold.decrypt=trigger_shutdown_framework
401on property:sys.powerctl=* 404on property:sys.powerctl=*
402 powerctl ${sys.powerctl} 405 powerctl ${sys.powerctl}
403 406
404# system server cannot write to /proc/sys files, so proxy it through init 407# system server cannot write to /proc/sys files,
408# and chown/chmod does not work for /proc/sys/ entries.
409# So proxy writes through init.
405on property:sys.sysctl.extra_free_kbytes=* 410on property:sys.sysctl.extra_free_kbytes=*
406 write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes} 411 write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes}
412# "tcp_default_init_rwnd" Is too long!
413on property:sys.sysctl.tcp_def_init_rwnd=*
414 write /proc/sys/net/ipv4/tcp_default_init_rwnd ${sys.sysctl.tcp_def_init_rwnd}
415
407 416
408## Daemon processes to be run by init. 417## Daemon processes to be run by init.
409## 418##