github / github/codeql-cli-binaries

database analyze not honoring the memory limits.

未關閉
#11 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug CLI
主要語言
沒有語言資料
星號
1k
分支
184
PR 合併指標
30 天內沒有已合併 PR

描述

I am running the full cpp-lgmt query suite against a big codebase, and specified the memory limit to be 30GB, and 30 jobs, and I think it might be exceeding that limit.

According to HTOP, it is now using 70G of ram (still running and growing), and the number of threads is around 80.

This is the command I invoked:

```shellsession
mvanotti@markov:~/codeql-home$ ./codeql/codeql database analyze fuchsia-ql ql/cpp/ql/src/codeql-suites/cpp-lgtm-full.qls --format=sarif-latest --output=cpp-lgtm.sarif -j 30 -M 30240 --no-rerun
```

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the `codeql database analyze` command from the issue with `-j 30` and `-M 30240`, while monitoring memory use and thread count. The fix is complete when the analysis honors both limits during the reported C++ LGTM suite run.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp
領域
cli, performance, tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。