Closed GoogleCodeExporter closed 8 years ago
Mintty is a single-threaded application that spends most of its time in a
select() call waiting for Windows events (via /dev/windows) or terminal output
(via a pty device). Hence I don't think this is something that mintty itself
does, but something in the Cygwin DLL, as suggested by your investigation.
Something called setprogname() is unlikely to be 10K in size, so it's probably
something else that just doesn't have a public symbol.
There was a thread about a seemingly closely related topic on the mintty
discussion group recently:
http://groups.google.com/group/mintty-discuss/browse_thread/thread/a6ad7e2d22a89
b7f.
There, the concern was about background I/O operations at a rate of about
1Kbyte a second, and this turned out to be common to all terminals based on pty
devices, which doesn't include the default console.
Therefore, could you check whether you see the same thing with the likes of
rxvt or PuTTYcyg's cthelper? If so, the Cygwin mailing list is the best place
for trying to get an explanation.
Original comment by andy.koppe
on 18 May 2011 at 7:57
You seem to be right, Andy. I'm seeing similar behavior in rxvt as well,
apparently caused by setprogname(). I never noticed it before probably because
mintty is the only terminal I use.
I will take this to the Cygwin mailing list next.
Thank you.
Original comment by bsravanin
on 19 May 2011 at 4:22
The resulting Cygwin mailing list thread indicates that this is due to select()
periodically polling the Windows pipes underlying Cygwin's pseudo terminal
(pty) implementation. I'm afraid there's nothing I can do about this in mintty.
http://www.cygwin.com/ml/cygwin/2011-05/msg00294.html
Original comment by andy.koppe
on 25 May 2011 at 4:38
Original issue reported on code.google.com by
bsravanin
on 18 May 2011 at 5:47