patch for get_memory_usage_linux on linux-2.6

Nicolas Niclausse <>
Fri Feb 13 15:34:30 CET 2004


Hello,

Since /proc/meminfo has changed in linux 2.6, the os_mon application do
not work anymore. The following patch fix the parsing of /proc/meminfo
on a linux 2.6 kernel


Btw, the fonction gives the memory used on a linux system, but since
linux is using all the available memory for caching (and buffering), the
free memory reported by this function is meaningless. Maybe we should
subtract the cache size to the MemUsed value ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem_linux-2.6.patch
Type: text/x-patch
Size: 1084 bytes
Desc: patch
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20040213/297c2a42/attachment.bin>
-------------- next part --------------

-- 
Nicolas NICLAUSSE                       IDEALX S.A.S.
T?l:01 44 42 00 00                      http://IDEALX.com/


More information about the erlang-questions mailing list