Observing extreme overhead due to the collector

Hi all,
I've been using the collector for quite q while to chase down bottlenecks in a program with heavy I/O and pthreads-based blocking, and usually the profiler has a negligible overhead or even speeds things up slightly. However, just recently profiling has started to really slow things down, sometimes cutting performance by 90% or even 99%
Has anyone else seen anything like this? Are there any (not-so-)well-known things (or combinations of them) that I might be doing to trip up the collector?
Symptoms include:
- spawning a few dozen threads takes tens of seconds
- dtrace shows calls to pread() taking 0.33 seconds each when reading from tmpfs (a 10000x increase). Other syscalls see the same kind of slowdown but are called far less often and don't affect performance -- fstat is the worst, at over a second per call.
- the profiler results assign nearly 30% of program execution time (in the "other" category) to an innocent function which happens to be called soon after control returns from pthread_cond_wait
- top shows an average of only 1-2 threads active at any given time (normally 38-40)
Using dbx, I can toggle the symptoms by enabling and disabling the collector on a running instance of the program.
At first I thought it was the new patches I'd recently installed, but reverting the patches, then updating the OS version, then moving to a machine that's way behind on its patches (and working fine for other users) all made no difference.
Other details that probably don't matter: I link with -lmtmalloc and uses 'popen()' at regular intervals to call 'fstat' and parse its output; there's nothing special about my signal handlers other than a SIGINT handler that sets a single atomic flag and returns immediately (long-running functions watch for it as a signal to error out early).
Thanks!

Sorry... should have posted the versions before. I am compiling with Sun CC, running within dbx, and attaching/detaching the collector from there. My primary machine just got a fresh install of SS12 today:
SunOS 5.10 Generic_138888-03 sun4v sparc SUNW,SPARC-Enterprise-T5220 Solaris
Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
Sun Dbx Debugger 7.6 SunOS_sparc Patch 124872-01 2007/07/12
Sun Analyzer 7.6 SunOS_sparc 2007/05/03
and the secondary machine has:
SunOS 5.10 Generic_127111-09 sun4v sparc SUNW,SPARC-Enterprise-T5220
Sun C++ 5.9 SunOS_sparc 2007/05/03
Sun Dbx Debugger 7.6 SunOS_sparc 2007/05/03
Sun Analyzer 7.6 SunOS_sparc 2007/05/03
Part of the problem is that it's transient -- sometimes the profiler works perfectly, often it's somewhat slow (-20% perf), and once in a while the 99% performance hit comes. The first time this came up zfs and tmpfs were fighting over memory (with a large swap partition on a zvol); the next couple of times somebody fired up db2 and opened a database connection. Another time a colleague had accidentally overfilled /export/home with a large core file. Fixing the trigger, reinstalling software (or Solaris!), or rebooting doesn't seem to fix the problem... but sometimes, if you just run long enough, it fixes itself.
Case in point: I fired up the collector again to run dtrace and profiler numbers, and over about 30 minutes of profiling runs each measurement behaved better than the last until the problems completely went away. The long syscalls were the first to go, followed by a performance jump (only -20% vs non-profiled), then performance edged back up to normal, and finally thread creation time went back to near-instant. Last of all (and long after performance improved!) top and vmstat started reporting significant user time again. For quite a while there they were showing that 0.2% user and 2.1% kernel (64 contexts) achieved the work of 10 threads going full bore.
Then, I tried again with 40 threads instead of 10 and some issues came back: several minutes to spawn the threads, sleep(10) took 14 seconds to return, but performance not too terrible.
As it happens, most of this transition got captured by a single long experiment; I can't post it publicly, but did ran er_archive on the resulting test.er if that would be any help.
BTW, SIGINT is used only as an 'emergency stop' and dtrace reported no signals besides SIGPROF.

