switch/generic: Add protocol version argument to some functions
Set a job's RLIMIT_AS limit based upon it's memory limit and VsizeFactor