def initializer(limit):
    """Set maximum amount of memory each worker process can allocate."""
    soft, hard = resource.getrlimit(resource.RLIMIT_AS)
    resource.setrlimit(resource.RLIMIT_AS, (limit, hard))
Set maximum amount of memory each worker process can allocate.
scripts/lcb_runner/utils/multiprocess.py