This function requires the bigdata library section to be loaded.
bd.cache.info(where=1) bd.cache.cleanup(where=1, caches=T, files=T, registered=F)
__bdo
subdirectory
will be analyzed or cleaned.
bd.cache.cleanup
deletes all unknown cache files in the cache directory.
bd.cache.cleanup
deletes all unknown files in the cache directory, other than unknown cache files.
bd.cache.cleanup
unregisters any registered memory references to cache files.
Warning: this may invalidate caches that are in use.
It should be safe to call this from the top-level prompt.
bd.cache.info
returns a list with the following elements:
cache.file.directory
the file name of the directory containing the cache files.
var.caches
"???__4"
indicate variables
where we can't find the variable name.
ref.counts
mem.known
mem.filerefs
mem.memrefs
mem.viewrefs
mem.new
mem.registered
mem.registered.loc
unknown.caches
dcf
,
dbf
, or
mdf
.
unknown.files
Big data objects store their (potentially huge) data in external cache files.
These cache files are stored in a
__bdo
subdirectory within the
.Data
directory where the objects that reference them are stored.
There is an automatic garbage-collection system that deletes these cache files when they
are no longer needed.
The
bd.cache.info
function is used to analyze the files within the
__bdo
subdirectory.
It is primarily used when developing and debugging the garbage collection system.
The
bd.cache.cleanup
can be used to clean up cache files that have not been deleted by the
garbage collection system.
This is most likely to occur if the entire system crashes.
## analyze DB 1 bd.cache.info()