8372348: Adjust some UL / JFR string deduplication output messages#28455
8372348: Adjust some UL / JFR string deduplication output messages#28455MBaesken wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
|
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 388 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
| log_debug(stringdedup)(" Inspected: %12zu", _inspected); | ||
| log_debug(stringdedup)(" Known: %12zu(%5.1f%%)", _known, known_percent); | ||
| log_debug(stringdedup)(" Shared: %12zu(%5.1f%%)", _known_shared, known_shared_percent); | ||
| log_debug(stringdedup)(" New unknown: %12zu(%5.1f%%)" STRDEDUP_BYTES_FORMAT, |
There was a problem hiding this comment.
I'm wondering if just Unknown would be more self-explanatory than New unknown? We have Known already, and New unknown is the complement of Known
There was a problem hiding this comment.
Maybe , but the variables are named _new / _new_bytes and the JFR fields also have 'new' in the name. So it maybe makes sense to keep 'new' in the UL and related output.
There was a problem hiding this comment.
The avg (now named total avg) is for some people also a bit mysterious .
It is , taken from total_stat , the deduped bytes / new bytes . Why is it called avg? avg of what ?
There was a problem hiding this comment.
Adding total will be helpful already, but why are not the numbers printed on which the avg is based? Because otherwise you don't get an impression what the percentage mean.
There was a problem hiding this comment.
total avg of deduped / new unknown bytes maybe ? That mentions what is used for the computation .
We could also print the values of total deduped and new to make it more clear .
There was a problem hiding this comment.
Adding total will be helpful already, but why are not the numbers printed on which the avg is based? Because otherwise you don't get an impression what the percentage mean.
I added some more output, please check .
There was a problem hiding this comment.
I would appreciate the additional output to get a better understanding of the provided total avg.
There was a problem hiding this comment.
So are you fine with the current change ?
|
Thanks for the review ! May I have a second review , please ? |
| last_stat->_new, STRDEDUP_BYTES_PARAM(last_stat->_new_bytes), | ||
| last_stat->_deduped, STRDEDUP_BYTES_PARAM(last_stat->_deduped_bytes), | ||
| percent_of(total_stat->_deduped_bytes, total_stat->_new_bytes), | ||
| total_stat->_deduped_bytes, total_stat->_new_bytes, |
There was a problem hiding this comment.
Shouldn't these two use STRDEDUP_BYTES_FORMAT and STRDEDUP_BYTES_PARAM?
There was a problem hiding this comment.
Yeah seems so, this is what is used for STRDEDUP_BYTES_PARAM(last_stat->_new_bytes), STRDEDUP_BYTES_PARAM(last_stat->_deduped_bytes), .
|
Thanks for the reviews ! /integrate |
|
Going to push as commit 3f20eb9.
Your commit was automatically rebased without conflicts. |
There is some UL output in the string deduplication code that is not very clear and has room for improvement.
The inspected strings number should be shown and the new unknown strings get a changed text.
(also the new JFR strip dedup event description is slightly adjusted)
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28455/head:pull/28455$ git checkout pull/28455Update a local copy of the PR:
$ git checkout pull/28455$ git pull https://git.openjdk.org/jdk.git pull/28455/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28455View PR using the GUI difftool:
$ git pr show -t 28455Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28455.diff
Using Webrev
Link to Webrev Comment