Similar Messages

  • I can't open pages files from USB and iCloud due to : "The necessary file index.xml is missing".

    I can't open pages files from USB and iCloud due to : "The necessary file index.xml is missing". Original file is written on iMac (2014) and saved to an USB stick and then transferred till macBook Pro (2009, Yosemite) for editing. Then I shared the files by iCloud but I am not able to open them on iMac again. Niether can I use the USB stick to transfer the edited files back. I'm running Pages '09 4,1 (923) on the macBook and Pges 5.5.2 (2120) on the iMac.
    Håkan

    Pages 5.5.2 is extremely incompatible with even other Macs let alone the vast majority of PC and MsWord users out there, so not a good idea to leap into the fire with both eyes shut.
    After having done that to the first Pages 5 files, Apple has repeatedly done it to even the most minor point updates. Apple can't even anticipate its own erratic changes let alone what everyone else needs doing.
    Peter

  • No correction due to the value change in Rebate

    Hi,
    I followed the procedure but still it gives me the above error.
    Run the SDBONT06 with the Agreement, but it gives me the error No correction due to the value change for the XXX invoices.
    Also run the  RV15B001 and  RV15B002 and again run the SDBONT06 but still not resolved the issue.
    Still anything i miss? please suggest
    Thanks
    Hrishi

    Hi Lakshmipathi,
    No condition type was removed for the said invoices, but the prices has been changed manually has been observed, hence i think system pop the above message, i also checked the Note that you provided, but i did the right steps as per the note.
    Any other input?
    Thanks
    Hrishi

  • Microsoft Security Client OOBE stopped due to the following error: 0xC000000D

    I keep getting this error in my event Viewer and I removed Microsoft Security Client a few weeks ago and replaced it with Bitdefender 2012
    Session "Microsoft Security Client OOBE" stopped due to the following error: 0xC000000D
    I am also getting these aswell...
    Custom dynamic link libraries are being loaded for every application. The system administrator should review the list of libraries to ensure they are related to trusted applications.
    Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x0811960D92F5.  The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the
    network address (DHCP) server.
    A problem prevented Customer Experience Improvement Program data from being sent to Microsoft, (Error 80004005).

    If you do not want to reinstall Microsoft Security Essentials to stop this problem, there is a step which you MUST, I repeat, MUST follow.  As indicated above by Zuhl3156, YOU MUST, again, MUST shutdown the security counter.  This is a problem
    when you uninstall MSE, it does not remove the security counter.  This is the reason that everyone says to delete the C:\ProgramData\Microsoft\Microsoft Security Client\Support\EppOobe.etl file.  This file is used and created by this counter.
    If you have uninstalled the MES, then you MUST delete the C:\ProgramData\Microsoft\Microsoft Security Client\Support\EppOobe.etl.  But, MOST IMPORTANTLY, you MUST go into into Computer Management and drill down into:
    System Tools -> Performance -> Data Collector Sets -> Startup Event Tracing Sessions
    Then, in the frame to the right on that window, select Microsoft Security Client OOBE, right click on it and select Properties.  Then DISABLE it (uncheck the Enabled box).  Then, when you select OK, if you have uninstalled MSE and NOT reinstalled
    it, the entry in the right frame will 'magically' disappear.
    This is a problem with the uninstall of MSE and needs to be resolved by Microsoft (hopefully they are reading this).  It has taken me DAYS to discover this, and many different attempts to resolve this.  But, apparently, this has now resolved my
    problem.  I have seen performance counters cause many problems in my experience with Windows, and am very confident that this resolves the issue.
    I cannot thank Zuhl3156 enough for his suggestion and my willingness to try it (I noticed 'performance counter' and jumped on it).  It seems to work wonderfully for the moment.
    I hope this helps someone else who has spent days trying to chase this nightmare down.
    Jim

  • I purchased an album and it has disappered from my iPod however other purchased items are showing. How can I get the album back? It is not on my computer on the itunes library due to the computer wiping all contents.

    My ipod touch lost all its data due to my computer crashing and having to be rebooted.
    This resulted in all software being wiped - including iTunes. Therefore, I lost all my music, apps etc on my library on the computer. I then synced my iPod into the computer which then updated the ipod software and then it cleared all my music.
    However, I managed to find my music on the purchased list and was able to re download it.
    Although, I'm aware that one album did not apper on the purchased playlist - I have an email to prove that I purchased this album however, it is not appearing to allow for me to download it.
    I am pretty sure that this is not the only album but due to the amount of music I previously had on my iPod it is difficult to tell what is missing.
    Is there anything I can do to get all my previous music back?
    Is there anything I can do by contacting Apple to see if they can help?
    Would greatly appreciate any help whatsoever! Just about pulling my hair out - due to no available phone calls until next thursday and NO email address to contact!

    Thanks very much I have contacted them via this. Just hope they respond quickly- rather annoing! Greatly appreciated though

  • I cannot add a Wi-Fi guest network. Gone to Utilities Airport Utilities and all get is an image/browser of my Airport Extreme. Looking for the browser which has the title Wireless but cannot find anywhere. I need help?

    I cannot add a Wi-Fi guest network. Gone to Utilities>Airport Utilities and all I get is an image/browser of my Airport Extreme. Looking for the browser window which has the title Wireless but cannot find anywhere. What am I doing wrong?

    Open AirPort Utility. The first screen looks something like this:
    Click on the AirPort Extreme and another screen will appear. Click Edit, then the window with the Wireless tab will appear.
    If you do not see these screens, you will need to start over and configure your AirPort again.

  • I reinstall the Yosemite due to the wifi issue, when finished, the iMovie was not installed, I try to download it from app store, but it's not free. How can I get iMovie back?

    I'm using a mid 2014 13" rmbp. I reinstall the Yosemite due to the wifi issue, when finished, the iMovie was not installed, I try to download it from app store, but it's not free. How can I get iMovie back?

    It's something to do with the main user account (not iTunes account) on my Mac because I logged in with another account and it downloaded fine, I installed it on the HDD and even though the date in App Store was 16th October 2014, it is the full installer of 10.10.2.
    To try to resolve this problem, I have copied the installer app elsewhere and deleted it but App Store still will not allow me to download it with my main user account yet just allowed me to update iTunes.
    I had a brainwave last night that it might have been related to me changing the default downloads folder to one not on my boot drive (to save disk space on my main boot drive) but having changed it back, tried again, rebooted and tried yet again, deleted my App Store preferences. nothing has worked.

  • I am a new mac user and I switch to mac due to the graphics that it brings. I do website in pc and I heard iweb is the best.NOW i heard that iweb will be discontinue. so what is the best application there for website using MAC OSX lion?

    I am a new mac user and I switch to mac due to the graphics that it brings. I do website in pc and I heard iweb is the best.NOW i heard that iweb will be discontinue. so what is the best application there for website using MAC OSX lion?

    It is now confirmed  that iWeb, and iDVD, has been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. However, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    I found that if I published my site to a folder on my hard drive and then uploaded with a 3rd party FTP client subscriptions to slideshows and the RSS feed were broken.  If I published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    It now appears that the iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on. However, the iLife 11 boxed version that is still available at the online Apple Store (Store button at the top of the page) and those still on the shelves of retailers will include iWeb and iDVD. Those two apps were listed in small, gray text on the iLife 11 box that I bought.
    Personally, if I didn't already have a copy I would purchase one to have it for reinstallation purposes if ever needed.
    This might be of some interest to you at this time: Life After MobileMe.
    OT

  • Microsoft Intune was unable to set the desired mobile device policy for one or more users due to the following error: A2CE0100

    Hi!
    We have fatal or critical error message on Microsoft Intune Portal but all agents are working just fine. Before opening support ticket we would like to hear comments from the experts on this forum. We would also like to fix this error before starting to
    manage mobile devices with Intune.
    Error message on Intune Portal:
    "Microsoft Intune was unable to set the desired mobile device policy for one or more users due to the following error: A2CE0100"
    Repeated: 19 times.
    Class: (System) Policy
    Random Fatal error message on C:\Program Files\Microsoft\OnlineManagement\Logs\PolicyAgent.log found from one Windows 8.1 client:
    2015-02-21 08:49:20:704 2852 1ab0 FATAL: DocumentProvider::IndicateToConsumer/pp->ProcessPolicies(NULL, NULL, NULL, NULL) failed with error 0x800704d5.
    That said, we are not facing any specific problem but we would like to find symptom of this repeating error message on Intune Portal . We would appreciate to get any thoughts about this case.
    Br.
    Jukka

    Hi Jukka,
    Mobile policy doesn't apply to clients using the Full Client download.  Please open a support case so the team can assist in further troubleshooting.
    Thanks,
    Jon L. - MSFT - This posting is provided "AS IS" with no warranties and confers no rights.

  • I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I d

    I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I did. Then another message pops ups and asked for rebuilding the Thumbnails. So I clicked rebuild. Next it asked me to do one of three things(I can't remember all of them) so I chose the last one which is to download a photo to iPhoto. Now I only have that photo I downloaded in iPhoto file but not the rest of my pictures. The iPhoto library which is stored in my EHD shows it has 349GB but it only show one thumbnail of the last picture I downloaded after the rebuild process. What can I do to recover the rest of the file?
    Thanks for your help.
    George Kyaw
    <Email Edited by Host>

    I recently upgraded to Yosemite. Yesterday when I opened up the iPhoto (which I have it in my external drive due to the size of file) I get the message that it is not compatible with the new system(or something like that) and ask me to upgrade so I did. Then another message pops ups and asked for rebuilding the Thumbnails. So I clicked rebuild. Next it asked me to do one of three things(I can't remember all of them) so I chose the last one which is to download a photo to iPhoto. Now I only have that photo I downloaded in iPhoto file but not the rest of my pictures. The iPhoto library which is stored in my EHD shows it has 349GB but it only show one thumbnail of the last picture I downloaded after the rebuild process. What can I do to recover the rest of the file?
    Thanks for your help.
    George Kyaw
    <Email Edited by Host>

  • Can i have two internet connections connected to two airport extremes separately without disturbing the home sharing option.

    can i have two internet connections connected to two airport extremes separately without disturbing the home sharing option. i want to have both the airport extremes to use a single imac for streaming music or video to my apple tv's at different places where one apple tv is in the range of one airport extreme.it's not a problem if both airport extremes have different wifi id's with separate internet.The imac which i use for streaming the music and videos is only in the range of only one airport extreme.is it possible if i can stream music or videos to my apple tv which is not in the range of same airport extreme which i use for imac but in the range of other airport extreme.
    Finally what i need is i want to use two internet networks as my highest possible internet bandwidth is about 1mbps.and i know that i cant mix both the networks and make it as 2mbps.

    Yes, that is possible. Please check out the following Apple Support article for details on how.

  • Can I use an Airport Extreme Base Station from the USA in Europe ?

    A friend of mine gave me an Airport Extreme Base Station from the USA to Germany. When I hook it up to my PB by ethernet cable the Computer can't find the Base Station at all. If I use my Sonnett Aria Extreme PCI card it finds the station but in the pop-up menu asking in which country I want to use the airport station it only offers North and South American countries. How do I go from here and why is my PB not finding the station when I'm using cables ? Has it something to do with different models for different countries ? Any idea ? Thanx

    Here you go ...
    Changing the Radio Channel on the AEBSn
    Either connect to the AEBSn's wireless network, or temporarily connect your computer directly (using an Ethernet cable) to one of the LAN ports of the AEBSn, and then, using the AirPort Utility in Manual Setup, check these settings:
    AirPort - Wireless
    o Channel: <Use Automatic or select a preferred channel>

  • My iPhone 5S is using 2.5GBs of storage for the camera roll.  I deleted all but 190 photos and this did not change.  My other devices cannot backup to iCloud due to the volume on my iPhone.  Any ideas?

    My iPhone 5S is using 2.5GBs of storage for the camera roll.  I deleted all but 190 photos and this did not change.  My other devices cannot backup to iCloud due to the volume on my iPhone.  Any ideas?

    Try turning off the Camera Roll option in Settings>iCloud>Backup & Storage>Manage Storage>Your device. Then turn it back on again.
    Cheers,
    GB

  • HT1766 I had a new handset delivered today due to my old one being damaged. As I went to restore from iCloud backup it is telling me I can't due to the handset not having iOS 7.1. How can resolve this issue?

    I had a new handset delivered today due to my old one being damaged. As I went to restore from iCloud backup it is telling me I can't due to the handset not having iOS 7.1. How can I resolve this issue?
    Could I select 'Set up as New IPhone' and then update to iOS 7.1 and then proceed to restore the phone from my most recent iCloud  backup ?
    Any help with this issue is greatly appreciated.

    Hi again razmee209!
    It has been updating since your last message and it says there's another 6 hours to go, does this sound right or is there a possibility I've been sent a re-con and the update will slow down my new handset considerably?!

  • Muse can't be 100% Responsive due to the Edge Reflow ?

    Hi ,
    I wanted Muse to be responsive from the first time i used it. But then i came to know about Edge Reflow and how it is used to create responsive experience and all that......
    I was wondering with so many updates and changes to Muse and so so so so many requests from the users of Muse , The Muse hasn't been 100% responsive. Is it just me or is it due to the
    fact that Adobe Edge Reflow also happen to be in the Adobe family and due to Reflow......Muse cannot be responsive willingly by the Team. I mean there must be different Teams for Reflow and Muse and both of them couldn't get along and all that. But come on........Everyone knows Muse is just so powerful and Easy to use and it would be great if could also create responsive experience which currently right now Reflow has been assigned to do.
    If Muse is not being developed to be Responsive just due to Reflow , Then i request that , You can just end Reflow and its project. Just add all of those features in Muse. The Whole Adobe Users World wants this to happen. The Designers want this to happen. No one would care if Reflow is gone and Muse takes its responsiveness.
    Everyone wants a powerful Muse.
    Thank you,
    By AdobeKAS

    Hi,
    Download and run the stand-alone battery test utility found on the link below.
    http://h20239.www2.hp.com/techcenter/battery/battery_ts.htm
    Post back with the results.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for