Storage considerations

The virtual storage for the cell pool must reside in an address space or a data space.

Figure 1 illustrates the anchor and extents in Data/Address Space A and the cell storage in Data/Address Space B.

Before you can obtain the first cell from a cell pool, you must plan the location of the anchor, the extents, and the cell storage. You must obtain the storage for the following areas and pass the following addresses to the services:
Figure 1. Cell Pool Storage
ieaa66f3
When you plan the size of the cell storage, consider the total requirements of your application for this storage and some performance factors. Although a single extent may contain any number of cells (up to 2²⁴ bytes, or 16,777,216), you might wish to have multiple extents for performance purposes. Avoid having a large number of extents, where each extent is responsible for a small number of cells. In general, a greater requirement for cells should mean a proportionately smaller number of extents. The following two examples illustrate this point.

Using callable cell pool services to manage data space areas contains an example of using callable cell pool services with data spaces. It also describes some storage considerations.