memx returns the calling process' memory usage (private + shared) in kB. Linux-specific only. It does this by reading PSS from /proc/{pid}/smaps[_rollup].