When trying to run segway with a small memory progression, the ulimit running in segway-wrapper.sh is given a negative value and will produce an "invalid argument" error.
This is because in calc_mem_limit inside segway/cluster/common.py, the given memory is subtracted by MEM_GUARD without a bounds check. MEM_GUARD is preset to 10 MB.
Original report (BitBucket issue) by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).
When trying to run segway with a small memory progression, the
ulimit
running in segway-wrapper.sh is given a negative value and will produce an "invalid argument" error.This is because in
calc_mem_limit
inside segway/cluster/common.py, the given memory is subtracted byMEM_GUARD
without a bounds check.MEM_GUARD
is preset to 10 MB.