[issue8873] Popen uses 333 times as much CPU as a shell pipe on Mac OS X

2010-06-02 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: OK. Using bufsize=4096 or bufsize=-1 eliminates the CPU-hogging problem on Mac OS X. Thank you. I have to say that the Popen() doc could be better. It says: "bufsize, if given, has the same meaning as the corresponding argument to the built-in

[issue8873] Popen uses 333 times as much CPU as a shell pipe on Mac OS X

2010-06-01 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : Added file: http://bugs.python.org/file17519/pull1 ___ Python tracker <http://bugs.python.org/issue8873> ___ ___ Python-bugs-list mailin

[issue8873] Popen uses 333 times as much CPU as a shell pipe on Mac OS X

2010-06-01 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : Added file: http://bugs.python.org/file17518/pull0 ___ Python tracker <http://bugs.python.org/issue8873> ___ ___ Python-bugs-list mailin

[issue8873] Popen uses 333 times as much CPU as a shell pipe on Mac OS X

2010-06-01 Thread Hugh Secker-Walker
New submission from Hugh Secker-Walker : Popen seems to be *very* costly, CPU wise, on Mac OS X. I need to read and process bytes from the stdout of another process that outputs bytes in a rate-limited fashion, e.g. 8 bytes per second. If I use a shell pipeline and a simple Python script

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Updated the C program to deal with command-line args. This is the version submitted to Apple Bug Reporter, issue 7433004. -- Added file: http://bugs.python.org/file15429/os_pipe_write_close_bug.c ___ Python

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : Removed file: http://bugs.python.org/file15420/os_pipe_write_close_bug.c ___ Python tracker <http://bugs.python.org/issue7401> ___ ___

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-12-01 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: I have an ADC account that I only ever use to get XCode. I'll file a bug-report with Apple. -- ___ Python tracker <http://bugs.python.org/i

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Fixed some typos in the C file -- Added file: http://bugs.python.org/file15420/os_pipe_write_close_bug.c ___ Python tracker <http://bugs.python.org/issue7

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : Removed file: http://bugs.python.org/file15419/os_pipe_write_close_bug.c ___ Python tracker <http://bugs.python.org/issue7401> ___ ___

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: The attached C file exhibits the same symptoms, on Mac OS X 10.5 it eventually hangs in an uninteruptible disk wait. On Linux it doesn't hang. Further support for the idea that this is a Mac OS X problem. How does one provide this reproducible ca

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-27 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Well, from *my* perspective it's a Python bug because I code to Python's API and Python misbehaves! ;-) If I start on it soon enough I'll look into duplicating the problem in C. -- ___ Python

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-26 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/iss

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-26 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : -- versions: +Python 2.5 ___ Python tracker <http://bugs.python.org/issue7401> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-26 Thread Hugh Secker-Walker
New submission from Hugh Secker-Walker : The attached script demonstrates a problem on Mac OS X 10.5 whereby Python can hang while simultaneously trying os.write with a large buffer and os.close, from separate threads on the write and read fds respectively of a pipe. -- components: IO