def getVMstats(self):
info_dict = {}<EOL>try:<EOL><INDENT>fp = open(vmstatFile, '<STR_LIT:r>')<EOL>data = fp.read()<EOL>fp.close()<EOL><DEDENT>except:<EOL><INDENT>raise IOError('<STR_LIT>' % vmstatFile)<EOL><DEDENT>for line in data.splitlines():<EOL><INDENT>cols = line.split()<EOL>if len(cols) == <NUM_LIT:2>:<EOL><INDENT>info_dict[cols[<NUM_LIT:0>]] = cols[<NUM_LIT:1>]<EOL><DEDENT><DEDENT>return info_dict<EOL>
Return stats for Virtual Memory Subsystem.

        @return: Dictionary of stats.