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

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « Mulitbos Remove Issues at AIX 6100-09-06-1543
  • PowerHA 72 clstat not working after Upgrade »

AIX mpstat s4rd and s5rd thread migrations

Posted by steve on 03 Nov 2016 in Power System Affinity, AIX Tuning, AIX Tips, Performance Testing

I have been looking at mpstat output for some time now and I noticed that none of my LPARs were showing s4rd thread migrations, even though the lssrad -av output showed than the LPAR was spread over more than one Chip in a Node.  I mistakenly believed that all my threads were being re-dispatch back to the cores within the same Chip as they were last running and that AIX was dealing with the workload efficiently.

But then I noticed on a test LPAR that it was actually reporting s5rd thread migrations even though the lssrad output showed all the virtual CPUs were contained within a single Node and this was confirmed with PowerVP on my E880.  At the time of my testing, there were no other workloads running on the E880 (except the VIOS) so I was fairly confident that the data I was seeing was correct.

Please note that in this configuration, the S3hrd and S4hrd thread memory accesses are being reported correctly.

After raising a PMR with IBM, it has finally been confirmed that there is a bug in the kernel dispatch code that is mistakenly incrementing the S5rd counters when infact it should be incrementing the S4rd counters.

As draft APAR has been opened and is awaitng a fix (as of early November 2016).

IV92886 => AIX 7.2

IV96814 => AIX 7.1

IBM have told me that both fixes will be available sometime in Q3 2017 in the following releases.

AIX 7.2 TL2 base

AIX 7.1 TL5 base

 

Here is the lssrad -av output.

REF1  SRAD  MEM       CPU
0
         0  15658.31  0-3 16-19 32-35 48-51 64-67 80-83 96-99 112-115 128-131
         1  15687.00  4-7 20-23 36-39 52-55 68-71 84-87 100-103 116-119 132-135
         2  15687.00  8-11 24-27 40-43 56-59 72-75 88-91 104-107 120-123 136-139
         3  15900.94  12-15 28-31 44-47 60-63 76-79 92-95 108-111 124-127 140-143

 

Here is a sample of the mpstat output.

The full output of the mpstat data can be found in the attached text file.


System configuration: lcpu=144 ent=36.0 mode=Uncapped

cpu   cs  ics bound   rq push S3pull S3grd  S0rd S1rd S2rd S3rd S4rd S5rd ilcs  vlcs  S3hrd S4hrd S5hrd %nsp

ALL 1111 1011   102  102    0      0   504  87.4  3.6  0.0  0.5  0.0  8.5    4  2698  95.0    5.0   0.0    0

 

 

 

 

 

Attachments:

  • mpstat.txt (18 KB)
Tags: Affinitylssradmpstats5rdsr4dthread migrations

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 • framework

powered by b2evolution CMS
Cookies are required to enable core site functionality.