Adding linux specific code for memory metric