delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/15/13:07:31

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 <steve AT davidnj DOT net>
Subject: performance issue when calling function in cygwin1.dll
To: cygwin AT cygwin DOT com
Message-id: <20080515170608.GA12725@fiona>
MIME-version: 1.0
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019