Skip to Main Content Skip to Search
Product Documentation

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.

See Also

netcdf | netcdf.setChunkCache

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS