[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 hug...@users.sourceforge.net 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

[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 hug...@users.sourceforge.net: 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

[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 hug...@users.sourceforge.net: Added file: http://bugs.python.org/file17518/pull0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8873

[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 hug...@users.sourceforge.net: Added file: http://bugs.python.org/file17519/pull1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8873

[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 hug...@users.sourceforge.net 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 rep...@bugs.python.org 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
Changes by Hugh Secker-Walker hug...@users.sourceforge.net: Removed file: http://bugs.python.org/file15420/os_pipe_write_close_bug.c ___ Python tracker rep...@bugs.python.org 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 hug...@users.sourceforge.net 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

[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 hug...@users.sourceforge.net 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

[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 hug...@users.sourceforge.net: Removed file: http://bugs.python.org/file15419/os_pipe_write_close_bug.c ___ Python tracker rep...@bugs.python.org 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 hug...@users.sourceforge.net 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 rep...@bugs.python.org http://bugs.python.org/issue7401

[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 hug...@users.sourceforge.net 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

[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 hug...@users.sourceforge.net: 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

[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 hug...@users.sourceforge.net: -- versions: +Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7401

[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 hug...@users.sourceforge.net: -- assignee: - ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7401