FULI
FULI
是的,golang1.14得timer行为有问题
我放一个更严格的时钟测试一下: @maxwellzh @pokedo0 [kcptun-linux-amd64-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365367/kcptun-linux-amd64-20200322.tar.gz) [kcptun-linux-arm5-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365369/kcptun-linux-arm5-20200322.tar.gz) [kcptun-linux-arm6-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365370/kcptun-linux-arm6-20200322.tar.gz) [kcptun-linux-arm7-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365372/kcptun-linux-arm7-20200322.tar.gz) [kcptun-linux-arm64-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365374/kcptun-linux-arm64-20200322.tar.gz) [kcptun-linux-mips-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365375/kcptun-linux-mips-20200322.tar.gz) [kcptun-linux-mipsle-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365376/kcptun-linux-mipsle-20200322.tar.gz) [kcptun-windows-386-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365378/kcptun-windows-386-20200322.tar.gz) [kcptun-windows-amd64-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365379/kcptun-windows-amd64-20200322.tar.gz) [kcptun-linux-386-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365366/kcptun-linux-386-20200322.tar.gz) [kcptun-darwin-amd64-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365361/kcptun-darwin-amd64-20200322.tar.gz) [kcptun-freebsd-amd64-20200322.tar.gz](https://github.com/xtaci/kcptun/files/4365363/kcptun-freebsd-amd64-20200322.tar.gz)
@wangvisual 你的这个问题,可否查下dmesg,或者syslog有没有异常,虽然这是 golang的bug,但errno == -89,这个不知道是啥
EDESTADDRREQ 89 Destination address required
golang officially confirmed that issue, but there're still some problem with timer on amd64... some time timer hangs.
https://github.com/golang/go/issues/38023 @syuez 是的,我追查到的golang的bug
@wangvisual can you help run this build, with patch from https://github.com/golang/go/issues/37997 [kcptun-linux-mipsle-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4372823/kcptun-linux-mipsle-20200324.tar.gz) [kcptun-linux-mips-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4372822/kcptun-linux-mips-20200324.tar.gz)
[kcptun-darwin-amd64-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374469/kcptun-darwin-amd64-20200324.tar.gz) [kcptun-freebsd-amd64-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374471/kcptun-freebsd-amd64-20200324.tar.gz) [kcptun-linux-386-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374473/kcptun-linux-386-20200324.tar.gz) [kcptun-linux-amd64-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374474/kcptun-linux-amd64-20200324.tar.gz) [kcptun-linux-arm5-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374477/kcptun-linux-arm5-20200324.tar.gz) [kcptun-linux-arm6-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374480/kcptun-linux-arm6-20200324.tar.gz) [kcptun-linux-arm7-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374482/kcptun-linux-arm7-20200324.tar.gz) [kcptun-linux-arm64-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374483/kcptun-linux-arm64-20200324.tar.gz) [kcptun-linux-mips-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374487/kcptun-linux-mips-20200324.tar.gz) [kcptun-linux-mipsle-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374488/kcptun-linux-mipsle-20200324.tar.gz) [kcptun-windows-386-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374489/kcptun-windows-386-20200324.tar.gz) [kcptun-windows-amd64-20200324.tar.gz](https://github.com/xtaci/kcptun/files/4374490/kcptun-windows-amd64-20200324.tar.gz) @maxwellzh @syuez 我打了golang的patch,看上去是消灭了100% cpu的问题了,可以测试下。
> @xtaci CPU 100%的问题没有了,但是发现客户端内存好像有泄露问题 > > 从昨天21点运行到早上8点,内存占用了80%左右 > > 未 kill掉进程 前内存  > > 运行时内存占用  > > kill 掉后内存  > > 用的是TCP模式,同机子另外以UDP模式运行的客户端则没有这个问题 TCP模式没有经过特别的优化,可能会有较大的内存消耗,空了再做优化。其他没问题就好,你可以尝试启动的时候加入 GOGC=10 ./client_xxx 这样启动。
> @xtaci 从昨晚到现在一切正常,没出现CPU满载的情况 golang可能会在下一个小版本修复此问题。https://github.com/golang/go/issues/38023