Implement optimized RSS monitor based on /proc/[pid]/mstat
This replaces the RSS monitoring implementation on linux. The current implementation performs bursts of 30 forks every 15 seconds, which contends with the git
processes being spawned by gitaly.
The goal of this change is to relieve pressure on golang's forkExec
mutex on platforms where this is supported.
See #3213 (closed).
Edited by Igor