---
title: "What commands do CPU utilization and PercentMemory use(Hardware plugin) from AIX?"
description: "CPU utilization and PercentMemory use in AIX are collected using performance APIs. CPU uses perfstatcputotal and memory uses perfstatmemorytotal functions with data from vmstat and lsps commands."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004019625-geneos-what-commands-do-cpu-utilization-and-percentmemory-use-hardware-plugin-from-aix/index.html"
---
CPU utilisation is collected using performance API (the perfstat_cpu_total function). Memory data is collected using the AIX Performance API (using the perfstat_memory_total function).

CPU utilisation is collected using performance API (the perfstat\_cpu\_total function). This function returns the total number of CPU ticks spend in user/system/idle/wait states. The utilisation is calculated as the difference in the user+system ticks from the previous sample, as a percentage of total CPU ticks spent.

The CPUUtilisation value is also a running average of the past five sample values which may additionally explain why you are seeing differences between the plug-in and Real Time information from the system. To deactivate the average calculation you can turn off 'cpuSmoothing' within the sampler options.  Memory data is collected using the AIX Performance API (using the perfstat\_memory\_total function). memoryUse displays "Active Virtual Pages" in megabytes. This is the same as the "avm" figure reported by vmstat divided by 256. (vmstat avm is number of 4kb pages. Therefore (memoryUse in MB) = (avm in pages)4 / 1024.) memoryIdle displays the "physical memory free", which is the "fre" figure reported by vmstat. Again, vmstat displays pages so divide by 256 to get the figure in megabytes. Swap data is collected using the command "lsps -s".


