X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 15 May 2008 13:06:08 -0400 From: Stephen David Subject: performance issue when calling function in cygwin1.dll To: cygwin AT cygwin DOT com Message-id: <20080515170608.GA12725@fiona> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hello, A while back I posted a problem with regard to performance issue with sshd and cygrunsrv: http://cygwin.com/ml/cygwin/2008-03/msg00306.html No luck, and re-starting my investigation. Larry's last suggestion (thank you, Larry) was to try running my service as a local user, not a domain user. However in this case it is not possible, as I'm running Windows Small Business Server 2003, which *must* be a domain controller and therefore all accounts are domain account (apparently). Is running as a domain user a known performance issue? I have some new information that might help: Since this problem happens even when running 'date', i compiled a version of date with debug symbols and ran it through gdb. Seems that the line of code that it ultimately hangs up on (for 7 seconds, at 100% cpu) is in gettime.c (line 36): ...snip... if (clock_gettime (CLOCK_REALTIME, ts) == 0) ...snip... Which it seems is exported from cygwin1.dll. Since this problem affects just about all programs (not just 'date'), i suspect the same is true in other cases --hangs up when callling anything in cygwin1.dll. Note that this doesn't happen in all cases -- only when logged in via ssh, or when cron is running something. probably something related to the context under which the parent process is running. Any ideas on how I can further troubleshoot, considering using a non-domain user is not an option? Regards, Steve -- 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/