IBM Support

OA42040: GETRUSAGE() SYSTEM TIMES NOT SET

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • getrusage() system time returned is incorrect
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of z/OS UNIX System Services for   *
    *                 HBB7770 HBB7780 and HBB7790                  *
    *                 using function BPXPRGRU getrusage()          *
    ****************************************************************
    * PROBLEM DESCRIPTION: The CPU time used values, reported in   *
    *                      BPXYRLIM fields Ru_utime and Ru_stime,  *
    *                      can be reported as 0 even when some     *
    *                      time has been used.                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The getrusage() service (BPXPRGRU) calls the times() service
    (BPXPRTIM) to get the CPU system (time in kernel) time used and
    the CPU user time used.
    - times() returns the CPU time in ticks
      (1/100ths of a second).
    - getrusage() returns the CPU time in seconds and
      microseconds.
    .
    When BPXPRTIM converts TOD format to ticks, it saves just the
    ticks and drops microseconds in excess of tick measurement.
    BPXPRGRU gets the ticks returned from BPXPRTIM and converts it
    to seconds and microseconds.
    .
    When the CPU time used is less than a tick, PRTIM reports the
    time used as zero.  PRGRU then reports the seconds and
    microseconds as zero.
    

Problem conclusion

  • When BPXPRGRU calls BPXPRTIM, BPXPRTIM will save the
    microseconds left over from the TOD to tick conversion and pass
    them back to PRGRU in the OTCB.
    PRGRU will add these microseconds back to the total time used.
    

Temporary fix

Comments

APAR Information

  • APAR number

    OA42040

  • Reported component name

    OPENMVS SYS SRV

  • Reported component ID

    5695SCPX1

  • Reported release

    790

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-04-19

  • Closed date

    2013-09-04

  • Last modified date

    2013-10-03

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UA70662 UA70663 UA70664

Modules/Macros

  • BPXPRGRU BPXPRTIM BPXZOTCB
    

Fix information

  • Fixed component name

    OPENMVS SYS SRV

  • Fixed component ID

    5695SCPX1

Applicable component levels

  • R770 PSY UA70662

       UP13/09/18 P F309

  • R780 PSY UA70663

       UP13/09/18 P F309

  • R790 PSY UA70664

       UP13/09/18 P F309

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":null,"label":null},"Product":{"code":"SG19O","label":"APARs - MVS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
03 October 2013