• 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
shark and kernel/driver profiling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shark and kernel/driver profiling


  • Subject: shark and kernel/driver profiling
  • From: Andrew Gallatin <email@hidden>
  • Date: Fri, 23 Feb 2007 15:10:39 -0500 (EST)

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)

I have a few questions:

1: What is com.apple.driver.AppleIntelCPUPowerManagement doing that is
   taking up 30% of the time?  Is this another term for "idle"?
   If I click on it in the gui, it seems to be called by machine_idle_cstate.

2: Similarly for ml_set_interrupts_enabled..

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

  • Follow-Ups:
    • Re: shark and kernel/driver profiling
      • From: Michael Smith <email@hidden>
    • Re: shark and kernel/driver profiling
      • From: Garth Cummings <email@hidden>
  • Prev by Date: Re: bpfdetach blocked on lck_mtx_lock
  • Next by Date: Re: shark and kernel/driver profiling
  • Previous by thread: Re: Parameter passing during starting of the driver
  • Next by thread: Re: shark and kernel/driver profiling
  • Index(es):
    • Date
    • Thread