Implement memory monitoring functions for Linux OS