Util.pm: add utility functions for cpus, memory and window size