public static function getMemInfo()
    {
        $result = [];
        if ($n = preg_match_all('/^([\S]+):\s+(\d+)\skB$/im', file_get_contents('/proc/meminfo'), $matches)) {
            for ($i = 0; $i < $n; $i++) {
                $result[$matches[1][$i]] = $matches[2][$i];
            }
        }

        return $result;
    }