Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Reply-To: Cygwin List Message-Id: <6.1.0.6.0.20040622234112.032a1838@pop.prospeed.net> X-Sender: Date: Tue, 22 Jun 2004 23:47:05 -0400 To: cygwin AT cygwin DOT com From: Larry Hall Subject: Re: higher-level IO very slow with cygwin1.dll 5.10 (due to set_flags?) In-Reply-To: <20040623034247.GD21621@trixie.casa.cgf.cx> References: <1087960457 DOT 1fmsxb98l18g AT webmail DOT express56 DOT com> <20040623034247 DOT GD21621 AT trixie DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 11:42 PM 6/22/2004, you wrote >On Tue, Jun 22, 2004 at 11:14:17PM -0400, sevenrider AT express56 DOT com wrote: >>I am just asking again about this problem in the hopes that someone >>might have anything to suggest. It seems that fopen is 10 to 20 times >>slower than open on my I/O operations due to large delays in executing >>a system call "set_flags". I will have to rewrite all my code and >>abandon most of the text utility programs like "grep" and "sort" unless >>I can figure out what is going on. > >Seems like if you are going to go to the effort of rewriting everything >you might first want to debug cygwin and find out where the time is >going... Dag-namit! CGF beat me to the punch. :-) I would only add that there are two "set_flag" routines. One in path.cc, the other in fhandler.h/fhandler.cc. They don't do allot. Just setting flags really (who would have guessed? ;-) ) and no one has fiddled with these in the 1.5.10 time-frame. It's hard to imagine that either of these routines are what's responsible for all the time you see lost. CGF is right (who would have guessed! ;-) ). Debugging the internals a little bit would be time well spent, especially given the alternative you describe. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/