X-Spam-Check-By: sourceware.org Date: Sat, 11 Mar 2006 13:16:53 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: select() too slow Message-ID: <20060311181653.GA10054@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <1753CE61-D772-46F7-8393-84E419E49307 AT ptnix DOT com> <4412EF74 DOT 1070500 AT byu DOT net> <890F74C6-8E51-405F-86CC-551170A2EA70 AT honeynet-pt DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <890F74C6-8E51-405F-86CC-551170A2EA70@honeynet-pt.org> User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sat, Mar 11, 2006 at 06:04:37PM +0000, Pedro Inacio wrote: >On 2006/03/11, at 15:40, Eric Blake wrote: > >> >>I'm afraid that this is not a very good bug report, as you have not >>attempted to describe WHAT is too slow, and have not provided a simple >>test case that compiles out of the box, with timing numbers on the >>test >>case compared between Linux and Cygwin. Cygwin is only as fast as the >>underlying Windows system calls permit it to be. Also, cygwin is open >>source. Go look at the source code to select() and you will see >>that it >>is very complex, since Windows does not provide good hooks for an >>efficient implementation. If you would like it to be faster, then >>consider writing a patch to cygwin that can speed it up. > >first of all this is not a bug report, but just trying to understand >what might be the problem. If I knew what the problem is I was not >asking if there is any known issue, a fix, or something. I've read the >archives before posting and there are some guys with similar problems >but no answers. But we don't know what the actual problem *is*. What does "too slow" mean? select takes an extra twenty milliseconds under Cygwin? select doesn't respond within 24 hours? You are apparently a programmer because you know about select(). Think of this from the point of view of someone reporting a problem with your software. Wouldn't you ask them for more details if the bug report was merely "Your program is slow?" >I know that the select() function on windows is quite different It is different to the point of being nonexistent -- except for sockets. >and not very handy. One thing is weird for sure, similar code works >just fine on Unix but is not very performante on Windows. Whether it is a bug report or not, you haven't given enough details for anyone to comprehend what you are talking about. Your email seems to have been sent with an understanding that everyone will just automatically understand what you're talking about. That is not the case. You can't take shortcuts to describing a problem if you truly want help. You haven't provided enough information to even provide a WAG. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/