Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win10下安装远程依赖包时,不带-v参数将导致安装时间成倍延长 #597

Closed
fasiondog opened this issue Oct 17, 2019 · 4 comments

Comments

@fasiondog
Copy link
Contributor

RT

@waruqi
Copy link
Member

waruqi commented Oct 17, 2019

可能是win下多进程调度的问题 回头我看下

@waruqi
Copy link
Member

waruqi commented Oct 17, 2019

这块我看了下,win下确实会,应该是进程调度的问题,linux/mac下很快没这问题,具体win下 我还要调下,等后两天我再看看

@waruqi
Copy link
Member

waruqi commented Oct 21, 2019

比较怪,也不是xmake自身编译任务调度的问题,我设置成-j 1,单任务编译还是有这问题,只要在子进程执行xmake去编译,并且开启了重定向就会有这个问题,后台进程cpu基本没怎么跑。

开启重定向+子进程单任务编译: 后台进程 cpu 平均 0-1%, cl.exe基本没怎么被调起,编译很慢

cd tbox
xmake l os.run "xmake -r -j 1"

关闭重定向+子进程单任务编译: 完全正常,子进程cpu 30-40%,正常编译

cd tbox
xmake l os.exec "xmake -r -j 1"

主进程单任务编译+重定向:也正常

尝试吧CreateProcess设置到high优先级,也没效果,具体原因还得再查下。。

@waruqi waruqi added this to the v2.2.9 milestone Oct 21, 2019
@waruqi
Copy link
Member

waruqi commented Oct 22, 2019

我修复了,你可以更新下dev试试,xmake update dev 需要通过重新完整安装更新才行。

是由于xmake依赖的tbox库里面 重定向输出 导致stdin 的单例创建失败后,一些处理逻辑有问题导致。。现在应该可以了。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants