netcdf.getChunkCache

Retrieve chunk cache settings for NetCDF library

Syntax

[csize, nelems, premp] = netcdf.getChunkCache()

Description

[csize, nelems, premp] = netcdf.getChunkCache() returns the default chunk cache settings.

Output Arguments

csize

Scalar double specifying the total size of the raw data chunk cache in bytes.

nelems

Scalar double specifying the number of chunk slots in the raw data chunk cache hash table.

premp

Double, between 0 and 1, inclusive, that specifies how the library handles preempting fully read chunks in the chunk cache. A value of zero means fully read chunks are treated no differently than other chunks, that is, preemption occurs solely based on the Least Recently Used (LRU) algorithm. A value of 1 means fully read chunks are always preempted before other chunks.

Examples

Determine information about the chunk cache size used by the NetCDF library.

[csize, nelems, premp] = netcdf.getChunkCache();

References

This function corresponds to the nc_get_chunk_cache function in the NetCDF library C API.

For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.