public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Marco Atzeri <marco.atzeri@gmail.com>, cygwin@cygwin.com
Subject: Re: Running tasklist /m in cygwin hangs
Date: Sat, 18 Apr 2015 14:50:00 -0000	[thread overview]
Message-ID: <311297834.20150418174511@yandex.ru> (raw)
In-Reply-To: <5531DDE7.2050007@gmail.com>

Greetings, Marco Atzeri!

>>>> I can confirm it still hangs for me with 1.7.35. I am using the 32 bit (i686) Cygwin which is the only difference from Andrey's.
>>>>
>>
>>> on  $ uname -vrsm
>>> CYGWIN_NT-6.1-WOW 1.7.35(0.287/5/3) 2015-03-04 12:07 i686
>>
>>> It is only a bit slow (both mintty and console)
>>
>>> $ time tasklist /m normaliz.DLL
>>> real    1m25.565s
>>
>> Oh... wow...
>>
>> real    0m0.088s
>>
>> [x].[x]
>>
>>> user    0m0.015s
>>> sys     0m0.046s
>>
>>> It seems some type of timeout in the interaction of this
>>> windows utility and cygwin
>>
>> Was it native console or pty ?
>>

> on 32bit cygwin on 64bit W7
> cmd+bash and mintty+bash have the same long time.

> As the effect is around 10 sec per line and "tasklist.exe" is looking
> which process is using a certain dll, I presume that there is a negative
> interactions (timeout, double sleep ?).

> cmd alone or 64 bit cygwin has no delay effect.

> However on 64bit you can compare

True.

> /cygdrive/c/windows/SysWOW64/tasklist.exe /m normaliz.dll
> /cygdrive/c/windows/System32/tasklist.exe /m normaliz.dll

> timing ;-)

It isn't as slow as yours, but definitely slow.

$ time /c/windows/System32/tasklist.exe /m normaliz.dll | iconv -f CP866
  ...skip...
real    0m0.093s
user    0m0.015s
sys     0m0.030s

$ time /c/windows/SysWOW64/tasklist.exe /m normaliz.dll | iconv -f CP866
  ...skip...
real    0m15.560s
user    0m0.000s
sys     0m0.045s


-- 
With best regards,
Andrey Repin
Saturday, April 18, 2015 17:42:41

Sorry for my terrible english...


--
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-04-18 14:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DUB123-W4750825E1B5751A9A8C87DB1E50@phx.gbl>
2015-04-15 17:52 ` Saurabh T
2015-04-15 19:20   ` Andrey Repin
2015-04-17 15:23     ` Saurabh T
2015-04-17 16:06       ` Marco Atzeri
2015-04-17 23:20         ` Andrey Repin
2015-04-18  4:30           ` Marco Atzeri
2015-04-18 14:50             ` Andrey Repin [this message]
2015-04-18  2:12   ` Bryan Berns

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=311297834.20150418174511@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=marco.atzeri@gmail.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).