Replies: 8 comments 9 replies
-
|
另外的版本 较稳定 开七个无痕speedtest 稳定在26MB左右 关掉chomre一段时间后降低到9MB |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/eycorsican/go-tun2socks 这个版本 挂机自动刷新google 页面 经过一段时间后崩了 go routine未释放
错误大概如上 |
Beta Was this translation helpful? Give feedback.
-
|
再测试 https://github.com/eycorsican/leaf 启动瞬间内存:2~3M左右 使用一段时间后:7.6M (speedtest+youtube观看+gmail等) 关闭chrome后5分钟:7.6M(貌似它会一直保持这个内存,留作缓存,后续有一定新连接时也不会新增内存) 但是可惜不会rust 大多数协议目前都只有 golang版本 也可惜原生go实现的 内存消耗太大了 |
Beta Was this translation helpful? Give feedback.
-
|
你有兴趣可以跑一下带宽测试,我之前用go-tun2socks 最多只能跑到100Mbps,不清楚leaf如何。 |
Beta Was this translation helpful? Give feedback.
-
|
带宽测试方法:
|
Beta Was this translation helpful? Give feedback.
-
|
重试了一下cgo版本的 发现go routine 数量没问题(开了pprof) 猜测可能是昨晚mac休眠后产生了BUG |
Beta Was this translation helpful? Give feedback.
-
|
突然想起来 你说tun2socks-go(cgo)版本只能跑 100Mbps 肯定有问题 v2rayN 什么等一些列好多软件(特别是移动客户端)都是基于cgo版本的 速度还是很快的(几百M很常见) 我测速折腾了一下 没搞定 |
Beta Was this translation helpful? Give feedback.
-
|
在最新的commit里新增了 tcp-sndbuf 和 tcp-rcvbuf 两个参数,在一些内存较小的机器里可以使用如 实测效果不错,在一些高并发高连接测速中,内存使用量足足降低了80%多。 PS: 过低的缓冲区大小会导致较高的CPU消耗,所以这是一个取舍的过程。 |
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.
-
开启tun2socks后 大概15分钟
中间看过一点youtube
用chome无痕模式开了四个speedtest.com
期间最大内存使用87MB
关闭无痕模式后使用65.3MB
关闭Crome后使用27.6MB
再反复一遍 内存使用 67Mb
关闭chorme后接近2分钟内无变化
关闭chorme后接近4分钟左右后降低到41.7Mb
关闭chrome后接近10分钟后 降低到20.6MB
使用的程序版本为:b166ed5
Beta Was this translation helpful? Give feedback.
All reactions