2. Implemented the suggestion and verified as below:
3. Still, i see the following pmap output:
[root@fedora-20-64 ~]#
pmap -X $(pidof test)
1577: ./test Address Perm Offset Device Inode Size
Rss Pss Referenced Anonymous Swap Locked Mapping
00400000 r-xp 00000000 00:21 88738 4 4 4 4 0 0 0 test
00600000 r--p 00000000 00:21 88738 4 4 4 4 4 0 0 test
00601000 rw-p 00001000 00:21 88738 4 4 4 4 4 0 0 test
7f3fe3f88000 r-xp 00000000 fd:00 1751 1744 796 12 796 0 0 0
libc-2.18.so 7f3fe413c000 ---p 001b4000 fd:00 1751 2044 0 0 0 0 0 0
libc-2.18.so 7f3fe433b000 r--p 001b3000 fd:00 1751 16 16 16 16 16 0 0
libc-2.18.so 7f3fe433f000 rw-p 001b7000 fd:00 1751 8 8 8 8 8 0 0
libc-2.18.so 7f3fe4341000 rw-p 00000000 00:00 0 20 12 12 12 12 0 0
7f3fe4346000 r-xp 00000000 fd:00 1257 128 128 1 128 0 0 0
ld-2.18.so 7f3fe454e000 rw-p 00000000 00:00 0 12 12 12 12 12 0 0
7f3fe4564000 rw-p 00000000 00:00 0 4 4 4 4 4 0 0
7f3fe4565000 r--p 0001f000 fd:00 1257 4 4 4 4 4 0 0
ld-2.18.so 7f3fe4566000 rw-p 00020000 fd:00 1257 4 4 4 4 4 0 0
ld-2.18.so 7f3fe4567000 rw-p 00000000 00:00 0 4 4 4 4 4 0 0
7fffeded0000 rw-p 00000000 00:00 0 136 8 8 8 8 0 0 [stack]
7fffedf42000 r--p 00000000 00:00 0 8 0 0 0 0 0 0 [vvar]
7fffedf44000 r-xp 00000000 00:00 0 8 4 0 4 0 0 0 [vdso]
ffffffffff600000 r-xp 00000000 00:00 0 4 0 0 0 0 0 0 [vsyscall]
==== ==== === ========== ========= ==== ======
4156
1012 97 1012 80 0 0 KB
Enabling that option seemed to have increased the RSS output by about 80KB to 1012(though we do see some noise across different runs to be honest ).
We will be glad to hear any further inputs on this issue.