Are there any ways other than sysinfo and sysconf of finding out the amount of RAM? Unfortunately, on Cygwin, sysinfo doesn't exist and sysconf(_SC_PHYS_PAGES) returns -1.