While doing some test I observed that showmem execution failed.
I am working on QNX 6.5
My query is - what can be probable reason of failure of showmem?
Two cases are there
- showmem not able to access shared library
- showmem failed with error - Filename too long
As per the source code of showmem the second error could be because of fopen call to FILE *f = fopen(“memory.use”, “rb”);
Result of showmem -
showmem -S
System RAM: 1023M ( 1073737728)
Total Used: 308M ( 323822532)
Used Private: 228M ( 239284892)
Used Shared: 68M ( 72155136)
Other: 11M ( 12382504) (includes IFS and reserved RAM)
showmem -P | grep -i xyz
1351680 548864 270336 376832 155648 0 577617 xyz
showmem -S
sh: showmem: Can’t access shared library
showmem -P | grep -i xyz
sh: grep: Can’t access shared library
sh: showmem: Can’t access shared library
showmem -S
sh: showmem: cannot execute - Filename too long
showmem -P | grep -i xyz
sh: can’t create pipe - try again
showmem -S
sh: showmem: cannot execute - Filename too long
Regards,
QNXuser1