Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Conversation

uttampawar
Copy link
Contributor

Hi,
I've added frontend_bound metric calculation script to give high level data about a workload.
@suresh-srinivas Could you review the PR and verify if it gives correct results please? I've copied the formula from edp/skx xml file. I appreciate any comments you may have.

@uttampawar uttampawar added the enhancement New feature or request label Nov 13, 2019
SCRIPTS_DIR=`dirname $0`
source ${SCRIPTS_DIR}/utils.sh

function init_frontend_bound() {
Copy link
Contributor

@catalin-manciu catalin-manciu Nov 13, 2019

Choose a reason for hiding this comment

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

Is this useful/used?
Also, I think it can be reduced to the following, due to the fact that the array is already hardcoded there and there's nothing preventing us from hardcoding it as a string (we could even drop the variable declaration, though it makes the code slightly more readable):

function init_frontend_bound() {
  local local_pmus="cpu_clk_unhalted.thread_any,idq_uops_not_delivered.core"
  echo $local_pmus
}

echo " b=idq_uops_not_delivered.core"
echo "================================================="

local a=`return_pmu_value "cpu_clk_unhalted.thread_any" $perf_data_file `
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra space after $perf_data_file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @uttampawar for the PR.

Here are some comments:

FE BOUND = IDQ_UOPS_NOT_DELIVERED.CORE / SLOTS
SLOTS = #Pipeline_Width  * CORE_CLKS
CORE_CLKS = CPU_CLK_UNHALTED.THREAD
  • In future we want to add some checks about the architecture. Some other formulas work only on Skylake and beyond. This one is fine.

--

I realize it yesterday while working on this script. This needs to be addressed for sure one for getting up to date architecture information, exact counter names and formulas to getting various metrics.

Copy link
Contributor

@suresh-srinivas suresh-srinivas left a comment

Choose a reason for hiding this comment

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

Thanks @uttampawar for the PR.

Here are some comments:

FE BOUND = IDQ_UOPS_NOT_DELIVERED.CORE / SLOTS
SLOTS = #Pipeline_Width  * CORE_CLKS
CORE_CLKS = CPU_CLK_UNHALTED.THREAD

  • In future we want to add some checks about the architecture. Some other formulas work only on Skylake and beyond. This one is fine.

--

@uttampawar
Copy link
Contributor Author

General comment is that this was a quick script I needed for my data collection.

@uttampawar uttampawar requested review from catalin-manciu and removed request for catalin-manciu April 7, 2021 17:56
@NitinAtIntel
Copy link
Contributor

@uttampawar is this PR still relevant?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants