Replies: 4 comments 1 reply
-
|
It's inevitable to consume more CPU since tun2socks uses a user-space netstack and multithreading underlying. BTW, gVisor is constantly updating its tcpip stack and improving performance, so I would not worry about the high CPU usage for now. |
Beta Was this translation helpful? Give feedback.
-
CPU usage on full 1GbpsHardware/SoftwareServerCPU: AMD Ryzen 9 7950X 16-Core Processor (Max 4.5GHz) OS: Arch Linux Socks5 serverRepo: https://github.com/heiher/hev-socks5-server Version: 2.4.7 ClientCPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz OS: Arch Linux tun2socksVersion: 2.4.1 hev-socks5-tunnelVersion: 2.2.0 Link bandwidthServer <-> client: 1Gbps CPU usagetun2sockshev-socks5-tunnel |
Beta Was this translation helpful? Give feedback.
-
|
Here are benchmarks (speed and cpu usage) of tun2socks/go-tun2socks/badvpn-tun2socks and hev-socks5-tunnel on MTU 8500. SpeedCPU usageMemory usage |
Beta Was this translation helpful? Give feedback.
-
xjasonlyu-tun2socksRepo: https://github.com/xjasonlyu/tun2socks Version: 2.6.0 Command: tun2socks-linux-amd64 -device tun0 -mtu 8500 -proxy socks5://192.168.1.1:1080UploadDownloadA marked improvement! 👍 |
Beta Was this translation helpful? Give feedback.







Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that the performance of tun2socks is really good due to the support of multi-threading, but it needs more CPU usage.
Hardware/Software
CPU: AMD Ryzen 9 7950X 16-Core Processor (Max 4.5GHz)
OS: Arch Linux
Socks5 server
Repo: https://github.com/heiher/hev-socks5-server
Version: 2.4.7
Topology
MTU
eth0/veth0/veth1: 1500
tun0: 9000
hev-socks5-tunnel
Repo: https://github.com/heiher/hev-socks5-tunnel
Version: 2.4.3
Upload
Download
tun2socks
Repo: https://github.com/xjasonlyu/tun2socks
Version: 2.4.1
Upload
Download
Beta Was this translation helpful? Give feedback.
All reactions