Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 892e0795 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "emac: Perf setting"

parents 7fa0fbc4 28364060
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -22,6 +22,15 @@ KBUILD_OPTIONS += DCONFIG_DEBUGFS_OBJ=1
LOCAL_MODULE      := emac_dwc_eqos.ko
LOCAL_MODULE_TAGS := optional
include $(DLKM_DIR)/AndroidKernelModule.mk

include $(CLEAR_VARS)
LOCAL_MODULE       := emac_perf_settings.sh
LOCAL_MODULE_TAGS  := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH  := $(TARGET_OUT_DATA)/emac
LOCAL_SRC_FILES    := emac_perf_settings.sh
include $(BUILD_PREBUILT)

endif
endif

+22 −0
Original line number Diff line number Diff line
#!/vendor/bin/sh
#Copyright (c) 2019, The Linux Foundation. All rights reserved.
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License version 2 and
#only version 2 as published by the Free Software Foundation.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#
echo 12582912 > /proc/sys/net/core/wmem_max;
echo 12582912 > /proc/sys/net/core/rmem_max;
echo 10240 87380 12582912 > /proc/sys/net/ipv4/tcp_rmem;
echo 10240 87380 12582912 > /proc/sys/net/ipv4/tcp_wmem;
echo 12582912 > /proc/sys/net/ipv4/udp_rmem_min;
echo 12582912 > /proc/sys/net/ipv4/udp_wmem_min;
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling;
echo 18 > /sys/class/net/eth0/queues/rx-0/rps_cpus;