System API to get process used memory status
I have a requirement where my running application(On LINUX) will check his used memory status. On the basis of the used status it will do some clean up job. Anyone know any system 开发者_开发百科API to call from C application to know the used memory status on .
Both free(1)
and vmstat(8)
actually open and parse /proc/meminfo
so you could try that.
精彩评论