As far as I know there are several memory concepts: VSS RSS PSS and USS, in which USS(unique set size) is the physical memory exclusively used by a process(correct me if needed).
I think this should be a very useful value to let me know which process uses too many physical memory?
But how could we get this value? By ps or from any /proc file?
(I know a smem tool could help, but is there any built-in method?)
Update 20231015
This answer mentions that /proc/<pid>/smaps_rollup has sum value:
grep "Private" /proc/1748/smaps_rollup
Private_Clean: 55700 kB
Private_Dirty: 67628 kB
Private_Hugetlb: 0 kB
So we can get the whole value as:
awk '/Private/{ sum += $2 } END { print sum }' /proc/1748/smaps_rollup