Re: Running tasklist /m in cygwin hangs
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 >>> real1m25.565s >> >> Oh... wow... >> >> real0m0.088s >> >> [x].[x] >> >>> user0m0.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... real0m0.093s user0m0.015s sys 0m0.030s $ time /c/windows/SysWOW64/tasklist.exe /m normaliz.dll | iconv -f CP866 ...skip... real0m15.560s user0m0.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
Re: Running tasklist /m in cygwin hangs
On 4/18/2015 1:05 AM, Andrey Repin wrote: 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 Image Name PID Modules = ZenworksWindowsService.ex 1424 normaliz.dll AppleMobileDeviceService. 1616 normaliz.dll explorer.exe 2520 normaliz.dll PanGPS.exe3276 normaliz.dll PanGPA.exe3420 normaliz.dll iTunesHelper.exe 3544 normaliz.dll Smc.exe 5008 normaliz.dll real1m25.565s Oh... wow... real0m0.088s [x].[x] user0m0.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 /cygdrive/c/windows/SysWOW64/tasklist.exe /m normaliz.dll /cygdrive/c/windows/System32/tasklist.exe /m normaliz.dll timing ;-) Regards Marco -- 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
Re: Running tasklist /m in cygwin hangs
On Wed, Apr 15, 2015 at 1:52 PM, Saurabh T wrote: > Hi, > Running > "tasklist /m file.dll" hangs in Cygwin even though it works perfectly > fine in the cmd window. Is there any reason for this? I am using a > somewhat older cygwin (1.7.25) on a Windows 7 box, and do not want to > upgrade unless newer cygwin doesnt show the problem. Thank you. > -- > 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 > It doesn't hang for me, but it is significantly slower. I'm running the latest development release. Tasklist appears to be WMI heavy. I ran Process Monitor and it appears that when running tasklist /m under bash, WMI is significantly more active. WMI actually opens tzres.dll (Time Zone Resources) about 150,000 times vice a mere 800 times when executing through a standard command prompt. Moreover, WMI really doesn't appear to be doing much of anything with tzres.dll... just open/close/open/close/open/close. Very curious indeed. -- 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
Re: Running tasklist /m in cygwin hangs
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 > Image Name PID Modules > = > > ZenworksWindowsService.ex 1424 normaliz.dll > AppleMobileDeviceService. 1616 normaliz.dll > explorer.exe 2520 normaliz.dll > PanGPS.exe3276 normaliz.dll > PanGPA.exe3420 normaliz.dll > iTunesHelper.exe 3544 normaliz.dll > Smc.exe 5008 normaliz.dll > real1m25.565s Oh... wow... real0m0.088s [x].[x] > user0m0.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 ? -- With best regards, Andrey Repin Saturday, April 18, 2015 02:02:39 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
Re: Running tasklist /m in cygwin hangs
On 4/17/2015 5:23 PM, Saurabh T wrote: 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 Image Name PID Modules = ZenworksWindowsService.ex 1424 normaliz.dll AppleMobileDeviceService. 1616 normaliz.dll explorer.exe 2520 normaliz.dll PanGPS.exe3276 normaliz.dll PanGPA.exe3420 normaliz.dll iTunesHelper.exe 3544 normaliz.dll Smc.exe 5008 normaliz.dll real1m25.565s user0m0.015s sys 0m0.046s It seems some type of timeout in the interaction of this windows utility and cygwin Regards Marco -- 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
RE: Running tasklist /m in cygwin hangs
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. > Date: Wed, 15 Apr 2015 22:15:57 +0300 > From: anrdae...@yandex.ru > To: saur...@hotmail.com; cygwin@cygwin.com > Subject: Re: Running tasklist /m in cygwin hangs > > Greetings, Saurabh T! > >> Running >> "tasklist /m file.dll" hangs in Cygwin > > First, mintty (I assume you did mean that) is not "Cygwin" itself. > >> even though it works perfectly fine in the cmd window. > > I hope you did mean native console by that. > >> Is there any reason for this? I am using a >> somewhat older cygwin (1.7.25) on a Windows 7 box, and do not want to >> upgrade unless newer cygwin doesnt show the problem. Thank you. > > $ tasklist /m normaliz.DLL | iconv -f CP866 > > Имя образа PID Модули > = > > taskhost.exe 3492 normaliz.DLL > litestep.exe 2172 normaliz.DLL > spideragent.exe 3336 normaliz.DLL > > Results are the same if running in mintty or native console. > No hangs can be seen from my side. > CYGWIN_NT-6.1 daemon2 1.7.35(0.287/5/3) 2015-03-04 12:09 x86_64 Cygwin > CYGWIN_NT-6.1 daemon2 2.0.0(0.287/5/3) 2015-04-15 17:39 x86_64 Cygwin > > > -- > With best regards, > Andrey Repin > Wednesday, April 15, 2015 22:07:13 > > 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
Re: Running tasklist /m in cygwin hangs
Greetings, Saurabh T! > Running > "tasklist /m file.dll" hangs in Cygwin First, mintty (I assume you did mean that) is not "Cygwin" itself. > even though it works perfectly fine in the cmd window. I hope you did mean native console by that. > Is there any reason for this? I am using a > somewhat older cygwin (1.7.25) on a Windows 7 box, and do not want to > upgrade unless newer cygwin doesnt show the problem. Thank you. $ tasklist /m normaliz.DLL | iconv -f CP866 Имя образа PID Модули = taskhost.exe 3492 normaliz.DLL litestep.exe 2172 normaliz.DLL spideragent.exe 3336 normaliz.DLL Results are the same if running in mintty or native console. No hangs can be seen from my side. CYGWIN_NT-6.1 daemon2 1.7.35(0.287/5/3) 2015-03-04 12:09 x86_64 Cygwin CYGWIN_NT-6.1 daemon2 2.0.0(0.287/5/3) 2015-04-15 17:39 x86_64 Cygwin -- With best regards, Andrey Repin Wednesday, April 15, 2015 22:07:13 Sorry for my terrible english...
RE: Running tasklist /m in cygwin hangs
Hi, Running "tasklist /m file.dll" hangs in Cygwin even though it works perfectly fine in the cmd window. Is there any reason for this? I am using a somewhat older cygwin (1.7.25) on a Windows 7 box, and do not want to upgrade unless newer cygwin doesnt show the problem. Thank you. -- 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