Skip to content

JDK-8030957 - AIX: Implement OperatingSystemMXBean.getSystemCpuLoad() and .getProcessCpuLoad() on AIX #25332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

suchismith1993
Copy link
Contributor

@suchismith1993 suchismith1993 commented May 20, 2025


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Errors

 ⚠️ 8030957 is used in problem lists: [test/jdk/ProblemList.txt]
 ⚠️ The pull request body must not be empty.

Issue

  • JDK-8030957: AIX: Implement OperatingSystemMXBean.getSystemCpuLoad() and .getProcessCpuLoad() on AIX (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25332/head:pull/25332
$ git checkout pull/25332

Update a local copy of the PR:
$ git checkout pull/25332
$ git pull https://git.openjdk.org/jdk.git pull/25332/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 25332

View PR using the GUI difftool:
$ git pr show -t 25332

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25332.diff

@bridgekeeper
Copy link

bridgekeeper bot commented May 20, 2025

👋 Welcome back sroy! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 20, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk
Copy link

openjdk bot commented May 20, 2025

@suchismith1993 The following labels will be automatically applied to this pull request:

  • jmx
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

}

ret = perfstat_cpu_total(NULL, &cpu_total, sizeof(perfstat_cpu_total_t), 1);
if (ret <= 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that we check for retval < 0 in os_perf_aix.cpp, should we align this in some way ?

@MBaesken
Copy link
Member

Are you sure the perfstat functionality is always available ?
In HS we do dynamic resolution (see e.g. os_perf_aix.cpp), but maybe that was needed long time ago and is not really needed any more? But please check this .

@suchismith1993
Copy link
Contributor Author

Are you sure the perfstat functionality is always available ? In HS we do dynamic resolution (see e.g. os_perf_aix.cpp), but maybe that was needed long time ago and is not really needed any more? But please check this .

I tried with a standalone program and did not face any issues.

@suchismith1993
Copy link
Contributor Author

@MBaesken would it be possible for you to try this patch once to see if the load values are realistic / accurate ?
Else if you can provide some use case that I can try.

@MBaesken
Copy link
Member

Are you sure the perfstat functionality is always available ? In HS we do dynamic resolution (see e.g. os_perf_aix.cpp), but maybe that was needed long time ago and is not really needed any more? But please check this .

I tried with a standalone program and did not face any issues.

I was more thinking about different AIX machines setups/OS levels/installations. Is the perfstat functionality always there 'these days' ?

@MBaesken
Copy link
Member

would it be possible for you to try this patch once to see if the load values are realistic / accurate ?

Not 100% sure how, should we compare with values provided by other tools (system tools etc.) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants