-
Notifications
You must be signed in to change notification settings - Fork 55
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
[BUG]: MAX fills up cache #256
Comments
Thanks for reporting! I'm assuming you don't have a global environment so what happens if you run |
It deletes the local env folder and it does not delete the cache for that installation since it doesn't download again if I rerun I think it's still a good default to have global cache, but there needs to be some cleanup given MAX is so huge. But this seems like a potential issue only for people who have a lot of different versions. BTW (a tangential issue that I came across when trying to solve this), another issue of the name
If you are willing to break a lot of code (sooner rather than later), I think renaming is fitting (majic, magic-cli, or something like that; the community would have a blast bike-shedding this) |
Right! good point. |
Bug description
I don't use MAX, yet it comes bundled with Mojo. I have a small partitioned disk for 2 OSes and it fills up quick. I've been downloading nightly almost every time one comes out, my cache was at 125.2 GB. Every max-core nightly is around 1.4 GB,
/max-core[...]/lib/mojo
shows ~33 MB. I deleted many other packages as well, but the cache got reduced to 11GB when I deleted mostly only max-core versions (I imagine it's because of the amount of static linking you do).There were many files which hadn't been accessed in 2 months and are hanging unused by any environment. Could you please set it up so that either some time passes since the file has been accessed and/or if there are more than X files newer and Y files older than 2 months, they get deleted? Maybe deleting the cache after upgrading an environment, or setup a timer until it gets used by another environment, or do some sort of ref count. Maybe set this up only for nightly. It would be nice to allow this to be configurable as well (something like
magic --cache-config
). I imagine pixi already has this functionality.Steps to reproduce
...
System information
The text was updated successfully, but these errors were encountered: