|
|
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:
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.
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.