My Oracle Support Banner

[PCA 2.x | OVM] How to Get Total vCPU/Memory Allocated to All VMs on an OVM Server or PCA Compute Node (Doc ID 2230443.1)

Last updated on AUGUST 18, 2022

Applies to:

Private Cloud Appliance - Version 1.0.1 and later
Oracle VM - Version 3.0.1 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64


Under some circumstances such as Virtual Machines failing to start due to resources constraints, there could be the need for a rapid calculation of the total memory in use on an Oracle VM Server / Private Cloud Appliance Compute node.

And one might want to to know the total number of vCPUs assigned to all VMs running on the OVM server or PCA Compute Node. This is particularly useful to quickly determine if there is overcommit on the number of virtual CPUs provisioned compared to actual cores on the virtualization server.

This note briefly explains how to do that using a single line command.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.