Steve's Power Systems BlogPower BlogContactLog inRegister
  • Power Blog
  • Contact

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « AIX mpstat and lssrad part 1
  • AIX Create a RAM Disk »

When less is more - Less VPs More Performance

Posted by steve on 06 Jun 2017 in Power System Affinity, AIX Tuning, Performance Testing

I recently tuned an AIX LPAR running on a p7-780 frame and the end result from the tuning showed that Less Virtual Processors and More Entitlement can equal Better Performance.

 

The LPAR configuration before tuning:

12 Virtual Processors (VPs) and 6 Entitlement with CPU Folding Enabled (vpm_fold_policy=1)

Note that although this LPAR has 12 Virtual Processors, both mpstat and PowerVP showed that the LPAR was never running off the socket (chip), so at most it was only ever using 8 Physical Cores in the p7 server.

 

The LPAR configuration after tuning:

8 Virtual Processors (VPs) and 8 Entitlement with CPU Folding Disabled (vpm_fold_policy=4)

Note that the effect of these settings almost always guareentees that the LPAR will be scheduled back to its home cores in the p780 server and no other LPARs should be able to kick this LPAR off the cores when it is running as it will always be running within Entitlement.

 

The two graphs shown below are for the same LPAR, for the same time frame on the same day of the week.  The first graph was produced from vmstat data before tuning and the second graph from data after the tuning.

Before the tuning, the LPAR was using around 5 to 6 Virutal Processors, with some large spikes to 8 or more Virtual Processors.  After the tuning, the LPAR was mostly using around 4 or 5 Virtual Processors with two smaller spikes to 8 Virtual Processors briefly.

What surprised me the most was the fact that the amount of user and system CPU time actually dropped from an average of almost 3 Virtual Processors to under 2 Virtual Processors, the same amount of data was being processes more efficiently with less cores.

System time was averaging around 19% before the tuning and dropped to around 13% after the tuning.  One of the major factors (in my opinion) is the CPU system time over head in folding and unfolding CPUs, which after the tuning would be a lot less as we no longer fold vCPUs.  In the vmstat data I could see that when the PC column rose by a value of 1 or more, the system time would spike by around 8 to 10%, indicating the extra CPU system time needed to fold up a new Virtual Processor.

User time was averaging around 34% berfore tuning and dropped to around 25% after tuning.  I can only assume here that user time decreased due to the user code being able to run for longer on the Virtual Processor with better cache efficiency without switching to system (kernel) time so often.

 

LPAR vmstat output before tuning:

AIX LPAR Virutal Processor Entitlement

 

LPAR vmstat output after tuning:

AIX LPAR Virutal Processor Entitlement After

 

 

Tags: AIXAIX TuningDLPAREntitlementVPsVirtual Processorvpm_fold_policy

No feedback yet


Form is loading...

July 2026
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>

IBM Power Systems Blog

IBM Power Systems - Administration, Tuning and Optimisation. These posts are my own personal opinions and comments only.

Search

Categories

  • All
  • AIX Tips
  • AIX Tuning
  • Command Line Tips
  • HMC Tips
  • LPM Information
  • NIM Tips
  • Performance Testing
  • Power System Affinity
  • PowerHA Tips
  • SRIOV and vNIC
  • Scripts and One Liners
  • VIO Server Tips

Recent Posts

  • AIX NIM Hints and Tips
  • Finding Multiple Install Sources for AIX
  • PowerHA and EMC Busy Devices
  • AIX Random Password Generation
  • VIO Server 3.1.0 and ssh host keys
  • VIO Server 3.1.0 Items to Review
  • Just when you thought you understood idle CPU time!!
  • 40Gbit Adapter Performance Testing
  • LPM Copy Time Statistics
  • IBM HMC Upgrades

Recent Comments

  • steve on How to configure IBM SRIOV Adapters
  • Howard Coles on How to configure IBM SRIOV Adapters
  • steve on AIX mpstat and lssrad part 1
  • Charin Kumjudpai on AIX mpstat and lssrad part 1
  • Gagandeep on LPM and multiple vSwitches
  • Fant Steele on VIO Server 3.1.0 and ssh host keys
  • steve on AIX NIM Hints and Tips
  • alan wilcox on AIX NIM Hints and Tips
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Bernhar on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Gery on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • patrice on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Chris K. on AIX buf_mode attribute for Virtual Ethernet Adapters
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on Creating EtherChannel Devices from Command Line

This collection ©2026 by Stephen Diwell • Contact • Help • CMS • web hosting compared

Bootstrap CMS
Cookies are required to enable core site functionality.