Re: All threads in app periodically blocked

2016-05-23 Thread pscott
On 5/23/2016 1:56 PM, Fritz Anderson wrote: On 23 May 2016, at 1:37 PM, Seth Willits wrote: I'm telling you guys I used every skill I could think of, staring at zillions of system calls in traces etc, and in the end all I needed was a little luck and it was all due to a

Re: All threads in app periodically blocked

2016-05-23 Thread Seth Willits
Holy cow!! I figured out why process was halting every 150 ms. I happened to find the critical clue by chance today. I was trying Ken's suggestion of explicitly using NSActivity to avoid any potential app napping (which wasn't what was happening), and for only then did the application

Re: All threads in app periodically blocked

2016-05-23 Thread Seth Willits
> On May 22, 2016, at 12:44 PM, Quincey Morris > wrote: > > On May 22, 2016, at 10:48 , Seth Willits wrote: >> >> Can anyone think of what I should look for to figure out *why* they're >> blocked? > > Do these operations go on long

Re: All threads in app periodically blocked

2016-05-22 Thread Ken Thomases
On May 22, 2016, at 12:48 PM, Seth Willits wrote: > > I'm thoroughly confused and increasingly desperate. *All* of the threads in > my application periodically are blocked for 30-50 ms pretty regularly, about > every 150 ms. Whenever I read about symptoms like this, I

Re: All threads in app periodically blocked

2016-05-22 Thread Quincey Morris
On May 22, 2016, at 10:48 , Seth Willits wrote: > > Can anyone think of what I should look for to figure out *why* they're > blocked? Do these operations go on long enough that you can see the usage stabilize in Activity Monitor? If so, what are the user and system

Re: All threads in app periodically blocked

2016-05-22 Thread Seth Willits
OS X. It happens in all circumstances. -- Seth Willits > On May 22, 2016, at 10:59 AM, Alex Zavatone wrote: > > Mac, iOS? If iOS, device or sim? IPad? > > Try publishing and not running through Xcode. > > Sent from my iPhone > >> On May 22, 2016, at 12:48 PM, Seth Willits

Re: All threads in app periodically blocked

2016-05-22 Thread Alex Zavatone
Mac, iOS? If iOS, device or sim? IPad? Try publishing and not running through Xcode. Sent from my iPhone > On May 22, 2016, at 12:48 PM, Seth Willits wrote: > > I'm thoroughly confused and increasingly desperate. *All* of the threads in > my application periodically are

All threads in app periodically blocked

2016-05-22 Thread Seth Willits
I'm thoroughly confused and increasingly desperate. *All* of the threads in my application periodically are blocked for 30-50 ms pretty regularly, about every 150 ms. I'm processing a bunch of data via NSOperations running in a couple of "serial" (maxConcurrentOperationCount = 1)