From 74e4e66faf3f8dcf58ccfe6d9714c447e9ffa8ab Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Wed, 6 Oct 2021 21:13:44 -0500 Subject: [PATCH] Add files via upload --- OSX/gig-ether--speedup--osx.sh | 49 ++++++++++++++++++++++++++++++++++ OSX/osx-restart-sshd.sh | 3 +++ 2 files changed, 52 insertions(+) create mode 100644 OSX/gig-ether--speedup--osx.sh create mode 100644 OSX/osx-restart-sshd.sh diff --git a/OSX/gig-ether--speedup--osx.sh b/OSX/gig-ether--speedup--osx.sh new file mode 100644 index 0000000..37e4ff3 --- /dev/null +++ b/OSX/gig-ether--speedup--osx.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# http://fasterdata.es.net/host-tuning/linux/ + +# REF: https://www.atto.com/software/files/other/osx_fastframe_readme_v7_20.pdf + +# REF: https://hints.macworld.com/article.php?story=20060616112919669 ## OLD +# If you would like these changes to be preserved across reboots you can edit /etc/sysctl.conf. +# + +sysctl -w kern.ipc.maxsockbuf=4194304 +# will not go higher in OSX due to system limitations. + +sysctl -w net.inet.tcp.sendspace=2097152 +sysctl -w net.inet.tcp.recvspace=2097152 +sysctl -w net.inet.tcp.maxseg_unacked=32 +sysctl -w net.inet.tcp.delayed_ack=2 +sysctl -w kern.maxnbuf=60000 +sysctl -w kern.maxvnodes=280000 +sysctl -w net.inet.tcp.sack=1 + + +# determine interfaces found OTF xxx 2017.0319 +#for e in `ifconfig -a |grep HW |awk '{print $1}'`; do +# ifconfig $e txqueuelen 5000 +#ifconfig eth1 txqueuelen 5000 +#done + +#http://datatag.web.cern.ch/datatag/howto/tcp.html +#sysctl sys.net.core.netdev_max_backlog=2000 # unknown +##sysctl net.ipv4.tcp_sack=0 + +ifconfig -a > /var/root/ifconfig-a.txt +chmod 500 /var/root/ifconfig-a.txt + +exit; + + ifconfig en0 mediaopt full-duplex +[ davesimac513.local (scrn=1) ] + +# ifconfig en0 +en0: flags=8863 mtu 1500 + options=10b + ether 3c:07:54:64:eb:10 + inet6 fe80::4f2:bbae:d379:1882%en0 prefixlen 64 secured scopeid 0x6 + inet 10.9.13.4 netmask 0xff000000 broadcast 10.255.255.255 + nd6 options=201 + media: autoselect (1000baseT ) + status: active diff --git a/OSX/osx-restart-sshd.sh b/OSX/osx-restart-sshd.sh new file mode 100644 index 0000000..c44cb4a --- /dev/null +++ b/OSX/osx-restart-sshd.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +launchctl stop com.openssh.sshd ; launchctl start com.openssh.sshd