Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Deleted_U_Intel
Employee
45 Views

Missing processes in sampling.

I am running VTune to profile a multithreaded application. In Redhat 7.3, threads are treated the same as processes, they have different PIDs. So, I modified my program to print out the PID of themselves everytime they're created. However, when I view the activity result (commandline: vtl view a4::r41 -processes) I can only see the base process, all thread (processes) spawned are not in the result.

I want to be able to view the sampling result for each thread my application spawn. How can I do that?


My operating system is RedHat 7.3, Kernel 2.4.18

Thank you.
0 Kudos
1 Reply
45 Views

Good report, jceberus. Clear and fact filled.

Of course, you may have founda bug, but I don't think so. More likely, the threads (processes) that are being created aren't statistically relevent, and therefore, aren't showing up.

Check it out: if you just sample the system for say, 20 seconds (-d 20) without launching an application, you will absolutely NOT get the same results as if you did

# ps -ef

VTune samples, it doesn't count precisely. So, what can you try? A couple things:

1) Increase the duration of the sampling activity by a bunch, by ten or a hundred times. So, if you're going 10 seconds make it 10 minutes. Something like that.

2) Read about, and consider changing your "sample after" value for the events that you're looking for. In the case of the default instructions retired, you might experiment with gradually smaller and smaller values, see which is optimal based on the results you see.

3) Instead of doing 2) above by hand, guessing, ask vtl to do it: turn calibration on. See if your results vary.

Report back, let us know here what you see!

cheers

jdg