Linux, programming, computers and life

April 13, 2009

getting amount of total/free memory in linux

Filed under: programming, linux

While you can always parse /proc/meminfo, there’s system call sysinfo which does the trick.

, ,

Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers