* Re: High Activity of setprogname [not found] <BANLkTimbvqQbyWYmcu-YUAaGLOgCtv7nyQ@mail.gmail.com> @ 2011-05-19 4:37 ` Sravan Bhamidipati 2011-05-19 17:42 ` Ryan Johnson 0 siblings, 1 reply; 3+ messages in thread From: Sravan Bhamidipati @ 2011-05-19 4:37 UTC (permalink / raw) To: cygwin Terminals like mintty and rxvt are doing an unusual amount of context switching and consuming a lot of CPU cycles even in idle time. Process Explorer suggests that this activity is largely attributable to "cygwin1.dll!setprogname". Could this be something that should not or need not be done? (Running cygwin.bat directly to use Cygwin doesn't show such activity.) Most recently I've been seeing this behavior with Mintty v0.97, Cygwin v1.7.9-1, Windows 7 Ultimate SP1 (x64, Build Version: 6.1.7601 Service Pack 1 Build 7601). However I've noticed this in a few older versions of Mintty, Cygwin as well, even on Windows XP. You can also view the mintty thread where this discussion began: http://code.google.com/p/mintty/issues/detail?id=265 Regards, Sravan -- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: High Activity of setprogname 2011-05-19 4:37 ` High Activity of setprogname Sravan Bhamidipati @ 2011-05-19 17:42 ` Ryan Johnson 2011-05-19 19:11 ` Christopher Faylor 0 siblings, 1 reply; 3+ messages in thread From: Ryan Johnson @ 2011-05-19 17:42 UTC (permalink / raw) To: Sravan Bhamidipati; +Cc: cygwin On 2:59 PM, Sravan Bhamidipati wrote: > Terminals like mintty and rxvt are doing an unusual amount of context > switching and consuming a lot of CPU cycles even in idle time. Process > Explorer suggests that this activity is largely attributable to > "cygwin1.dll!setprogname". Could this be something that should not or > need not be done? (Running cygwin.bat directly to use Cygwin doesn't > show such activity.) > > Most recently I've been seeing this behavior with Mintty v0.97, Cygwin > v1.7.9-1, Windows 7 Ultimate SP1 (x64, Build Version: 6.1.7601 Service > Pack 1 Build 7601). However I've noticed this in a few older versions > of Mintty, Cygwin as well, even on Windows XP. > > You can also view the mintty thread where this discussion began: > http://code.google.com/p/mintty/issues/detail?id=265 The running code is related to select() (try running strace -mselect mintty to see for yourself). A little poking around with windbg and gdb shows that select.cc:650 (thread_pipe) is the culprit: select itself is called with infinite timeout; somebody more knowledgeable than me will have to explain why thread_pipe would return data so often for an idle process, however. Ryan P.S. Windows has no clue about gcc's symbols, which is why you got setprogname+0x2620 instead of something that made sense. -- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: High Activity of setprogname 2011-05-19 17:42 ` Ryan Johnson @ 2011-05-19 19:11 ` Christopher Faylor 0 siblings, 0 replies; 3+ messages in thread From: Christopher Faylor @ 2011-05-19 19:11 UTC (permalink / raw) To: cygwin On Thu, May 19, 2011 at 01:41:47PM -0400, Ryan Johnson wrote: >On 2:59 PM, Sravan Bhamidipati wrote: >> Terminals like mintty and rxvt are doing an unusual amount of context >> switching and consuming a lot of CPU cycles even in idle time. Process >> Explorer suggests that this activity is largely attributable to >> "cygwin1.dll!setprogname". Could this be something that should not or >> need not be done? (Running cygwin.bat directly to use Cygwin doesn't >> show such activity.) >> >> Most recently I've been seeing this behavior with Mintty v0.97, Cygwin >> v1.7.9-1, Windows 7 Ultimate SP1 (x64, Build Version: 6.1.7601 Service >> Pack 1 Build 7601). However I've noticed this in a few older versions >> of Mintty, Cygwin as well, even on Windows XP. >> >> You can also view the mintty thread where this discussion began: >> http://code.google.com/p/mintty/issues/detail?id=265 >The running code is related to select() (try running strace -mselect >mintty to see for yourself). > >A little poking around with windbg and gdb shows that select.cc:650 >(thread_pipe) is the culprit: select itself is called with infinite >timeout; somebody more knowledgeable than me will have to explain why >thread_pipe would return data so often for an idle process, however. It's called "polling", see: http://msdn.microsoft.com/en-us/library/aa365779%28v=vs.85%29.aspx cgf -- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-19 19:11 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <BANLkTimbvqQbyWYmcu-YUAaGLOgCtv7nyQ@mail.gmail.com> 2011-05-19 4:37 ` High Activity of setprogname Sravan Bhamidipati 2011-05-19 17:42 ` Ryan Johnson 2011-05-19 19:11 ` Christopher Faylor
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).