This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from resource import getpagesize | |
from subprocess import call | |
import datetime | |
import time | |
import os | |
from sys import exit | |
# warn at 5GB of use , reload at 6GB | |
memlimit_warn = 5120 #in MB | |
memlimit_max = 6144 #in MB |