If you want something quicker than profiling with Valgrind and your kernel is older and you can't use smaps, a ps with the options to show the resident set of the process (with ps -o rss,command
) can give you a quick and reasonable _aproximation_
of the real amount of non-swapped memory being used.