diff options
author | JP Abgrall <jpa@google.com> | 2014-03-14 04:12:50 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-14 04:12:50 +0000 |
commit | 10f229d4291da55c379ce7ae0e87b1a1878199e8 (patch) | |
tree | a8c9c041216d84a28d5dfd7886c6acb9baacf198 /rootdir | |
parent | 0fd9db1f5bda4720408dcfa6502f09a50d05645f (diff) | |
parent | efbf36f2dad8f083de6f48dbb682461d7cfa9781 (diff) | |
download | system_core-10f229d4291da55c379ce7ae0e87b1a1878199e8.zip system_core-10f229d4291da55c379ce7ae0e87b1a1878199e8.tar.gz system_core-10f229d4291da55c379ce7ae0e87b1a1878199e8.tar.bz2 |
am efbf36f2: init.rc: prep tcp_default_init_rwnd, set the default to 60
* commit 'efbf36f2dad8f083de6f48dbb682461d7cfa9781':
init.rc: prep tcp_default_init_rwnd, set the default to 60
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index b8c3096..764d0d0 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -382,6 +382,9 @@ on boot setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144 +# Define default initial receive window size in segments. + setprop net.tcp.default_init_rwnd 60 + class_start core class_start main @@ -414,9 +417,15 @@ on property:vold.decrypt=trigger_shutdown_framework on property:sys.powerctl=* powerctl ${sys.powerctl} -# system server cannot write to /proc/sys files, so proxy it through init +# system server cannot write to /proc/sys files, +# and chown/chmod does not work for /proc/sys/ entries. +# So proxy writes through init. on property:sys.sysctl.extra_free_kbytes=* write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes} +# "tcp_default_init_rwnd" Is too long! +on property:sys.sysctl.tcp_def_init_rwnd=* + write /proc/sys/net/ipv4/tcp_default_init_rwnd ${sys.sysctl.tcp_def_init_rwnd} + ## Daemon processes to be run by init. ## |