ag -g
ls -l /proc/*/fd/* 2>/dev/null | awk '{print $(NF-2), $(NF-1), $NF}' grep -s VmRSS /proc/*[0-9]/status | awk '{sum += $2} END {print sum " kB"}'
Any problem in computer science can be solved with another level of indirection. (Butler Lampson)