Skip to content
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

inconsistent cache size reporting and management #391

Open
achubaty opened this issue May 10, 2024 · 1 comment
Open

inconsistent cache size reporting and management #391

achubaty opened this issue May 10, 2024 · 1 comment

Comments

@achubaty
Copy link
Collaborator

I keep seeing inconsistencies in Cache behaviour, typically needing to invoke both clearCache() and cc(Inf) in order to fully remove all cache entries and files:

> reproducible::CacheStorageDir()
[1] "cache/cacheOutputs"
> showCache()
x not specified; using cache
Cache size: 
  Total (including Rasters): 13.7 Gb
  Selected objects (not including Rasters): 13.7 Gb
                cacheId      tagKey                             tagValue
                 <char>      <char>                               <char>
    1: 002ae52d97e0f11e ignitionFit                          ignitionFit
    2: 002ae52d97e0f11e   escapeFit                            escapeFit
    3: 002ae52d97e0f11e   spreadFit                            spreadFit
    4: 002ae52d97e0f11e      module                fireSense_IgnitionFit
    5: 002ae52d97e0f11e   eventType                                  run
   ---                                                                  
11737: ff14b5133aea47d2   preDigest     maxBInFactorial:8b8cc8379dd472d7
11738: ff14b5133aea47d2   preDigest standAgesForFitting:b6f88bdf62f0bc5e
11739: ff14b5133aea47d2   preDigest            approach:955d7106b15759fa
11740: ff14b5133aea47d2   preDigest                .FUN:de585ea2e59b8190
11741: ff14b5133aea47d2   preDigest         .cacheExtra:1e357b37e8c2235e
                      createdDate
                           <char>
    1: 2024-04-11 20:53:11.232948
    2: 2024-04-11 20:53:11.232948
    3: 2024-04-11 20:53:11.232948
    4: 2024-04-11 20:53:11.232948
    5: 2024-04-11 20:53:11.232948
   ---                           
11737: 2024-04-11 16:37:47.192433
11738: 2024-04-11 16:37:47.192433
11739: 2024-04-11 16:37:47.192433
11740: 2024-04-11 16:37:47.192433
11741: 2024-04-11 16:37:47.192433
> clearCache()
x not specified; using cache
Your current cache size is 152.4 Gb.
  Are you sure you would like to delete it all? Y or N
y
> showCache()
x not specified; using cache
Cache size: 
  Total (including Rasters): 13.7 Gb
  Selected objects (not including Rasters): 13.7 Gb
                cacheId      tagKey                             tagValue
                 <char>      <char>                               <char>
    1: 002ae52d97e0f11e ignitionFit                          ignitionFit
    2: 002ae52d97e0f11e   escapeFit                            escapeFit
    3: 002ae52d97e0f11e   spreadFit                            spreadFit
    4: 002ae52d97e0f11e      module                fireSense_IgnitionFit
    5: 002ae52d97e0f11e   eventType                                  run
   ---                                                                  
11737: ff14b5133aea47d2   preDigest     maxBInFactorial:8b8cc8379dd472d7
11738: ff14b5133aea47d2   preDigest standAgesForFitting:b6f88bdf62f0bc5e
11739: ff14b5133aea47d2   preDigest            approach:955d7106b15759fa
11740: ff14b5133aea47d2   preDigest                .FUN:de585ea2e59b8190
11741: ff14b5133aea47d2   preDigest         .cacheExtra:1e357b37e8c2235e
                      createdDate
                           <char>
    1: 2024-04-11 20:53:11.232948
    2: 2024-04-11 20:53:11.232948
    3: 2024-04-11 20:53:11.232948
    4: 2024-04-11 20:53:11.232948
    5: 2024-04-11 20:53:11.232948
   ---                           
11737: 2024-04-11 16:37:47.192433
11738: 2024-04-11 16:37:47.192433
11739: 2024-04-11 16:37:47.192433
11740: 2024-04-11 16:37:47.192433
11741: 2024-04-11 16:37:47.192433
> cc(Inf)
x not specified; using cache
Cache size: 
  Total (including Rasters): 13.7 Gb
  Selected objects (not including Rasters): 13.7 Gb
Your size of your selected objects is 13.7 Gb.
  Are you sure you would like to delete it all? Y or N
y
> showCache()
x not specified; using cache
Cache size: 
  Total (including Rasters): 0 bytes
  Selected objects (not including Rasters): 0 bytes
Empty data.table (0 rows and 4 cols): cacheId,tagKey,tagValue,createdDate
@achubaty
Copy link
Collaborator Author

NOTE: I am using the most recent modsForLargeAchives branch v2.0.12.9011)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant