Is there a way to determine the memory usage (such as RSS, resident set size) of a process and all its descendants? (Their joint memory usage)
I don't think simply adding their RSSes is correct, since they are likely to be sharing libraries, like libc, among themselves.