Perf Tool monitoring by PID
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I'm using linux perf tool to monitor the performance of some processes. The documentation tells that you can flag it to collect profiles on per-thread, per-process and per-cpu basis.
I get that the processor would have performance registers collecting event-counts for a given physical-core and it's resources (e.g. L1-caches).
How does perf
or any such performance monitoring tool, measure counters per-process or per-thread basis? For example, let's say I'm monitoring L1-cache-misses, now since the cache is shared for all processes running on that CPU, how does perf
determine how many misses came from a given process or a given thread?
linux process profiling perf
add a comment |Â
up vote
3
down vote
favorite
I'm using linux perf tool to monitor the performance of some processes. The documentation tells that you can flag it to collect profiles on per-thread, per-process and per-cpu basis.
I get that the processor would have performance registers collecting event-counts for a given physical-core and it's resources (e.g. L1-caches).
How does perf
or any such performance monitoring tool, measure counters per-process or per-thread basis? For example, let's say I'm monitoring L1-cache-misses, now since the cache is shared for all processes running on that CPU, how does perf
determine how many misses came from a given process or a given thread?
linux process profiling perf
"How does perf or any such performance monitoring tool, measure counters per-process or per-thread basis? " this Q could be overly broad.
â slmâ¦
Aug 20 at 13:10
1
dtrace type monitoring was built into the Linux kernel - brendangregg.com/blog/2016-10-27/dtrace-for-linux-2016.html. Methods used to collect perf data are covered here - brendangregg.com/perf.html.
â slmâ¦
Aug 20 at 13:17
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm using linux perf tool to monitor the performance of some processes. The documentation tells that you can flag it to collect profiles on per-thread, per-process and per-cpu basis.
I get that the processor would have performance registers collecting event-counts for a given physical-core and it's resources (e.g. L1-caches).
How does perf
or any such performance monitoring tool, measure counters per-process or per-thread basis? For example, let's say I'm monitoring L1-cache-misses, now since the cache is shared for all processes running on that CPU, how does perf
determine how many misses came from a given process or a given thread?
linux process profiling perf
I'm using linux perf tool to monitor the performance of some processes. The documentation tells that you can flag it to collect profiles on per-thread, per-process and per-cpu basis.
I get that the processor would have performance registers collecting event-counts for a given physical-core and it's resources (e.g. L1-caches).
How does perf
or any such performance monitoring tool, measure counters per-process or per-thread basis? For example, let's say I'm monitoring L1-cache-misses, now since the cache is shared for all processes running on that CPU, how does perf
determine how many misses came from a given process or a given thread?
linux process profiling perf
linux process profiling perf
edited Aug 20 at 12:55
slmâ¦
238k65493664
238k65493664
asked Aug 20 at 5:03
Nikhilesh Singh
166
166
"How does perf or any such performance monitoring tool, measure counters per-process or per-thread basis? " this Q could be overly broad.
â slmâ¦
Aug 20 at 13:10
1
dtrace type monitoring was built into the Linux kernel - brendangregg.com/blog/2016-10-27/dtrace-for-linux-2016.html. Methods used to collect perf data are covered here - brendangregg.com/perf.html.
â slmâ¦
Aug 20 at 13:17
add a comment |Â
"How does perf or any such performance monitoring tool, measure counters per-process or per-thread basis? " this Q could be overly broad.
â slmâ¦
Aug 20 at 13:10
1
dtrace type monitoring was built into the Linux kernel - brendangregg.com/blog/2016-10-27/dtrace-for-linux-2016.html. Methods used to collect perf data are covered here - brendangregg.com/perf.html.
â slmâ¦
Aug 20 at 13:17
"How does perf or any such performance monitoring tool, measure counters per-process or per-thread basis? " this Q could be overly broad.
â slmâ¦
Aug 20 at 13:10
"How does perf or any such performance monitoring tool, measure counters per-process or per-thread basis? " this Q could be overly broad.
â slmâ¦
Aug 20 at 13:10
1
1
dtrace type monitoring was built into the Linux kernel - brendangregg.com/blog/2016-10-27/dtrace-for-linux-2016.html. Methods used to collect perf data are covered here - brendangregg.com/perf.html.
â slmâ¦
Aug 20 at 13:17
dtrace type monitoring was built into the Linux kernel - brendangregg.com/blog/2016-10-27/dtrace-for-linux-2016.html. Methods used to collect perf data are covered here - brendangregg.com/perf.html.
â slmâ¦
Aug 20 at 13:17
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f463566%2fperf-tool-monitoring-by-pid%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
"How does perf or any such performance monitoring tool, measure counters per-process or per-thread basis? " this Q could be overly broad.
â slmâ¦
Aug 20 at 13:10
1
dtrace type monitoring was built into the Linux kernel - brendangregg.com/blog/2016-10-27/dtrace-for-linux-2016.html. Methods used to collect perf data are covered here - brendangregg.com/perf.html.
â slmâ¦
Aug 20 at 13:17