VMware Cloud Community
fac2003
Contributor
Contributor

Status or plans for reporting of inactive memory readings?

Hello,

I was wondering if the Sigar roadmap included any plan to offer an API that will report inactive memory (i.e., through Mem).

The current API provides access to free, used and total memory, but on modern OS, inactive memory is another category of memory. In a nutshell, inactive memory is standing ready to be reused and will be converted to free when a process tries to malloc and there is not enough free memory. See http://discussions.apple.com/thread.jspa?messageID=7055254 for more details.

Processes that need to make decisions according to the available amount of memory available for malloc would typically sum numbers for inactive memory and free memory. On some linux flavors, inactive memory readings can be obtained with vmstat -a. However, this does not currently seem possible via the Sigar API (up to 1.6.3). Are there any plans to extend the current Mem API to provide readings of inactive memory?

Thanks, FC
Reply
0 Kudos
1 Reply
dougm_hyperic
VMware Employee
VMware Employee

Hi,
I've opened a ticket to add these fields: http://jira.hyperic.com/browse/SIGAR-183
Looks like Linux, MacOSX and *BSD have these fields, any info on other platforms would be most welcome.
Reply
0 Kudos