@ユメイ3 周前

02/24
23:01
internet

Mac OSX Tuning

sudo nano /etc/sysctl.conf

kern.ipc.maxsockbuf=16777216
net.inet.tcp.sendspace=1048576
net.inet.tcp.recvspace=1048576
net.inet.tcp.win_scale_factor=8
net.inet.tcp.autorcvbufmax=33554432
net.inet.tcp.autosndbufmax=33554432
net.inet.udp.maxdgram=65500
kern.ipc.somaxconn=2048

# Verify the settings
sysctl net.inet.tcp

Mac OSX Tuning

@ユメイ4 月前

11/11
21:51
internet

常用一键脚本

流媒体解锁查询
bash <(curl -L -s https://git.io/JRw8R) -E en

tinyportmapper一键配置脚本
wget https://raw.githubusercontent.com/lmc999/TinyPortMapper_KeepAlive/master/tinymapper.sh && bash tinymapper.sh

一键测试脚本bench.sh
wget -qO- bench.sh | bash

NextTrace

curl nxtrace.org/nt |bash

nexttrace --fast-trace --tcp

常用一键脚本

@ユメイ2 年前

03/2
08:40
internet

bbr2 @ Windows11 22h2(不推荐)

Change TCP congestion control to BBR:

netsh int tcp set supplemental Template=Internet CongestionProvider=bbr2
netsh int tcp set supplemental Template=Datacenter CongestionProvider=bbr2
netsh int tcp set supplemental Template=Compat CongestionProvider=bbr2
netsh int tcp set supplemental Template=DatacenterCustom CongestionProvider=bbr2
netsh int tcp set supplemental Template=InternetCustom CongestionProvider=bbr2

Verify

Get-NetTCPSetting | Select SettingName, CongestionProvider

bbr2 @ Windows11 22h2(不推荐)

@ユメイ3 年前

03/27
14:25
internet

加载,删除swap

dd if=/dev/zero of=/var/swap bs=1k count=1024k
chmod 600 /var/swap
mkswap /var/swap
swapon /var/swap
echo '/var/swap   swap   swap   default 0 0' >> /etc/fstab

swapoff /var/swapfile

rm -rf /var/swapfile

删除/etc/fstab文件条目/var/swapfile swap swap defaults 0 0

加载,删除swap