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

which grafana dashboard and perf hard event #1

Open
jacker123test opened this issue Mar 21, 2022 · 1 comment
Open

which grafana dashboard and perf hard event #1

jacker123test opened this issue Mar 21, 2022 · 1 comment

Comments

@jacker123test
Copy link

Hello, please help to answer two questions about perf related, thank you

  1. Which grafana dashboard id is used by perf export?
  2. How to display perf hardware events, such as cache-misses events

my environment:

  1. cat /proc/sys/kernel/perf_event_paranoid
    0
  2. uname -a
    Linux ubuntu 4.15.18 #2 SMP Thu Feb 24 14:27:34 HKT 2022 aarch64 aarch64 aarch64 GNU/Linux

5.mount | grep -E '(debugfs|tracefs)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)

  1. cat /boot/config-$(uname -r) | grep -iE '(perf|debugfs)

CONFIG_GENERIC_IRQ_DEBUGFS is not set

CONFIG_CGROUP_PERF=y
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
CONFIG_HAVE_PERF_EVENTS=y

Kernel Performance Events And Counters

CONFIG_PERF_EVENTS=y

CONFIG_DEBUG_PERF_USE_VMALLOC is not set

CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y

CONFIG_PCIEASPM_PERFORMANCE is not set

CONFIG_HW_PERF_EVENTS=y

CONFIG_CMA_DEBUGFS is not set

CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_L2TP_DEBUGFS=m

CONFIG_6LOWPAN_DEBUGFS is not set

CONFIG_CLS_U32_PERF is not set

CONFIG_BATMAN_ADV_DEBUGFS is not set

CONFIG_BT_DEBUGFS=y
CONFIG_CFG80211_DEBUGFS=y
CONFIG_MAC80211_DEBUGFS=y
CONFIG_ATH9K_DEBUGFS=y
CONFIG_ATH9K_HTC_DEBUGFS=y

CONFIG_CARL9170_DEBUGFS is not set

CONFIG_WIL6210_DEBUGFS=y
CONFIG_ATH10K_DEBUGFS=y

CONFIG_WCN36XX_DEBUGFS is not set

CONFIG_IWLEGACY_DEBUGFS=y
CONFIG_IWLWIFI_DEBUGFS=y

CONFIG_RT2X00_LIB_DEBUGFS is not set

CONFIG_RSI_DEBUGFS is not set

CONFIG_IEEE802154_AT86RF230_DEBUGFS=y
CONFIG_IEEE802154_CA8210_DEBUGFS=y
CONFIG_SMS_SIANO_DEBUGFS=y

CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set

CONFIG_DEVFREQ_GOV_PERFORMANCE=y
CONFIG_NTB_PERF=m

Performance monitor support

CONFIG_ACPI_EC_DEBUGFS=m
CONFIG_RCU_PERF_TEST=m

CONFIG_ARM64_PTDUMP_DEBUGFS is not set

CONFIG_SECURITY_PERF_EVENTS_RESTRICT=y

  1. perf_exporter -h
    Prometheus exporter for perf events
    Usage:
    perf_exporter [flags]

Flags:
-c, --config string config file (default is $HOME/.perf_exporter.yaml)
-l, --listen-address string Server listen address (default "0.0.0.0:8585")
--metrics-path string Metrics endpoint (default "/metrics")
-p, --pid int PID (default all) (default -1)

Build Timestamp:

Go Version:
devel go1.19-da2773fe3e Sun Mar 6 20:47:39 2022 +0000

@hodgesds
Copy link
Owner

Which grafana dashboard id is used by perf export?

There currently isn't one published to grafana, but feel free to do so.

How to display perf hardware events, such as cache-misses events

For this you would want to use node_exporter.

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

No branches or pull requests

2 participants