Sys::MemInfo return the total amount of free and used physical memory in bytes in totalmem and freemem variables. Total amount of free and user swap memory are also returned in totalswap and freeswap variables. WWW: https://metacpan.org/release/Sys-MemInfo