Sys::MemInfo returns the total amount of free and used memory in bytes in totalmem and freemem variables. Total amount of free and user swap memory are also returned in totalswap and freeswap variables.