def low_memory_linux_machine():
if not sys.platform.startswith('<STR_LIT>'):<EOL><INDENT>return False<EOL><DEDENT>cmd1 = "<STR_LIT>"<EOL>cmd2 = "<STR_LIT>"<EOL>cmd3 = "<STR_LIT>"<EOL>p1 = subprocess.Popen(cmd1, shell=True, stdout=subprocess.PIPE)<EOL>p2 = subprocess.Popen(cmd2, shell=True,<EOL>stdin=p1.stdout, stdout=subprocess.PIPE)<EOL>p3 = subprocess.Popen(cmd3, shell=True,<EOL>stdin=p2.stdout, stdout=subprocess.PIPE)<EOL>p1.stdout.close()<EOL>p2.stdout.close()<EOL>stdout, stderr = p3.communicate()<EOL>nbytes = int(stdout.decode('<STR_LIT:utf-8>').strip())<EOL>return nbytes < <NUM_LIT><EOL>
Detect if the current machine is low-memory (< 2.5GB)

This is primarily aimed at Digital Ocean VMs running linux.  Don't bother
on mac or windows.

Returns
-------
bool
    True if <2GB, False otherwise