-
Notifications
You must be signed in to change notification settings - Fork 1
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
InternalDataStore.cache_size hangs #6
Comments
If I comment out the part of main that checks the cache size ( (r2pd) [ehale@n2184 FAASSTeR]$ python ../R2PD/R2PD/cli.py -ds /home/ehale/r2pd_config.ini -n 28.442 -80.812 -t solar -te 1/1/2000 1/1/2020 -o reserves/data_out/ power -c 10.0 actual
DEBUG:__main__:Connecting to DRPower
DEBUG:R2PD.datastore:Connecting to InternalDataStore
DEBUG:__main__:Determining local cache status
DEBUG:__main__:Getting nodes
DEBUG:__main__:Getting temporal parameters
/home/ehale/R2PD/R2PD/nearestnodes.py:52: FutureWarning: Method .as_matrix will be removed in a future version. Use .values instead.
lat_lon = r_left.as_matrix(['latitude', 'longitude'])
/home/ehale/R2PD/R2PD/nearestnodes.py:60: FutureWarning: Method .as_matrix will be removed in a future version. Use .values instead.
node_lat_lon = nodes_left.as_matrix(['latitude', 'longitude'])
DEBUG:R2PD.datastore:Making sure there is room in the local cache for 0.08 GB which means the code is just sitting on self._local_cache.test_cache_size(download_size) |
I never envisioned R2PD to reference the full data repository. cache_size uses os.path.getsize(file_name) on every file in the LocalCache to compute the current local Cache size. Since you are pointing to the full solar dataset on Peregrine this will take FOREVER as it has to touch 150k files. |
See commit 2e493c4. I now estimate the cache size from the cache_meta. I also updated the logic to re-scan the cache less frequently. |
Reproduce on Peregrine with .ini file containing:
and command
If you use the elaine_debug branch, this will print some debug messages about progress (lack thereof) to the console.
The text was updated successfully, but these errors were encountered: