linux - RAM usage after program loading - mismatch with TOP statistics -
i have expected after running program top utility show memory (virt column) used program equal or greater size on disk. surprised when result different - file size on disc turned out greater top 1 showed. explain wrong in expectations.... p.s. application native built gcc.
not parts of executable file mapped memory when run it.
if examine executable readelf -ws <executable>
(assuming elf executable format) can see list of file sections. sections flag a (alloc)
loaded.
sections starting .debug
, example, not mapped, unless runs under debugger, , these sections largest.
Comments
Post a Comment