Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-09-17 Thread Kyle Schwarz
On Fri, Aug 24, 2012 at 10:02 AM, Roger Pack wrote: >> Could it be that x264 or FFmpeg is improperly using the pthread >> library and that is what is actually causing this issue? > > This is possible, as I saw this recently > http://ffmpeg-users.933282.n4.nabble.com/Performance-issue-question-mayb

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-24 Thread Roger Pack
> Could it be that x264 or FFmpeg is improperly using the pthread > library and that is what is actually causing this issue? This is possible, as I saw this recently http://ffmpeg-users.933282.n4.nabble.com/Performance-issue-question-maybe-my-misunderstanding-td4652757.html which makes me wonder i

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-16 Thread Kyle Schwarz
Could it be that x264 or FFmpeg is improperly using the pthread library and that is what is actually causing this issue? If so, I can dig into the code of both and see how they use pthread. Also, I'm not sure if this issue presents itself in just x264 (not x264 in FFmpeg), but would it help if I

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-15 Thread Roger Pack
> This is often useful for profiling: > > http://www.codersnotes.com/sleepy/ I haven't gotten it to work with gcc 4.7.1 + dwarf stuff, but maybe others will have better luck, or can point me in the right direction? -r --

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-14 Thread Ray Donnelly
This is often useful for profiling: http://www.codersnotes.com/sleepy/ On Tue, Aug 14, 2012 at 2:26 AM, Kyle Schwarz wrote: > On 8/13/2012 8:31 PM, NightStrike wrote: >> On Wed, Aug 8, 2012 at 2:49 PM, Kyle wrote: >>> It's *very* slow. If you compare the speed to that of a older FFmpeg, >>> the

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-13 Thread Kyle Schwarz
On 8/13/2012 8:31 PM, NightStrike wrote: > On Wed, Aug 8, 2012 at 2:49 PM, Kyle wrote: >> It's *very* slow. If you compare the speed to that of a older FFmpeg, >> the debug build is practically unusable. > > I'm coming into this very late, and I probably can't be of much help, > but just a thought

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-13 Thread NightStrike
On Wed, Aug 8, 2012 at 2:49 PM, Kyle wrote: > It's *very* slow. If you compare the speed to that of a older FFmpeg, > the debug build is practically unusable. I'm coming into this very late, and I probably can't be of much help, but just a thought. Have you tried profiling ffmpeg to see where it

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-13 Thread NightStrike
On Mon, Aug 13, 2012 at 11:18 AM, Kyle Schwarz wrote: > On 8/8/2012 8:49 PM, Kyle wrote: >> On 8/7/2012 3:06 AM, Kai Tietz wrote: >>> 2012/8/7 Kyle Schwarz : On 8/6/2012 4:58 PM, Kai Tietz wrote: > I have attached a modified version of winpthread (uncomress it and > rename it back to

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-13 Thread Kyle Schwarz
On 8/8/2012 8:49 PM, Kyle wrote: > On 8/7/2012 3:06 AM, Kai Tietz wrote: >> 2012/8/7 Kyle Schwarz : >>> On 8/6/2012 4:58 PM, Kai Tietz wrote: I have attached a modified version of winpthread (uncomress it and rename it back to .dll). It would be great if you could test this variant

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-08 Thread Kyle
On 8/7/2012 3:06 AM, Kai Tietz wrote: > 2012/8/7 Kyle Schwarz : >> On 8/6/2012 4:58 PM, Kai Tietz wrote: >>> I have attached a modified version of winpthread (uncomress it and >>> rename it back to .dll). It would be great if you could test this >>> variant on your box, too. >> >> Thanks a lot for

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-07 Thread Roger Pack
> No, you don't need to recompile. Is the application really stucked, > or is it just very slow? Have you tested that it response on '?' key > stroke? As for me the encoding works - slowly - but it works. Ok I tried the latest .dll, same thing here (still shows pauses): Basically, you should s

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-07 Thread Kai Tietz
2012/8/7 Kyle Schwarz : > Hi Kai, > > On 8/6/2012 4:58 PM, Kai Tietz wrote: >> I have attached a modified version of winpthread (uncomress it and >> rename it back to .dll). It would be great if you could test this >> variant on your box, too. > > Thanks a lot for the modified libwinpthread-1.dll,

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kyle Schwarz
Hi Kai, On 8/6/2012 4:58 PM, Kai Tietz wrote: > I have attached a modified version of winpthread (uncomress it and > rename it back to .dll). It would be great if you could test this > variant on your box, too. Thanks a lot for the modified libwinpthread-1.dll, and the continued help. I copied

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kyle
On 8/6/2012 3:56 PM, Kai Tietz wrote: > 2012/8/6 Kyle : >> On 8/6/2012 1:59 PM, Kai Tietz wrote: >>> 2012/8/6 Kyle : On 8/4/2012 3:38 AM, Kai Tietz wrote: > 2012/8/4 Kyle Schwarz : >> On 7/27/2012 5:37 PM, Kai Tietz wrote: I have tried it, thanks for the patch! >>

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kai Tietz
2012/8/6 Kyle : > On 8/6/2012 1:59 PM, Kai Tietz wrote: >> 2012/8/6 Kyle : >>> On 8/4/2012 3:38 AM, Kai Tietz wrote: 2012/8/4 Kyle Schwarz : > On 7/27/2012 5:37 PM, Kai Tietz wrote: >>> I have tried it, thanks for the patch! >>> >>> Unfortunately it appears that (ffmpeg + libx2

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kyle
On 8/6/2012 1:59 PM, Kai Tietz wrote: > 2012/8/6 Kyle : >> On 8/4/2012 3:38 AM, Kai Tietz wrote: >>> 2012/8/4 Kyle Schwarz : On 7/27/2012 5:37 PM, Kai Tietz wrote: >> I have tried it, thanks for the patch! >> >> Unfortunately it appears that (ffmpeg + libx264 using it at least) >>>

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kai Tietz
2012/8/6 Kyle : > On 8/6/2012 2:45 PM, Kai Tietz wrote: >> Another question I have. Which ff-tool is blocking for you? I tried >> ffplay, which didn't dead-locked on my Windows-box (i7 Windows 7 >> 64-bit). Could you provide me with example film/stream, so that I am >> able to reproduce your dea

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kyle
On 8/6/2012 2:45 PM, Kai Tietz wrote: > Another question I have. Which ff-tool is blocking for you? I tried > ffplay, which didn't dead-locked on my Windows-box (i7 Windows 7 > 64-bit). Could you provide me with example film/stream, so that I am > able to reproduce your dead-lock? Using ffmpeg.

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kai Tietz
Another question I have. Which ff-tool is blocking for you? I tried ffplay, which didn't dead-locked on my Windows-box (i7 Windows 7 64-bit). Could you provide me with example film/stream, so that I am able to reproduce your dead-lock? Thanks in advance, Kai ---

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kai Tietz
2012/8/6 Kyle : > On 8/4/2012 3:38 AM, Kai Tietz wrote: >> 2012/8/4 Kyle Schwarz : >>> On 7/27/2012 5:37 PM, Kai Tietz wrote: > I have tried it, thanks for the patch! > > Unfortunately it appears that (ffmpeg + libx264 using it at least) > appears to deadlock (?) after a few seconds

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-06 Thread Kyle
On 8/4/2012 3:38 AM, Kai Tietz wrote: > 2012/8/4 Kyle Schwarz : >> On 7/27/2012 5:37 PM, Kai Tietz wrote: I have tried it, thanks for the patch! Unfortunately it appears that (ffmpeg + libx264 using it at least) appears to deadlock (?) after a few seconds. Here's an ex

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-04 Thread Kai Tietz
2012/8/4 Kyle Schwarz : > On 7/27/2012 5:37 PM, Kai Tietz wrote: >> > I have tried it, thanks for the patch! >>> >>> Unfortunately it appears that (ffmpeg + libx264 using it at least) >>> appears to deadlock (?) after a few seconds. >>> >>> Here's an example trace: >>> >>> Thanks for your help in t

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-08-03 Thread Kyle Schwarz
On 7/27/2012 5:37 PM, Kai Tietz wrote: > > I have tried it, thanks for the patch! >> >> Unfortunately it appears that (ffmpeg + libx264 using it at least) >> appears to deadlock (?) after a few seconds. >> >> Here's an example trace: >> >> Thanks for your help in this! >> -roger- > > Hmm, it seems

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-27 Thread Kai Tietz
Hi Roger, 2012/7/27 Roger Pack : >> So, I made spinlocks "fair" by revision 5274. This means that no >> threads get *lost* on scheduling, if lock is requested. >> >> Please give this version a try. > > I have tried it, thanks for the patch! > > Unfortunately it appears that (ffmpeg + libx264 usin

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-27 Thread Kai Tietz
2012/7/27 K. Frank : > Hi Kai! > > On Fri, Jul 27, 2012 at 4:09 PM, Kai Tietz wrote: >> So, I made spinlocks "fair" by revision 5274. This means that no >> threads get *lost* on scheduling, if lock is requested. > > This is purely a matter of multi-threading curiosity on my part. > > How much add

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-27 Thread Roger Pack
> So, I made spinlocks "fair" by revision 5274. This means that no > threads get *lost* on scheduling, if lock is requested. > > Please give this version a try. I have tried it, thanks for the patch! Unfortunately it appears that (ffmpeg + libx264 using it at least) appears to deadlock (?) after

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-27 Thread K. Frank
Hi Kai! On Fri, Jul 27, 2012 at 4:09 PM, Kai Tietz wrote: > So, I made spinlocks "fair" by revision 5274. This means that no > threads get *lost* on scheduling, if lock is requested. This is purely a matter of multi-threading curiosity on my part. How much additional cost (if any) do you think

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-27 Thread Kai Tietz
So, I made spinlocks "fair" by revision 5274. This means that no threads get *lost* on scheduling, if lock is requested. Please give this version a try. Thanks in advance, Kai -- Live Security Virtual Conference Exclusi

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-26 Thread Ruben Van Boxem
2012/7/26 Roger Pack > > Hmm, by looking at this I see that the issue might be a > > raise-condition about spin-locking. Means too much threads try to get > > spinlock-lock repeatively. So that one (or more) waiting threads > > simply don't get a chance to get the lock. I saw that pthread-win3

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-26 Thread Roger Pack
> Hmm, by looking at this I see that the issue might be a > raise-condition about spin-locking. Means too much threads try to get > spinlock-lock repeatively. So that one (or more) waiting threads > simply don't get a chance to get the lock. I saw that pthread-win32 > uses here for spin-locking

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-25 Thread Kai Tietz
Thanks for the patch, I will take a look. Hmm, by looking at this I see that the issue might be a raise-condition about spin-locking. Means too much threads try to get spinlock-lock repeatively. So that one (or more) waiting threads simply don't get a chance to get the lock. I saw that pthread-

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-25 Thread Roger Pack
>>> Well, the issue seems to be that a mutex, which is already up to be >>> destroyed, is still waited to return. I allowed for this that a mutex >>> can be destroyed even if another thread waits for lock for it. You >>> may want to test revision 5250. >> >> Thank you I will try it. > > Had you

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-25 Thread Kai Tietz
Hello Roger, 2012/7/24 Roger Pack : >> Well, the issue seems to be that a mutex, which is already up to be >> destroyed, is still waited to return. I allowed for this that a mutex >> can be destroyed even if another thread waits for lock for it. You >> may want to test revision 5250. > > Thank

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-23 Thread Roger Pack
> Well, the issue seems to be that a mutex, which is already up to be > destroyed, is still waited to return. I allowed for this that a mutex > can be destroyed even if another thread waits for lock for it. You > may want to test revision 5250. Thank you I will try it. >Which edition MinGW64 G

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-22 Thread xunxun
Hi, Kai 于 2012/7/23 4:14, Kai Tietz 写道: > Hello Roger, > > 2012/7/22 Roger Pack : >> Greetings fellow program(mers). >> >> A "situation" occurred the other day where, using (cross compiled) >> ffmpeg+libx264 with mingw-w64, "--enable-pthreads" and the mingw-w64 >> pthread library, some oddness wou

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-22 Thread Kai Tietz
Hello Roger, 2012/7/22 Roger Pack : > Greetings fellow program(mers). > > A "situation" occurred the other day where, using (cross compiled) > ffmpeg+libx264 with mingw-w64, "--enable-pthreads" and the mingw-w64 > pthread library, some oddness would result, like the app would "hang" > eating up 10

Re: [Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-21 Thread xunxun
于 2012/7/22 13:12, Roger Pack 写道: > Greetings fellow program(mers). > > A "situation" occurred the other day where, using (cross compiled) > ffmpeg+libx264 with mingw-w64, "--enable-pthreads" and the mingw-w64 > pthread library, some oddness would result, like the app would "hang" > eating up 100%

[Mingw-w64-public] apparent "hang" using the experimental pthread library

2012-07-21 Thread Roger Pack
Greetings fellow program(mers). A "situation" occurred the other day where, using (cross compiled) ffmpeg+libx264 with mingw-w64, "--enable-pthreads" and the mingw-w64 pthread library, some oddness would result, like the app would "hang" eating up 100% cpu, seemingly doing nothing useful. I was t