• 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: Bizarre x86 segment layout problem causing select() slowdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bizarre x86 segment layout problem causing select() slowdown


  • Subject: Re: Bizarre x86 segment layout problem causing select() slowdown
  • From: John Daniel <email@hidden>
  • Date: Mon, 5 Feb 2007 21:20:02 -0600

As soon as I sent this I had an epiphany. You may not have context switch issues at all. Whatever you are doing with segment sizes may be causing you to go into or out of actual parallel execution of your code. It is the same type of issue, just lots more complicated and harder to debug.

One thing you might try instead of Shark is Thread Viewer. It is still a sampler-type tool, but you can pause your program and see where each thread is and has been (relative to the sampling, of course). I have used Thread Viewer and have gotten meaningful results from it.

John

On Feb 5, 2007, at 8:57 PM, John Daniel wrote:

I think that changing the size of segments, adding no-ops, and adding an empty function is changing the behavior of your problem. It is changing the point at which a context switch occurs. Do you have a clear handle on which specific parts of code can be run by multiple threads? Remember, a dual-core x86 processor is going to have radically different behavior than a PPC in these spots. I think that is where you need to look.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Bizarre x86 segment layout problem causing select() slowdown
      • From: Shawn Erickson <email@hidden>
References: 
 >Bizarre x86 segment layout problem causing select() slowdown (From: Dave Hayden <email@hidden>)
 >Re: Bizarre x86 segment layout problem causing select() slowdown (From: Eric Albert <email@hidden>)
 >Re: Bizarre x86 segment layout problem causing select() slowdown (From: Dave Hayden <email@hidden>)
 >Re: Bizarre x86 segment layout problem causing select() slowdown (From: John Daniel <email@hidden>)
 >Re: Bizarre x86 segment layout problem causing select() slowdown (From: Dave Hayden <email@hidden>)
 >Re: Bizarre x86 segment layout problem causing select() slowdown (From: John Daniel <email@hidden>)
 >Re: Bizarre x86 segment layout problem causing select() slowdown (From: Dave Hayden <email@hidden>)
 >Re: Bizarre x86 segment layout problem causing select() slowdown (From: John Daniel <email@hidden>)

  • Prev by Date: Re: Bizarre x86 segment layout problem causing select() slowdown
  • Next by Date: Re: Bizarre x86 segment layout problem causing select() slowdown
  • Previous by thread: Re: Bizarre x86 segment layout problem causing select() slowdown
  • Next by thread: Re: Bizarre x86 segment layout problem causing select() slowdown
  • Index(es):
    • Date
    • Thread