Well, I didn't want to get into XS stuff, and guessing that Mac is the only exception, I just decided to check $ENV{OSTYPE} and if it's Darwin, call `sysctl -n hw.memsize`. Otherwise, I just use the module.
Now I just have to write some code to run my concurrent child processes in batches.