Replies: 3 comments
-
Could you provide a log from the offending run so we can see what is being evaluated when we start to need to write temporary data to disk like this? Meanwhile, could you try setting |
Beta Was this translation helpful? Give feedback.
-
I upload the CodeQL database analysis logs for reference. The process log: (ReturnStackAllocatedMemory and RedundantNullCheckParam, these two processes are exhibiting notably slow execution times) execute-queries-20241227.064755.300.log About the parameters |
Beta Was this translation helpful? Give feedback.
-
Thanks, that's useful -- it shows that either your database has a very large codebase extracted (e.g., there are evidently a lot of different control-flow nodes that guard others, and a lot of variable-accesses, looking at two of the predicates that cause significant stress and return hundred-million-scale results). Are you able to share any details about the code you're analysing? One thing that could be useful is subdividing your analysis into different projects. For example, often if a repository contains millions of lines of code, actually it can be subdivided into subsets which are interesting to security-analyse together, such as programs and their dependent libraries, vs. those which don't interact in this sense, e.g. a pair of unrelated programs neither of which calls the other. If this sounds like your use case, one route to optimising your analysis could be to prepare more fine-grained databases each of which is analysed individually. |
Beta Was this translation helpful? Give feedback.
-
We had a large project (based on cpp development) try to execute the CodeQL.
We're running into slow database analysis times.
We tracked it down - looks like some tests (ReturnStackAllocatedMemory, RedundantNullCheckParam) are constantly writing memory to disk.
Example: (Counts about 16500 time the similar messages).
NOTE:
Another project execution time is much faster and the similar messages counts about 200 times.
Can we optimize the parameters to improve the balance between memory utilization, cache efficiency, and disk I/O operations?
or have any suggestions?
Thank you for your valuable suggestions and guidance. 😊
Ethan
Beta Was this translation helpful? Give feedback.
All reactions