Comments (14)
Bot detected the issue body's language is not English, translate it automatically.
Title: Compilation fails occasionally, but succeeds after restarting
from xmake.
加 -vD 给完整 logs
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Add -vD for full logs
from xmake.
[2024-03-06 11:44:03]fallback to the local cache, @programdir/modules/private/service/stream.lua:303: >: recv timeout!
[2024-03-06 11:44:03]stack traceback:
[2024-03-06 11:44:03] [C]: in function 'error'
[2024-03-06 11:44:03] [@programdir/core/base/os.lua:957]: in function 'raiselevel'
[2024-03-06 11:44:03] [@programdir/core/sandbox/modules/utils.lua:149]: in function 'assert'
[2024-03-06 11:44:03] [@programdir/modules/private/service/stream.lua:303]: in function 'recv'
[2024-03-06 11:44:03] [@programdir/modules/private/service/stream.lua:334]: in function 'recv_header'
[2024-03-06 11:44:03] [@programdir/modules/private/service/stream.lua:344]: in function 'recv_data'
[2024-03-06 11:44:03] [@programdir/modules/private/service/remote_cache/client.lua:266]: in function 'existinfo'
[2024-03-06 11:44:03] [@programdir/modules/private/cache/build_cache.lua:47]: in function '_get_existinfo'
[2024-03-06 11:44:03] [@programdir/modules/private/cache/build_cache.lua:245]:
[2024-03-06 11:44:03]
[2024-03-06 11:44:03]
[2024-03-06 11:44:03]error: @programdir/core/base/scheduler.lua:183: assertion failed!
[2024-03-06 11:44:03]stack traceback:
[2024-03-06 11:44:03] [C]: in function 'assert'
[2024-03-06 11:44:03] @programdir/core/base/scheduler.lua:183: in function 'base/scheduler._poller_resume_co'
[2024-03-06 11:44:03] @programdir/core/base/scheduler.lua:241: in function 'base/scheduler._poller_events_cb'
[2024-03-06 11:44:03] @programdir/core/base/scheduler.lua:1074: in function 'base/scheduler.runloop'
[2024-03-06 11:44:03] @programdir/core/main.lua:310: in function 'main.entry'
[2024-03-06 11:44:03] (...tail calls...)
[2024-03-06 11:44:03]make: *** [center_query] Error 255
[2024-03-06 11:44:03]
[2024-03-06 11:44:03]real 0m43.444s
[2024-03-06 11:44:03]user 0m34.237s
[2024-03-06 11:44:03]sys 0m19.024s
from xmake.
recv 超时了,可以重启下服务端,超时配置调大点试试。。
另外,dev 我加了点 log 和兼容逻辑,可以更新后,再试试,如果还有,再给份 -vD logs
xmake update -s dev
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
If recv times out, you can restart the server and try increasing the timeout configuration. .
In addition, I added some logs and compatibility logic to dev. You can try it again after updating. If there is still something left, give me a copy -vD logs
xmake update -s dev
from xmake.
远程服务并没有设置超时时间 client是15s 超时的失败率和缓存的大小应该有些关系 50G以下没有出现过这个问题 50~100G开始偶现 150G开始频繁出现 编译三次两次都可能会出现这个问题 将缓存目录所有缓存全部rm后 编译恢复正常 没有再出现这种问题 是否是搜索缓存导致的问题?
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
The remote service does not set a timeout time. The client is 15s. There should be some relationship between the timeout failure rate and the size of the cache. This problem has not occurred below 50G. From 50 to 100G, it has occasionally occurred. From 150G, it has frequently occurred. This problem may occur after compiling three times and twice. After rm of all caches in the directory, the compilation returned to normal and this problem did not occur again. Is it a problem caused by the search cache?
from xmake.
应该是服务端 cache files 的文件组织,我没像本地 cache 那样,分两级存储,并且用了 os.files 遍历,所以获取 cache file 的效率,随着文件数增多,变慢导致。。
回头我优化下
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
It should be the file organization of server-side cache files. I did not store it in two levels like the local cache, and used os.files traversal, so the efficiency of obtaining cache files slowed down as the number of files increased. .
I'll optimize it later
from xmake.
不对,刚看了下,文件存储已经是分两级存储,直接索引了,如果io还是慢,这边也没啥好的办法继续优化
from xmake.
你这 150G 是一次编译的结果,还是跑了 N次构建,或者几天的。。或者可以加个闲时清理策略,确保存储控制在一定量级内。也许能缓解下
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
No, I just took a look and found that file storage is already divided into two levels and indexed directly. If io is still slow, there is no good way to continue optimizing it.
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Is your 150G the result of one compilation, or N builds, or several days? . Or you can add a free-time cleanup policy to ensure that storage is controlled within a certain level. Maybe it can be relieved
from xmake.
Related Issues (20)
- windows安装远程包SuiteSparse失败 HOT 8
- windows环境wasm目标,package.tools.cmake模块有bug HOT 2
- Add on_source to set urls/versions in packages dynamically HOT 3
- xmake project -k cmake生成的cmakelists.txt中漏掉了/utf-8参数 HOT 5
- Xrepo command not work in conda environment
- 交叉编译Rust项目时,cargo的编译期依赖没有被正确安装 HOT 43
- xmake pack打包失败 c++modules HOT 19
- The option:set_default interface is inconsistent with the documentation description in xmake.io HOT 1
- 编译了过时的代码,但xmake clean && xmake清除后再构建则符合预期 HOT 6
- Linux kernel cannot be built in NixOS HOT 1
- Support TI-CGT compiler like cmake and meson HOT 1
- rk3588s安装出错 HOT 3
- 总会出现关于runtimes的警告信息 HOT 4
- remote build blocked & distcc does not work HOT 5
- 更好的第三方插件集成 HOT 6
- Add links and package with set_sourcedir HOT 6
- GCC cannot find lua headers on Ubuntu HOT 2
- v2.9.2 单测运行失败问题 HOT 8
- add_files("*.c*") wildcard does not work anymore HOT 11
- add net.http.download timeout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.