# 21-Overflow_Persistent-Cache

> This sample demonstrates how to predict and prevent the `MCO_E_DISK_PAGE_POOL_EXHAUSTED` error. To avoid the `MCO_E_DISK_PAGE_POOL_EXHAUSTED` error it is necessary to inspect value of the `pinned_pages` field of structure `mco_disk_cache_info_t`. The count of pinned pages should be less than a threshold basically calculated as a part of the total count of disk pages available in the disk cache which in turn is specified by field `allocated_pages` 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

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

> Related Topics