Memory usage of process in Linux
When designing an application for embedded IOT on linux platforms, memory usage of process is major constrain. To helps us understand memory usage of process, linux provides multiple commands for that purpose. This article explores the essential commands by using an example memdump process with PID#2117, i.e already running and correlates the memory information between these commands. size -A memDumpExp | grep Total Total 416014 ---> ~416K bytes of memDumpExp codesize /proc/$PID/smaps provide range of start and end address / # cat /proc/2117/maps address perms offset dev inode pathname 7f5bc000-7f61b000 r-xp 00000 00:0f 6136 /usr/bin/memDumpExp -->389,120bytes...