func GetMaxFiles() (*unix.Rlimit, error) {
	var rlim unix.Rlimit
	return &rlim, unix.Getrlimit(unix.RLIMIT_NOFILE, &rlim)
}
Gets the current (soft) and maximum (hard) rlimit for number of open files.

See `man getrlimit`.
package core
import (
	"fmt"
	"github.com/martian-lang/martian/martian/util"
	"golang.org/x/sys/unix"
)
func GetMaxProcs() (*unix.Rlimit, error) {
	var rlim unix.Rlimit
	return &rlim, unix.Getrlimit(unix.RLIMIT_NPROC, &rlim)
}
func SetMaxProcs(rlim *unix.Rlimit) error {
	return unix.Setrlimit(unix.RLIMIT_NPROC, rlim)
}
func MaximizeMaxProcs() error {
	var rlim unix.Rlimit
	if err := unix.Getrlimit(unix.RLIMIT_NPROC, &rlim); err != nil {
		return err
	}
	rlim.Cur = rlim.Max
	return unix.Setrlimit(unix.RLIMIT_NPROC, &rlim)
}