Fifo blocking and performance issues

2012-10-02 Thread bob
We are continuing our long drawn out effort to port the SIMPL toolkit (http://www.icanprogram.com/simpl) to the Cygwin platform. For a long time we were unable to proceed due to issues with the fifo implementation under Cygwin. These issues have largely been addressed in more recent Cygwin

Re: Fifo blocking and performance issues

2012-10-02 Thread Christopher Faylor
On Tue, Oct 02, 2012 at 03:15:37PM -0400, bob wrote: >Any suggestions on how we can achieve a higher performance blocking read on a >Cygwin RDWR fifo? As always, if you can provide test cases of bugs we will endeavor to fix problems. cgf -- Problem reports: http://cygwin.com/problems.htm

Re: Fifo blocking and performance issues

2012-10-03 Thread Earnie Boyd
On Tue, Oct 2, 2012 at 3:15 PM, bob wrote: > While this hack works the performance under Cygwin is orders of > magnitude slower than the equivalent Linux performance. > > Any suggestions on how we can achieve a higher performance blocking read on a > Cygwin RDWR fifo? > You expect too much, it is

Re: Fifo blocking and performance issues

2012-10-03 Thread Christopher Faylor
On Wed, Oct 03, 2012 at 08:29:21AM -0400, Earnie Boyd wrote: >On Tue, Oct 2, 2012 at 3:15 PM, bob wrote: >>While this hack works the performance under Cygwin is orders of >>magnitude slower than the equivalent Linux performance. >> >>Any suggestions on how we can achieve a higher performance blocki

[PATCH] Re: Fifo blocking and performance issues

2012-10-02 Thread Gregory M. Turner
On 10/2/2012 1:19 PM, Christopher Faylor wrote: On Tue, Oct 02, 2012 at 03:15:37PM -0400, bob wrote: Any suggestions on how we can achieve a higher performance blocking read on a Cygwin RDWR fifo? As always, if you can provide test cases of bugs we will endeavor to fix problems. I didn't th

Re: [PATCH] Re: Fifo blocking and performance issues

2012-10-02 Thread Christopher Faylor
On Tue, Oct 02, 2012 at 01:45:08PM -0700, Gregory M. Turner wrote: >On 10/2/2012 1:19 PM, Christopher Faylor wrote: >> On Tue, Oct 02, 2012 at 03:15:37PM -0400, bob wrote: >>> Any suggestions on how we can achieve a higher performance blocking read on >>> a >>> Cygwin RDWR fifo? >> >> As always, i

Re: [PATCH] Re: Fifo blocking and performance issues

2012-10-03 Thread Gregory M. Turner
On 10/2/2012 5:55 PM, Christopher Faylor wrote: On Tue, Oct 02, 2012 at 01:45:08PM -0700, Gregory M. Turner wrote: On 10/2/2012 1:19 PM, Christopher Faylor wrote: On Tue, Oct 02, 2012 at 03:15:37PM -0400, bob wrote: Any suggestions on how we can achieve a higher performance blocking read on a

Re: [PATCH] Re: Fifo blocking and performance issues

2012-10-03 Thread Christopher Faylor
On Wed, Oct 03, 2012 at 02:58:55AM -0700, Gregory M. Turner wrote: >On 10/2/2012 5:55 PM, Christopher Faylor wrote: >>On Tue, Oct 02, 2012 at 01:45:08PM -0700, Gregory M. Turner wrote: >>>On 10/2/2012 1:19 PM, Christopher Faylor wrote: On Tue, Oct 02, 2012 at 03:15:37PM -0400, bob wrote: >

Re: [PATCH] Re: Fifo blocking and performance issues

2012-10-03 Thread Gregory M. Turner
On 10/3/2012 6:02 AM, Christopher Faylor wrote: On Wed, Oct 03, 2012 at 02:58:55AM -0700, Gregory M. Turner wrote: On 10/2/2012 5:55 PM, Christopher Faylor wrote: FYI, a quick scan seems to show that you've pretty much undone a lot of what I've recently added for fifos so I don't expect to real

Fifo blocking and performance issues - some test code snips

2012-10-03 Thread bob
I'm on the mailing list in digest mode, so this response may not get threaded correctly. Here is some basic test code which illustrates all the things I spoke about in my previous note. The Cygwin machine and the Linux machine are identical (I have a harddrive swap system).Notice that t

Fifo blocking and performance issues - some more code snips

2012-10-04 Thread bob
Forgot to mention in my last code snip post that the Linux code below is the "desired" behavior of the fifos to match the existing Linux code in the SIMPL toolkit. In this Linux code snip we open the receive end of the fifo as RDWR (without the O_NONBLOCK flag) and Linux conveniently allow

Re: Fifo blocking and performance issues - some more code snips

2012-10-04 Thread Christopher Faylor
On Thu, Oct 04, 2012 at 03:46:17PM -0400, bob wrote: >The astute reader might be asking why RDWR and not RDONLY. This astute reader is asking why you are starting a new thread every time. Please stick to one. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: h