sysinfo - Stata module to report Windows operating system memory usage information

Description

Sysinfo captures the Windows' MemoryStatusEx descriptor and reports the basic memory performance indicators. Stata programmers may use these indicators to optimize performance of their programs.

Users should be aware that the memory allocation may change between the point when the indicators are reported and the point when an action is taken in the program due to possible memory shifts caused by other processes running in the system as well as Stata's own memory management procedures.

The indicators are arranged into two groups: total and available. The detailed description of the indicators reported by sysinfo is provided by Microsoft here.

It is recommended that the users also familiarize themselves with various memory limits that different Windows releases are subject to. They are described by Microsoft in this document.

Sysinfo is installable and functional in Windows operating system only. This specifically means that it is not installable and not functional in Unix, Linux and MacOS operating systems. Users of Stata on these platforms will get a "Nothing to install" message. This is normal and does not constitute a defect. There are no plans to extend the command to those platforms.

Sysinfo is implemented as a C++ plugin and is distributed both in 32-bit and 64-bit versions.

Sysinfo is implemented as an r-class program and all of its reported performance indicators are programmatically available from the corresponding r() values. Type

return list
after sysinfo to see which indicators are saved and how they are callable.

Installation

To install sysinfo type the following in the Stata's command line:
net install sysinfo, from("http://radyakin.org/statalist/2013080201/sysinfo") 

Author and support

sysinfo was written by Sergiy Radyakin. To contact the author send email to sradyakin/at/worldbank.org.

See also

The following resources provided by StataCorp might be relevant:
Allocating memory
Memory requirements
Large datasets and memory
Changing default memory settings

Note that since version 12.0 Stata automatically manages memory and does not require the user to set the memory manually.