def total_memory():
with file('<STR_LIT>', '<STR_LIT:r>') as f:<EOL><INDENT>for line in f:<EOL><INDENT>words = line.split()<EOL><DEDENT>if words[<NUM_LIT:0>].upper() == '<STR_LIT>':<EOL><INDENT>return int(words[<NUM_LIT:1>]) * <NUM_LIT><EOL><DEDENT><DEDENT>raise IOError('<STR_LIT>')<EOL>
Returns the the amount of memory available for use.

        The memory is obtained from MemTotal entry in /proc/meminfo.

        Notes
        =====
        This function is not very useful and not very portable.