init.rc: Set TCP memory size
Set ipv4 min/default/max write and read memory size and socket max send/receive memory size to values that are high enough to reach 1+Gbps over wifi and cellular. Moving forward there is no need to override them in per device init.rc or framework config file. Bug: 213596972 Test: manual test to confirm TCP memory size is increased and wifi TCP throughput with default TCP window size can reach 700Mbps in HE80 mode. Change-Id: I0eb644453ab44804d33e3ed21e64aaccdc8c1ecd Signed-off-by: Juhyung Park <qkrwngud825@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
parent
97ce690746
commit
489d9c456d
1 changed files with 7 additions and 5 deletions
|
|
@ -338,11 +338,13 @@ on init
|
|||
write /proc/sys/net/ipv4/ping_group_range "0 2147483647"
|
||||
write /proc/sys/net/unix/max_dgram_qlen 2400
|
||||
|
||||
# Assign reasonable ceiling values for socket rcv/snd buffers.
|
||||
# These should almost always be overridden by the target per the
|
||||
# the corresponding technology maximums.
|
||||
write /proc/sys/net/core/rmem_max 262144
|
||||
write /proc/sys/net/core/wmem_max 262144
|
||||
# Assign reasonable ceiling values for socket rcv/snd buffers
|
||||
# Recommend to use a lower value for low memory devices
|
||||
write /proc/sys/net/core/rmem_max 8388608
|
||||
write /proc/sys/net/core/wmem_max 8388608
|
||||
# Assign TCP write/read memory size.
|
||||
write /proc/sys/net/ipv4/tcp_rmem "2097152 4194304 8388608"
|
||||
write /proc/sys/net/ipv4/tcp_wmem "262144 524288 8388608"
|
||||
|
||||
# reflect fwmark from incoming packets onto generated replies
|
||||
write /proc/sys/net/ipv4/fwmark_reflect 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue