speed up x86/x64 samba I/O

This commit is contained in:
coolsnowwolf 2018-10-18 23:44:22 +08:00
parent a8699d2d8d
commit 074023cab6
4 changed files with 32 additions and 5 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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 @@
</table>
</fieldset>
<% if has_ipv6 then %>
<fieldset class="cbi-section" style="display:none">
<legend><%:DHCPv6 Leases%></legend>
@ -770,6 +771,7 @@
</table>
</fieldset>
<% end %>
<% end %>
<% if has_dsl then %>
<fieldset class="cbi-section">

View File

@ -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))