iovisor / iovisor/bcc

How to profile L1 cache using BCC Python ?

Open
#3,055 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

I am profiling last-level cache using llcstat.py

PerfHWConfig has CACHE_REFERENCES and CACHE_MISSES options, which seems to be set to last-level cache in llcstat.py

Is there any way to profile L1 cache with BCC Python ?
How to configure cache id ? (LL -> L1D, L1I)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading llcstat.py and the PerfHWConfig handling for CACHE_REFERENCES and CACHE_MISSES. Check how cache identifiers are configured and whether L1D or L1I events are supported; done would be a documented way to profile the requested L1 cache events, or a clearly documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
observability, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.