Estimate RAM usage information of an embedded device
top command on Linux readily reports you virtual memory used by the process (the VIRT column), physical RAM used by the process exclusively (the RES column) as well as its shared memory (the SHR column). You probably want the RES column.

If your version of top doesn't have these columns, consider building a decent version from sources, or use htop or pmap, whichever is available.