Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Delivered
Workspace AIX
Created by Guest
Created on Aug 9, 2016

AIX tprof enhancement - Tick reports grouped by process name

Using this command:
tprof -l -p /bb/bin/m_wsrusr.tsk -vskeujz -r tprof

After collecting a trace with the following:
/usr/bin/trace -adf -M -L 80000000 -T 80000000 -J tprof -j 2ff,234 -Call -r PURR -o /bb/pm/tprof.task/tprof.080814_104903/tprof.trc

Tprof produces a report with the usual summaries up top, and then a section
containing details of the PIDs corresponding to the application specified by
the '-p' flag.

In this case, the application specific section contains a breakdown of each
PID( for example, KERNEL ) as such:

+++++++++++++++++++++++++++++++++++ 1st +++++++++++++++++++++++++++++++++++

Total Ticks For m_wsrusr.tsk[18876130] (KERNEL) = 2315

Subroutine Ticks % Source Address Bytes
========== ===== ====== ====== ======= =====
.kexitx 354 0.09 /gsaro/ausgsa/projects/a/aix.15......
.kwaitpid 354 0.09 /gsaro/ausgsa/projects/a/aix.15......
.krlock 354 0.09 /gsaro/ausgsa/projects/a/aix.15......
........

+++++++++++++++++++++++++++++++++++ 2nd +++++++++++++++++++++++++++++++++++

Total Ticks For m_wsrusr.tsk[13960458] (KERNEL) = 2252

Subroutine Ticks % Source Address Bytes
========== ===== ====== ====== ======= =====
.krlock 348 0.09 /gsaro/ausgsa/projects/a/aix.15......
.kexitx 348 0.09 /gsaro/ausgsa/projects/a/aix.15......
.kwaitpid 348 0.09 /gsaro/ausgsa/projects/a/aix.15......
........

+++++++++++++++++++++++++++++++++++ 3rd +++++++++++++++++++++++++++++++++++

Total Ticks For m_wsrusr.tsk[6750956] (KERNEL) = 2523

Subroutine Ticks % Source Address Bytes
========== ===== ====== ====== ======= =====
.krlock 415 0.11 /gsaro/ausgsa/projects/a/aix.15......
._kwaitpid 415 0.11 /gsaro/ausgsa/projects/a/aix.15......
.kexitx 415 0.11 /gsaro/ausgsa/projects/a/aix.15......
........

The proposed summary section for this example would then start with something
like:

Total Ticks For m_wsrusr.tsk (KERNEL) = 7090
Subroutine Ticks % Source Address Bytes
========== ===== ====== ====== ======= =====
.krlock 1177 0.16 /gsaro/ausgsa/projects/a/aix.15......
._kwaitpid 1177 0.16 /gsaro/ausgsa/projects/a/aix.15......
.kexitx 1177 0.16 /gsaro/ausgsa/projects/a/aix.15......
........

The "per PID" breakdowns are extremely useful, but tprof does not provide a
summary of all KERNEL ticks for that particular application(specified by
'-p'). That kind of information is critical to determine how much overall
time is spent in routines by the entire application. Each of these PIDs may
be completing the same type of tasks. Therefore, the sum of the ticks would
let us determine more clearly where in general the application is spending
time.

To be clear, we wish that application summary for all common sections( KERNEL,
USER, SH-LIB, SEGMENTs, etc ).

There are variations which would make the information even more useful, such
as:
1) Average ticks/PID
2) # of PIDs calling that routine
3) MAX ticks encountered
4) MIN ticks encountered

Idea priority Medium
  • Guest
    Reply
    |
    Jun 10, 2019

    Available in 7.2 TL2.

  • Guest
    Reply
    |
    Aug 10, 2016

    Creating a new RFE based on Community RFE #92756 in product IBM AIX.