View topic - QNX6 Increase RAM Memory.
QNX6 Increase RAM Memory.
6 posts
• Page 1 of 1
QNX6 Increase RAM Memory.
0
down vote
favorite
I am looking for a way to add / increase RAM memory in QNX System.
Currently I have 1GB but I need to increase it to 2GB. I wish to use some kind of SWAP file, but I know that it does NOT exist in QNX.
Is there any way to make some mounting to increase virtual memory ?
down vote
favorite
I am looking for a way to add / increase RAM memory in QNX System.
Currently I have 1GB but I need to increase it to 2GB. I wish to use some kind of SWAP file, but I know that it does NOT exist in QNX.
- Code: Select all
pidin info
CPU:ARM Release:6.5.0 FreeMem:117Mb/1008Mb BootTime:Jan 29 19:47:09 UTC 2018
Processes: 118, Threads: 536
Processor1: 1093648626 Cortex A15 1000MHz FPU
Processor2: 1093648626 Cortex A15 1000MHz FPU
Is there any way to make some mounting to increase virtual memory ?
- Code: Select all
# showmem -S
System RAM: 1008M ( 1056964608)
Total Used: 919M ( 963731652)
Used Private: 652M ( 683723400)
Used Shared: 264M ( 276946944)
Other: 2989K ( 3061308) (includes IFS and reserved RAM)
- a4tech
- New Member
- Posts: 3
- Joined: Mon Jan 29, 2018 7:53 pm
Re: QNX6 Increase RAM Memory.
The RAM size is fixed in the BSP of your board.
Changing it can be quite complex depending on the processor/BSP you use.
What do you call virtual memory ?
Changing it can be quite complex depending on the processor/BSP you use.
What do you call virtual memory ?
- nico04
- Senior Member
- Posts: 171
- Joined: Wed Sep 29, 2010 9:59 am
- Location: France
Re: QNX6 Increase RAM Memory.
Virtual Memory like SWAP in Linux.
Basically I am luck of RAM when I run some application... and wanted improve that and increase RAM.
Basically I am luck of RAM when I run some application... and wanted improve that and increase RAM.
- a4tech
- New Member
- Posts: 3
- Joined: Mon Jan 29, 2018 7:53 pm
Re: QNX6 Increase RAM Memory.
QNX does not support swapping to disk.
Do you know why you are running out of RAM? I assume it's your application(s) that are running out of RAM but is it because:
1) You are leaking memory?
2) You are malloc'ing a lot of memory?
3) Your application files are large (disk size) so they are using lots of memory?
If it's #1, you might want to fix the problem.
If it's #3, you may want to link using shared libraries instead of statically to save RAM.
If it's #2 you can always implement your own swap of malloced memory.
Tim
Do you know why you are running out of RAM? I assume it's your application(s) that are running out of RAM but is it because:
1) You are leaking memory?
2) You are malloc'ing a lot of memory?
3) Your application files are large (disk size) so they are using lots of memory?
If it's #1, you might want to fix the problem.
If it's #3, you may want to link using shared libraries instead of statically to save RAM.
If it's #2 you can always implement your own swap of malloced memory.
Tim
- Tim
- Senior Member
- Posts: 1519
- Joined: Wed Mar 10, 2004 12:28 am
Re: QNX6 Increase RAM Memory.
1. No
2. Yes
There is an application which run / load MAP for Car Navigation. The file is ~ 20GB and it is IMG file which is mounted like normal qnx6 FS. The application load to RAM some part of file, then it is runned out
No idea if there is a chance to fix it somehow. How to implement swap file if I have no source code for the application which loads maps ?
3. Yes
2. Yes
There is an application which run / load MAP for Car Navigation. The file is ~ 20GB and it is IMG file which is mounted like normal qnx6 FS. The application load to RAM some part of file, then it is runned out

No idea if there is a chance to fix it somehow. How to implement swap file if I have no source code for the application which loads maps ?
3. Yes
- a4tech
- New Member
- Posts: 3
- Joined: Mon Jan 29, 2018 7:53 pm
Re: QNX6 Increase RAM Memory.
a4tech,
If you don't have the source code to the application that loads maps then there is nothing you can do besides increase the RAM in your system.
It's quite strange that an app would try to load an entire 20 gig file into memory when almost no systems have 20 gigs of RAM. Most load only a small part at a time and then load a different part as required (based on user interaction / vehicle moving etc). Is there no documentation with that map loading application?
Tim
If you don't have the source code to the application that loads maps then there is nothing you can do besides increase the RAM in your system.
It's quite strange that an app would try to load an entire 20 gig file into memory when almost no systems have 20 gigs of RAM. Most load only a small part at a time and then load a different part as required (based on user interaction / vehicle moving etc). Is there no documentation with that map loading application?
Tim
- Tim
- Senior Member
- Posts: 1519
- Joined: Wed Mar 10, 2004 12:28 am
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest