From: shiva prasada.m.a <shi...@gm...> - 2011-03-25 11:44:28
|
Hi all, I have a very silly doubt. My doubt is :- "Is it compulsory that JDK must installed for profiling JIT compiled code?" Thanks and Regards, Shivaprasada.M.A |
From: Maynard J. <may...@us...> - 2011-03-28 14:03:17
|
shiva prasada.m.a wrote: > Hi Maynard, No private emails, please. Do a "reply all" to list postings so that everyone on the list can see your questions and the answers (also gives others on the list an opportunity to answer). > > Thank you for spending your valuable time to clarify my doubt. > > I have some doubts regarding oprofile. > > I am using 0.9.6 version of oprofile on a 2.6.14 kernel with PPC970MP > architecture. > > 1. In what all contexts one can get an anonymous symbol in opreport output? Without the Java JIT support available in oprofile, the JITed code appears as anonymous samples, since JVM compiles the bytecode into anonymous memory mappings that it creates, and then branches to that location in memory where the compiled code has been placed. > > 2. I am getting only one level when I run a callgraph. What could be the > reason for this? See section "2.3.2. Callgraph and JIT support" in the oprofile manual. > > 3. My application is completely written in C++. But I am still getting > anonymously mapped symbols. What could be the reason for this? What? I'm confused. Then why are you asking bout JITed code? Setting aside that confusion for the moment . . . How are you running oprofile -- i.e., are you specifying the "--image" option with opcontrol? How are you generating the profile report? Are you passing the name of your application to opreport to use as an image spec? If you're not using one of these techniques, then oprofile will collect a system-wide profile and opeport will generate a report for EVERYTHING running on the system. I suggest you read the documentation to see how oprofile works and the various control knobs available to users. -Maynard > > Thanks and Regards, > Shivaprasada.M.A > > On 25 Mar 2011 21:00, "Maynard Johnson" <may...@us...> wrote: > > On 03/25/2011 6:44 AM, shiva prasada.m.a wrote: >> >> Hi all, >> >> I have a very silly doubt. >> >> My do... > No. You only need a JDK if you need to build oprofile. (The oprofile build > needs to have access to some JDK header files.) For actual use of the Java > JIT profiling feature, all you need is a JRE. > > -Maynard > >> >>> Thanks and Regards, >>> Shivaprasada.M.A >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> >> >> >> _______________________________________________ >> oprofile-list mailing list >> opr...@li... >> https://lists.sourceforge.net/lists/listinfo/oprofile-list >> > |
From: Maynard J. <may...@us...> - 2011-03-29 16:37:16
|
shiva prasada.m.a wrote: > Hi Mynard, > > As I mentioned earlier I am using 0.9.6 version of oprofile with 2.6.14 > kernel on a PPC970MP machine. And my aplication is completely written in > C++. > > I run the the simple opreort command with --callgraph option and got the > following output and there were many such instances in the same run > > opreport -callgraph > > ------------------------------------------------------------------------------- > 21303 3.0415 anon (tgid:8432 range:0xc2d8000-0xfc60000) myProcess anon > (tgid:8432 range:0xc2d8000-0xfc60000) > 21303 100.000 anon (tgid:8432 range:0xc2d8000-0xfc60000) myProcess > anon (tgid:8432 range:0xc2d8000-0xfc60000) [self] > ------------------------------------------------------------------------------- > > ------------------------------------------------------------------------------- > 577 0.0824 anon (tgid:2606 range:0xff7e000-0xffc4000) > mymtc anon (tgid:2606 range:0xff7e000-0xffc4000) > 577 100.000 anon (tgid:2606 range:0xff7e000-0xffc4000) > mymtc anon (tgid:2606 range:0xff7e000-0xffc4000) [self] > ------------------------------------------------------------------------------- > > Could you please help me with this? Why I may be getting this? And is there > any other context where we might get anonymous symbols? I'm not a compiler expert. I don't know under what circumstances the C/C++ compiler may generate code for your binary that is loaded to and executed from anonymously mapped memory. I have seen anon samples in profiles before where those samples are attributed to C or C++ programs, but typically, the percentage of such samples is so low that they're down in the noise level -- i.e., ignorable. See if you can run your "mymtc" app longer and then generate a simple "--symbols" report (versus callgraph) to see if the total number of anon samples increases proportionally (or maybe even stay roughly the same). -Maynard > > Thanks and Regards, > Shivaprasada.M.A > > On 28 Mar 2011 19:33, "Maynard Johnson" <may...@us...> wrote: > > shiva prasada.m.a wrote: >> Hi Maynard, > No private emails, please. Do a "reply all" to list postings so that > everyone on the list can see your questions and the answers (also gives > others on the list an opportunity to answer). > >> >> Thank you for spending your valuable time to clarify my doubt. >> >> I have some doubts regardin... > Without the Java JIT support available in oprofile, the JITed code appears > as anonymous samples, since JVM compiles the bytecode into anonymous memory > mappings that it creates, and then branches to that location in memory where > the compiled code has been placed. > >> >> 2. I am getting only one level when I run a callgraph. What could be the >> reason for this? > See section "2.3.2. Callgraph and JIT support" in the oprofile manual. > >> >> 3. My application is completely written in C++. But I am still getting >> anonymously mapped sym... > What? I'm confused. Then why are you asking bout JITed code? Setting aside > that confusion for the moment . . . How are you running oprofile -- i.e., > are you specifying the "--image" option with opcontrol? How are you > generating the profile report? Are you passing the name of your application > to opreport to use as an image spec? If you're not using one of these > techniques, then oprofile will collect a system-wide profile and opeport > will generate a report for EVERYTHING running on the system. I suggest you > read the documentation to see how oprofile works and the various control > knobs available to users. > > > -Maynard >> >> Thanks and Regards, >> Shivaprasada.M.A >> >> On 25 Mar 2011 21:00, "Maynard Johnson" <... > |
From: Maynard J. <may...@us...> - 2011-03-25 15:30:33
|
On 03/25/2011 6:44 AM, shiva prasada.m.a wrote: > Hi all, > > I have a very silly doubt. > > My doubt is :- "Is it compulsory that JDK must installed for profiling JIT > compiled code?" No. You only need a JDK if you need to build oprofile. (The oprofile build needs to have access to some JDK header files.) For actual use of the Java JIT profiling feature, all you need is a JRE. -Maynard > > Thanks and Regards, > Shivaprasada.M.A > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > > _______________________________________________ > oprofile-list mailing list > opr...@li... > https://lists.sourceforge.net/lists/listinfo/oprofile-list |