Re: Thread behavior in 7.8.3

2015-01-21 Thread Bas van Dijk
Hi Michael, Are you already using usb-1.3.0.0? If not, could you upgrade and test again? That release fixed the deadlock that Ben and Carter where talking about. Good luck, Bas ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: Thread behavior in 7.8.3

2015-01-21 Thread Michael Jones
Bas, I have not upgraded, mainly because my problems manifest without enabling USB. However, I think I can upgrade in a few days and move forward. Are you using ghc 7.8.10 these days or something older? Mike On Jan 21, 2015, at 12:52 PM, Bas van Dijk v.dijk@gmail.com wrote: Hi Michael,

Re: Thread behavior in 7.8.3

2015-01-21 Thread Michael Jones
Bas, I checked my cabal file and I was already using 1.3.0.0. Mike On Jan 21, 2015, at 12:52 PM, Bas van Dijk v.dijk@gmail.com wrote: Hi Michael, Are you already using usb-1.3.0.0? If not, could you upgrade and test again? That release fixed the deadlock that Ben and Carter where

Re: Thread behavior in 7.8.3

2015-01-21 Thread Simon Marlow
had with ghc-7.8 (7.6 too, but it's worse on ghc-7.8 for some reason), involving possible misbehavior of the thread scheduler. On Wed, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X

Re: Thread behavior in 7.8.3

2015-01-21 Thread Carter Schonwald
-7.8 for some reason), involving possible misbehavior of the thread scheduler. On Wed, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my

Re: Thread behavior in 7.8.3

2015-01-21 Thread Michael Jones
, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots

Re: Thread behavior in 7.8.3

2015-01-20 Thread Michael Jones
reason), involving possible misbehavior of the thread scheduler. On Wed, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves

Re: Thread behavior in 7.8.3

2015-01-20 Thread Simon Marlow
Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends

Re: Thread behavior in 7.8.3

2015-01-20 Thread Michael Jones
, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread

Re: Thread behavior in 7.8.3

2015-01-20 Thread Carter Schonwald
-7.8 for some reason), involving possible misbehavior of the thread scheduler. On Wed, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my

Re: Thread behavior in 7.8.3

2015-01-19 Thread Simon Marlow
at 2:18 PM, Michael Jones m...@proclivis.com mailto:m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data

Re: Thread behavior in 7.8.3

2015-01-18 Thread Michael Jones
Donn, True, but in that case I was using a driver for the Aardvark, and my current two test cases use: A) DC1613A from LTC B) /dev/i2c driver with FFI wrapper I wrote Case A uses the haskell usb package and libusb. I suppose SIGVALRM could be in used in the libusb driver. I know for sure it

Re: Thread behavior in 7.8.3

2015-01-17 Thread Michael Jones
a problem very similar to one that we had with ghc-7.8 (7.6 too, but it's worse on ghc-7.8 for some reason), involving possible misbehavior of the thread scheduler. On Wed, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3

Re: Thread behavior in 7.8.3

2015-01-17 Thread Donn Cave
Quoth Michael Jones m...@proclivis.com, ... 5) What does -V0 do that makes a problem program run? Well, there's that SIGVTALRM barrage, you may remember we went over that mid-August. I expect there are other effects. Donn ___

Re: Thread behavior in 7.8.3

2015-01-13 Thread Ben Gamari
Michael Jones m...@proclivis.com writes: Sorry I am reviving an old problem, but it has resurfaced, such that one system behaves different than another. [snip] 1) Does ghc 7.8.4 have any improvements that might pertain to these kinds of scheduling/thread problems? 2) Is there anything

Re: Thread behavior in 7.8.3

2015-01-13 Thread Michael Jones
Ben, Interesting. In this case, I can duplicate the problem when not using USB (USB to i2c dongle) by using /dev/i2c_n, and when I do use USB, in some cases the USB is working (can see i2c on scope), but the GUI is hung. So I believe this is not causing the problem. Thanks, Mike On Jan 13,

Re: Thread behavior in 7.8.3

2015-01-12 Thread Michael Jones
at 2:18 PM, Michael Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over a network

RE: Thread behavior in 7.8.3

2014-10-30 Thread Simon Peyton Jones
...@haskell.org] On Behalf Of Edward Z. Yang | Sent: 30 October 2014 00:41 | To: John Lato | Cc: GHC Users List | Subject: Re: Thread behavior in 7.8.3 | | Yes, that's right. | | I brought it up because you mentioned that there might still be | occasional delays, and those might be caused

Re: Thread behavior in 7.8.3

2014-10-30 Thread Michael Jones
29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over

Re: Thread behavior in 7.8.3

2014-10-30 Thread John Lato
Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over a network (depends

Thread behavior in 7.8.3

2014-10-29 Thread Michael Jones
I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over a network (depends on settings), a thread doing usb bulk writes

Re: Thread behavior in 7.8.3

2014-10-29 Thread Ben Gamari
Michael Jones m...@proclivis.com writes: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over a network (depends

Re: Thread behavior in 7.8.3

2014-10-29 Thread Michael Jones
bgamari.f...@gmail.com wrote: Michael Jones m...@proclivis.com writes: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over

Re: Thread behavior in 7.8.3

2014-10-29 Thread Ben Gamari
Michael Jones m...@proclivis.com writes: Ben, I am using Bas van Dijk’s usb, and I am past the -threading issue by using the latest commit. Excellent; I hadn't noticed the proclivis in your email address I don’t have any easy way of making comparisons between 7.6 and 7.8 productivity, but

Re: Thread behavior in 7.8.3

2014-10-29 Thread John Lato
, 2014 at 2:18 PM, Michael Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over

Re: Thread behavior in 7.8.3

2014-10-29 Thread Michael Jones
...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over a network (depends on settings), a thread

Re: Thread behavior in 7.8.3

2014-10-29 Thread John Lato
-7.8 for some reason), involving possible misbehavior of the thread scheduler. On Wed, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have

Re: Thread behavior in 7.8.3

2014-10-29 Thread Edward Z. Yang
, Michael Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data with wxhaskell or sends it over a network (depends

Re: Thread behavior in 7.8.3

2014-10-29 Thread Edward Z. Yang
. On Wed, Oct 29, 2014 at 2:18 PM, Michael Jones m...@proclivis.com wrote: I have a general question about thread behavior in 7.8.3 vs 7.6.X I moved from 7.6 to 7.8 and my application behaves very differently. I have three threads, an application thread that plots data