[ZBXNEXT-3105] Task Manager of cached calculation has changed From Windows Server 2008 and Windows Vista. Created: 2016 Jan 21  Updated: 2016 Jan 21

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Kazuo Ito Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: memory, windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This is the information of MSDN.

Memory Performance Information



 Comments   
Comment by Aleksandrs Saveljevs [ 2016 Jan 21 ]

Could you please elaborate a bit on how this change affects Zabbix?

Comment by Kazuo Ito [ 2016 Jan 21 ]

Zabbix the calculation of the cached of Windows uses SystemCache of PERFORMANCE_INFORMATION.

zabbix-3.0.0beta1\src\libs\zbxsysinfo\win32\memory.c

	if (NULL != mode && 0 == strcmp(mode, "cached"))
	{
		if (NULL == zbx_GetPerformanceInfo)
		{
			SET_MSG_RESULT(result, zbx_strdup(NULL, "Cannot obtain system information."));
			return SYSINFO_RET_FAIL;
		}

		zbx_GetPerformanceInfo(&pfi, sizeof(PERFORMANCE_INFORMATION));

		SET_UI64_RESULT(result, (zbx_uint64_t)pfi.SystemCache * pfi.PageSize);

		return SYSINFO_RET_OK;
	}

In the case of Windows Server 2008, Windowos Vista.
cached of Task Manager and vm.memory.size[cached] do not match.

Comment by Aleksandrs Saveljevs [ 2016 Jan 21 ]

Thank you!

Generated at Fri Apr 19 05:26:31 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.