Memory-Only Mode
In standard operation, rvcache uses the store file to record parameter configuration and for persistent cache storage. Parameter configuration includes the list of cached subjects. Persistent cache storage includes the cached values of those subjects. The required command line parameter -store specifies the pathname of the store file.
In some high-volume situations, writing cached values to the store file can result in an I/O bottleneck. If rvcache I/O presents a problem, you can disable persistent cache storage. The command line parameter -memory-only starts rvcache in memory-only mode (otherwise, rvcache runs in store mode).
Memory-only mode changes the operation of rvcache as follows:
| • | When rvcache starts, it does not read initial values from the store file. Consequently, rvcache starts with an empty cache for all subjects. |
| • | rvcache keeps cached values only in process memory; it does not write values to the store file. |
| • | However, rvcache still reads its configuration from the store file at start time, and writes configuration changes to the store file. |
Memory-only mode increases the operating speed of rvcache at the cost of data persistence. If the process exits, all cached values are lost.
In memory-only mode, you can expect rvcache to consume more process memory than in store mode. Since it cannot retrieve infrequently accessed values from the store file, rvcache must keep all values in process memory. You must ensure that adequate memory is available.
|
Note |
Switching from store mode to memory-only mode does not automatically erase all initial values from the store file. Even though |
|
Tip |
Since a larger store file can slow You can use the |
|
Note |
After switching from store mode to memory-only mode and back again, you cannot rely on cached values in the store file. Some subject configuration changes can erase the value of a subject as a side effect. Before switching modes, we recommend saving a backup copy of the store file. Alternatively, you can use the |
|
Tip |
When configuring large or complex sets of subjects, the configuration API is more convenient than the browser administration interface; see the Current Value Cache - rvcache section in . |