Setting up the Local Memory Pool

You can specify the initial size of the local memory pool, in bytes. If RTSS applications exhaust the memory you initially allocate, you can configure RTX to automatically request additional memory from Windows. Note that requesting memory from Windows involves SRI activity, which is non-deterministic and cannot be called in the shutdown handler. To avoid this scenario, it is important to be aware of your applications' memory needs and specify an initial pool size that will support them. For more information on using local memory with RTX, see Local Memory.

To set the initial local memory pool size:

  1. Open RTX Properties in Control Panel and click the Memory tab.
  2. In the Pool size field, enter the initial size of the local memory pool, in bytes.

The initial size is rounded up to the page boundary. For example, if the page size is 1024 bytes and you request 4000, the local memory pool size will be rounded to 4096.

  1. Click OK. This will require a restart of the RTX Subsystem.

To expand the local memory pool size:

You can configure RTX to automatically request additional memory from Windows once the local memory pool, defined by the Pool size value, is exhausted.

NOTE:  If the Automatically expand local memory pool option is disabled, and Pool size is set to a low value, you may experience performance issues when you run applications that use Microsoft C-Runtime, due to how it allocates memory. To avoid these issues we recommend that Automatically expand local memory pool always be enabled.

  1. Click the Automatically expand local memory pool check box.
  2. Enter an expansion size, in bytes. This determines the minimum amount of additional memory that will be requested from Windows when the local pool is exhausted. If you allocate an amount larger than the expansion size, the larger size will be used. The expansion size is set to 64,000 bytes by default.

 

 

See Also

IntervalZero.com | Support | Give Feedback