Skip to content
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

Perf analysis based on tsc delta measurements #79

Closed
wants to merge 7 commits into from

Conversation

yatancuyu
Copy link

@yatancuyu yatancuyu commented Dec 12, 2023

#74

cli/show.h Outdated
dataplane.updateGlobalBase(globalbase);
}

static const std::map<std::string, unsigned int> counter_name_to_offset = {
Copy link
Author

Choose a reason for hiding this comment

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

Should i use array instead of struct for dataplane::perf::tsc_base_values, to avoid this?

common::idp::updateGlobalBase::request globalbase;
globalbase.emplace_back(common::idp::updateGlobalBase::requestType::tscs_base_value_update,
common::idp::updateGlobalBase::tscs_base_value_update::request{counter_name_to_offset.at(counter_name), value});
dataplane.updateGlobalBase(globalbase);
Copy link
Author

Choose a reason for hiding this comment

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

Is it ok to update GlobalBase from cli?

@@ -105,6 +109,7 @@ std::vector<std::tuple<std::string,
{"dontdoit podumoi controlplane rib save", "", [](const auto& args) { call(rib::save, args); }},
{"dontdoit podumoi controlplane rib load", "", [](const auto& args) { call(rib::load, args); }},
{"dontdoit podumoi controlplane rib clear", "[protocol] <peer> <vrf> <priority>", [](const auto& args) { call(rib::clear, args); }},
{"dontdoit podumoi tsc monitoring", "", [](const auto& args) { call(develop::dataplane::tsc_monitoring, args); }},
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe move to just "tsc monitoring" =)

taitov
taitov previously approved these changes Jan 29, 2024
@taitov
Copy link
Contributor

taitov commented Jan 31, 2024

Squash and rebase to main, please

@yatancuyu yatancuyu closed this Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants