github / github/codeql-cli-binaries

database analyze not honoring the memory limits.

Open
#11 7 comments 0 reactions 0 assignees View on GitHub
bug CLI
Dominant language
No language data
Stars
1k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, performance, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.