• 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: which pages of the file are in the cache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which pages of the file are in the cache


  • Subject: Re: which pages of the file are in the cache
  • From: Eric Gouriou <email@hidden>
  • Date: Thu, 20 Aug 2009 16:10:50 -0700


On Aug 20, 2009, at 2:28 PM, Joel Reymont wrote:
On Aug 20, 2009, at 5:46 PM, Eric Gouriou wrote:
To get a better idea of how long the dynamic linking takes, I recommend using DYLD_PRINT_STATISTICS


I ran with extra dyld options to print libraries loaded as well as initializers and got plenty of information [1].

The statistics are as follows:
total time: 1.3 seconds (100.0%)
total images loaded: 106 (93 from dyld shared cache, 56 needed no fixups)
total segments mapped: 49, into 5894 pages with 684 pages pre-fetched
total images loading time: 328.8 milliseconds (24.1%)
total rebase fixups: 148,829
total rebase fixups time: 4.0 milliseconds (0.2%)
total binding fixups: 24,863
total binding symbol lookups: 796, average images searched per symbol: 2.3
total binding fixups time: 112.2 milliseconds (8.2%)
total bindings lazily fixed up: 45 of 19,103
total init time time: 919.3 milliseconds (67.3%)
total images with weak exports: 3
It seems that the binding fixup time can be discounted (8.2%). I think the image loading time (24.1%) and total initialization time (67.3%) can be improved upon, though.

Do initializers go into total init time?

 Yes, according to the dyld sources.  See ImageLoader::runInitializers() and ImageLoader::printStatistics()
<http://www.opensource.apple.com/source/dyld/dyld-97.1/src/ImageLoader.cpp>

 I'd be wary of relying too much on timing measurements collected with DYLD_PRINT_INITIALIZERS
enabled as the logging is included in the time reported in fgTotalInitTime.

 Feel free to Performance Radars on costly initializers coming from Apple-supplied libraries.

  Eric

Thanks, Joel

[1] http://gist.github.com/171379

---
faster mac firefox
 http://tinyco.de
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: which pages of the file are in the cache (From: Michael Smith <email@hidden>)
 >Re: which pages of the file are in the cache (From: Joel Reymont <email@hidden>)
 >Re: which pages of the file are in the cache (From: Eric Gouriou <email@hidden>)
 >Re: which pages of the file are in the cache (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re: which pages of the file are in the cache
  • Next by Date: Re: CFFileDescriptor fd leak?
  • Previous by thread: Re: which pages of the file are in the cache
  • Next by thread: Re: which pages of the file are in the cache
  • Index(es):
    • Date
    • Thread