• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shark and kernel/driver profiling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shark and kernel/driver profiling


  • Subject: Re: shark and kernel/driver profiling
  • From: Derek Kumar <email@hidden>
  • Date: Mon, 26 Feb 2007 20:57:48 -0500

On Feb 26, 2007, at 4:15 PM, Andrew Gallatin wrote:

The optimization/debugging flags I use are -O2 -g2.
Have you tried say -gfull or -gstabs+?

Derek
P.S.: CC-ing Rick from the Shark team, he may be familiar with configurations and combinations of flags (or lack thereof) which may result in messages such as these:
- 2.2% 0x2c75e000 [unreadable] (com.myricom.driver.myri10ge)
- 5.0% 0x2c75f000 [unreadable] (com.myricom.driver.myri10ge)


I was doing some profiling of my 10GbE driver on a MacPro (dual x2
2.66GHz, 10.4.8), and according to iostat, the load on the system is
53% when receiving traffic. Using 'shark -i' from the command line, I
created a time profile. According to this profile, the system is
spending:
<....>
- 1.3% m_freem_list (mach_kernel)
- 1.3% lck_mtx_lock (mach_kernel)
- 1.6% soreceive (mach_kernel)
- 1.6% sbtoxsockbuf (mach_kernel)
- 2.2% 0x2c75e000 [unreadable] (com.myricom.driver.myri10ge)
- 5.0% 0x2c75f000 [unreadable] (com.myricom.driver.myri10ge)
- 6.7% m_getpacket (mach_kernel)
- 18.4% copyout_kern (mach_kernel)
- 22.3% ml_set_interrupts_enabled (mach_kernel)
- 29.9% 0x24730000 [unreadable] (com.apple.driver.AppleIntelCPUPowerManagement)
...



3: How do I get my driver's symbols to resolve?  I'm loading my driver
via kextload from the commandline, and I've pointed the "search paths"
for kexts at the directory my .kext file is located in.  I'm also
loading with symbols, so com.myricom.driver.myri10ge.sym is in that
directory as well.

Thanks,

Drew
 _______________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >shark and kernel/driver profiling (From: Andrew Gallatin <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Garth Cummings <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Andrew Gallatin <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Garth Cummings <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Andrew Gallatin <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Garth Cummings <email@hidden>)
 >Re: shark and kernel/driver profiling (From: Andrew Gallatin <email@hidden>)

  • Prev by Date: Re: Sandboxing KEXT
  • Next by Date: RE: Passing arguments to application lauch through KUNCExecute() call
  • Previous by thread: Re: shark and kernel/driver profiling
  • Next by thread: Re: shark and kernel/driver profiling
  • Index(es):
    • Date
    • Thread