开发者

WMI to report Windows swapping

We are using Tim Golden's WMI Python hook开发者_运维问答s to report on the status of Windows system state to try and get similar reports to our Linux servers.

We are presently extracting the 'FreePhysicalMemory' and 'TotalVisibleMemorySize' from a 'Win32_OperatingSystem' class call.

Our problem is that memory is often reported at 100% capacity.

Is there a sensible way, using WMI/WMQ, to determine if a Windows server is swapping?


After going through the various memory classes, it appears that the following will provide at least an indication of swapping:

SELECT PagesPersec FROM Win32_PerfFormattedData_PerfOS_Memory

According to wmifun.net, PagesPersec is

Pages/sec is the rate at which pages are read from or written to disk to resolve hard page faults. This counter is a primary indicator of the kinds of faults that cause system-wide delays

We're going to go for that for the time being.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