public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: mku <matthias@kuntzem.de>
To: cygwin@cygwin.com
Subject: Re: commands spends time in cygheap_user
Date: Wed, 12 Aug 2015 11:59:00 -0000	[thread overview]
Message-ID: <1439380764318-120458.post@n5.nabble.com> (raw)
In-Reply-To: <20150810160150.GD13029@calimero.vinschen.de>

I compared strace output between the 2.2 and 1.7.28 installation and it
seems, that loading the dll files before the cygheap_user log entry is
responsible for the time lag. 
If I look to the strace output from 1.7.28 the following lines (without the
dll loads) are shown:
+++ 8< ------
    31    9709 [main] ls 64316 pinfo_init: Set nice to 0
   19    9728 [main] ls 64316 pinfo_init: pid 64316, pgid 64316,
process_state 0x41
   17    9745 [main] ls 64316 App version:  1007.10, api: 0.259
   19    9764 [main] ls 64316 DLL version:  1007.28, api: 0.271
   17    9781 [main] ls 64316 DLL build:    2014-02-09 21:06
   19    9800 [main] ls 64316 dtable::extend: size 32, fds 0x612AD6C4
  319   10119 [main] ls 64316 pwdgrp::load: \etc\passwd curr_lines 8
   30   10149 [main] ls 64316 pwdgrp::load: \etc\passwd load succeeded
  323   10472 [main] ls 64316 pwdgrp::load: \etc\group curr_lines 58
   35   10507 [main] ls 64316 pwdgrp::load: \etc\group load succeeded
   26   10533 [main] ls 64316 cygheap_user::ontherange: what 2, pw
0x8003A770
   25   10558 [main] ls 64316 cygheap_user::ontherange: HOME is already in
the environment /home/
  120   10678 [main] ls 64316 internal_setlocale: Cygwin charset changed
from UTF-8 to ISO-8859-1
   62   10740 [main] ls 64316 build_argv: argv[0] = 'ls'
   19   10759 [main] ls 64316 build_argv: argv[1] = '-lrt'
--- 8< -------
Yes, this Version has nsswitch.conf in the default configuration (with db
entries) so you see the pwdgrp log entries but it is very fast. 
Perhaps this helps in finding the problem.



--
View this message in context: http://cygwin.1069669.n5.nabble.com/commands-spends-time-in-cygheap-user-tp119766p120458.html
Sent from the Cygwin list mailing list archive at Nabble.com.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2015-08-12 11:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-17  6:26 pen
2015-08-07  8:48 ` mku
2015-08-07  9:06   ` Corinna Vinschen
2015-08-07 19:51     ` mku
2015-08-10  8:40       ` Corinna Vinschen
2015-08-10 12:00         ` mku
2015-08-10 16:01           ` Corinna Vinschen
2015-08-12 11:59             ` mku [this message]
2015-08-12 14:47               ` Corinna Vinschen
2015-08-14 13:49                 ` mku
2015-08-14 15:48                   ` Corinna Vinschen
2015-08-14 20:20                     ` Corinna Vinschen
2015-08-15 11:54                       ` Corinna Vinschen
2015-08-16 12:50                         ` mku
2015-08-17  8:07                           ` Corinna Vinschen
2015-08-17  8:13                             ` Corinna Vinschen
2015-08-17 10:10                               ` mku
2015-08-17 20:55                               ` Corinna Vinschen
2015-08-17 21:04                                 ` Corinna Vinschen
2015-08-18  8:17                                   ` mku
2015-08-18  8:30                                     ` Corinna Vinschen
2015-08-14 13:49             ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439380764318-120458.post@n5.nabble.com \
    --to=matthias@kuntzem.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).