Hot answers tagged memory
6
You really ought not to ask two questions in one, but...
Question 1
Some of that memory is used for the kernel code itself, some is reserved, etc. The kernel spits it out in the system boot messages:
[ 0.000000] Memory: 6106920k/7340032k available (3633k kernel code, 1057736k absent, 175376k reserved, 3104k data, 616k init)
The "absent" line is ...
1
Curious, as you're running this application what does df -h /dev/shm show your RAM usage to be?
tmpfs
By default it's typically setup with 50% of whatever amount of RAM the system physically has. This is documented here on kernel.org, under the filesystem documentation for tmpfs. Also it's mentioned in the mount man page.
excerpt from mount man page
...
Only top voted, non community-wiki answers of a minimum length are eligible