- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to use Emon to collect PMU counter data for an application. I tried to achieve this by running Emon as such:
emon -t0 -C "CPU_CLK_UNHALTED.REF_TSC" /bin/ls
With that command I get counter data for each of my 16 cores. However, ls is a single threaded application, so assuming ls always ran in the same core for simplicity, I am getting 15 data points that are not related to ls, and only one from ls.
Is my understanding correct? If so, is there any way to get Emon to record only counter data that comes specifically from ls, and nothing else? I guess I could pin ls to a specific core and only look at Emon's data for that core, but I'm hoping Emon supports this out of the box.
Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel communities.
As per your request, we have contacted Development team to check whether Emon can print out a single core on which the ls application runs.
We will get back to you once we get an update from them.
Thanks and Regards,
Diya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry for the delay in response.
We have checked with the development team and the described scenario which you mentioned is not supported in Emon.
Emon doesn't have the feature to filter out the particular core which is engaged in running the application rather it shows all the cores.
We came around with a workaround where we wrote a script which filters out the particular core using emon command that is engaged in running the application.
The algorithm of the script is as follows:
1. It's going to grep the output of the emon command and save in a text file.
2. From the text file it is going to filter the desired column(system/user/idle) based on time taken to run that command.
Then, we are going to save the line number and print that line as the final output.
In short, it's going to profile any binary/exe file with emon command and going to give maximum system/user/idle time as shown in the screenshot below:
Please try to run a script with the above algorithm in any language and check if you could pin ls to a specific core and only look at Emon's data for that core and let us know if you face any difficulties.
If this resolves your issue, make sure to accept this as a solution.
This would help others with similar issue. Thank you!
Thanks and Regards,
Diya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you .
Did the workaround help you in resolving your issue ?
If it has resolved your issue, make sure to accept this as a solution.
This would help others with similar issue. Thank you!
Regards,
Diya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
Good day to you.
We have not heard back from you.
We assume that your issue is resolved with the solution provided.
This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.
Regards,
Diya
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page