21-Overflow_Persistent-Cache

This sample demonstrates how to predict and prevent the MCO_E_DISK_PAGE_POOL_EXHAUSTED error. To avoid this error, inspect the pinned_pages field of the mco_disk_cache_info_t structure. The count of pinned pages should be less than a threshold calculated from the total number of disk pages available in the disk cache, which is specified by the allocated_pages field of the same structure.

How to Run

See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the \target\bin directory:

    21_overflow_persistent-cache

However, it is more instructive to run it in your development-environment debugger, stepping through the code.

Related Topics Link IconRelated Topics