memory size restriction in sweeps.py