Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Add smt_mode fo LPAR, correct Physical CPU usage of Powerlinux pools …
Browse files Browse the repository at this point in the history
…(usage/smt_mode)
  • Loading branch information
guilhemmarchand committed Aug 17, 2016
1 parent 76fac27 commit 8c77123
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions default/props.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,17 @@ EVAL-hypervisor_id = if(isnotnull(frameID), frameID, serialnum)
# Non CIM and Power arch common, unify AIX and PowerLinux stats to a common model at search extraction time
#

EVAL-smt_mode = (logical_cpus/virtual_cpus)

# For Power arch micro-partitions (AIX & PowerLinux)
EVAL-lpar_vp_usage = case(OStype=="AIX", round(((VP_User_PCT+VP_Sys_PCT+VP_Wait_PCT+VP_Idle_PCT)*virtualCPUs/100),3), OStype=="Linux", round(PhysicalCPU,3))
EVAL-lpar_vp_usage_PCT = case(OStype=="AIX", round((VP_User_PCT+VP_Sys_PCT+VP_Wait_PCT+VP_Idle_PCT),2), OStype=="Linux", round((PhysicalCPU/partition_active_processors*100),2))

# For Power arch micro-partitions Pool statistics (AIX & PowerLinux)
# Note: For PowerLinux, at the perf collection startup the pool usage may report almost 100% usage which is incorrect, filtering with pool_idle_time>"0.1" will prevent from loading these data

EVAL-lpar_pool_vp_usage = case(OStype=="AIX", round((poolCPUs-PoolIdle),3), OStype="Linux", case(pool_idle_time>"0.1" AND pool_idle_time<(pool_capacity/100), round(((pool_capacity/100)-pool_idle_time),3)) )
EVAL-lpar_pool_vp_usage_PCT = case(OStype=="AIX", round(((poolCPUs-PoolIdle)*100/poolCPUs),2), OStype="Linux", case(pool_idle_time>"0.1" AND pool_idle_time<(pool_capacity/100), round(((pool_capacity/100)-pool_idle_time)/(pool_capacity/100)*100,2)) )
EVAL-lpar_pool_vp_usage = case(OStype=="AIX", round((poolCPUs-PoolIdle),3), OStype="Linux", case(pool_idle_time>"0.1" AND pool_idle_time<(pool_capacity/100), round((((pool_capacity/100)-pool_idle_time)/(logical_cpus/virtual_cpus)),3)) )
EVAL-lpar_pool_vp_usage_PCT = case(OStype=="AIX", round(((poolCPUs-PoolIdle)*100/poolCPUs),2), OStype="Linux", case(pool_idle_time>"0.1" AND pool_idle_time<(pool_capacity/100), round((((pool_capacity/100)-pool_idle_time)/(logical_cpus/virtual_cpus))/(pool_capacity/100)*100,2)) )

# Normalize capacity information
EVAL-lpar_pool_capacity = case(OStype=="AIX", poolCPUs, OStype="Linux", (pool_capacity/100))
Expand Down

0 comments on commit 8c77123

Please sign in to comment.