Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Check remaining memory available in typed memory region
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Checking how much memory remains in a typed memory region
  • SDP: 7.1.0
  • Host/Target: Any supported target
________________________________________________________________________

Recommendation
________________________________________________________________________

In some cases, a problem can arise when exhausting the memory usage of a typed memory pool, knowing how much is getting used and how much free memory is left proves useful.

A program is attached to this entry. Inside the code, the line char *typemem = "/memory/below4G/ram" is the name of the typed memory region you wish to test for remaining free memory, i.e. the program defaults to checking /memory/below4G/ram and prints the available memory.

The names of typed memory regions are derived directly from the names of the asinfo segments. To display the asinfo configuration, run pidin syspage=asinfo command.

Please refer to the documentation below for more details:
Interprocess Communication (IPC) - Typed Memory

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 Attachment Name Size Last Modified
 typed_memory.c 841 bytes 7/3/2024 7:23 PM





Please contact us with your questions or concerns.