From 074023cab6ca20c9822fcfed26228440ec52ca76 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 18 Oct 2018 23:44:22 +0800 Subject: [PATCH] speed up x86/x64 samba I/O --- package/lean/autocore/Makefile | 4 ++-- package/lean/autocore/files/autocore | 24 ++++++++++++++++++++++++ package/lean/autocore/files/index.htm | 4 +++- target/linux/ipq40xx/Makefile | 5 +++-- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile index 341fb904d..bf2992936 100644 --- a/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=autocore PKG_VERSION:=1 -PKG_RELEASE:=12 +PKG_RELEASE:=15 include $(INCLUDE_DIR)/package.mk @@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/package.mk define Package/autocore TITLE:=x86/x64 auto core loadbalance script. MAINTAINER:=Lean - DEPENDS:=@TARGET_x86 +bc +lm-sensors + DEPENDS:=@TARGET_x86 +bc +lm-sensors +ethtool endef define Package/autocore/description diff --git a/package/lean/autocore/files/autocore b/package/lean/autocore/files/autocore index 7ba5ff01c..3086ffdb0 100755 --- a/package/lean/autocore/files/autocore +++ b/package/lean/autocore/files/autocore @@ -33,6 +33,30 @@ start() g=${a}${b}${c}${d}${e}${f} echo $g > /tmp/sysinfo/model + ethtool -K eth0 rx-checksum on >/dev/null 2>&1 + ethtool -K eth0 tx-checksum-ip-generic on >/dev/null 2>&1 + ethtool -K eth0 tso on >/dev/null 2>&1 + ethtool -K eth0 ufo on >/dev/null 2>&1 + ethtool -K eth0 gso on >/dev/null 2>&1 + + ethtool -K eth1 rx-checksum on >/dev/null 2>&1 + ethtool -K eth1 tx-checksum-ip-generic on >/dev/null 2>&1 + ethtool -K eth1 tso on >/dev/null 2>&1 + ethtool -K eth1 ufo on >/dev/null 2>&1 + ethtool -K eth1 gso on >/dev/null 2>&1 + + ethtool -K eth2 rx-checksum on >/dev/null 2>&1 + ethtool -K eth2 tx-checksum-ip-generic on >/dev/null 2>&1 + ethtool -K eth2 tso on >/dev/null 2>&1 + ethtool -K eth2 ufo on >/dev/null 2>&1 + ethtool -K eth2 gso on >/dev/null 2>&1 + + ethtool -K eth3 rx-checksum on >/dev/null 2>&1 + ethtool -K eth3 tx-checksum-ip-generic on >/dev/null 2>&1 + ethtool -K eth3 tso on >/dev/null 2>&1 + ethtool -K eth3 ufo on >/dev/null 2>&1 + ethtool -K eth3 gso on >/dev/null 2>&1 + [ -f /etc/index.htm ] && mv /etc/index.htm /usr/lib/lua/luci/view/admin_status/index.htm } diff --git a/package/lean/autocore/files/index.htm b/package/lean/autocore/files/index.htm index d5026b30a..6cec12ca9 100644 --- a/package/lean/autocore/files/index.htm +++ b/package/lean/autocore/files/index.htm @@ -10,7 +10,7 @@ local stat = require "luci.tools.status" local ver = require "luci.version" - local has_ipv6 = fs.access("/proc/net/ipv6_route") + local has_ipv6 = fs.access("/usr/sbin/ip6tables") local has_dhcp = fs.access("/etc/config/dhcp") local has_wifi = ((fs.stat("/etc/config/wireless", "size") or 0) > 0) @@ -754,6 +754,7 @@ +<% if has_ipv6 then %> <% end %> +<% end %> <% if has_dsl then %>
diff --git a/target/linux/ipq40xx/Makefile b/target/linux/ipq40xx/Makefile index ef7c0f56c..238d25484 100644 --- a/target/linux/ipq40xx/Makefile +++ b/target/linux/ipq40xx/Makefile @@ -15,8 +15,9 @@ KERNELNAME:=zImage Image dtbs include $(INCLUDE_DIR)/target.mk DEFAULT_PACKAGES += \ kmod-leds-gpio kmod-gpio-button-hotplug swconfig \ - kmod-ath10k wpad-mini \ + kmod-ath10k wpad-basic \ kmod-usb3 kmod-usb-dwc3-of-simple kmod-usb-phy-qcom-dwc3 \ - ath10k-firmware-qca4019 + ath10k-firmware-qca4019 \ + automount autosamba $(eval $(call BuildTarget))