-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Limit Cache Size on Disk #18045
Comments
Thanks for reporting. I would have expected the disk cache to be limited to 200G . Could you share which folders of the codeql database and cache are larger than expected? If you are using Linux or macOS then the
|
Thank you for the attention to this issue! The I get: Thanks. |
Could you get a more detailed |
Sure.
I checked |
I did a quick estimate myself. It seems to me that half of the items under |
I checked with some of the CodeQL developers and they said: The The word "cache" here is actually a bit of a misnomer -- in production analyses, this space is mostly used for intermediate results that we had to spill out from RAM because there were too many of them to fit there. If the results take up that much space on disk, it's probably a symptom that CodeQL is doing far too much computation, so I'd presume the query also takes far too long. @yyilong335 If you are willing to share the database and the query, we can try to determine whether there's a performance problem with one of our own supported queries. |
Dear Developers,
I am using CodeQL to analyze my database. In the command, I use
--max-disk-cache=200000
to specify the maximum disk space the cache would take in this query. However, when it finishes, the cache is taking to 1.3TB.Would
--max-disk-cache
limit the disk to use? Or is there any other command to resolve this issue?Thank you so much.
The text was updated successfully, but these errors were encountered: