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
Changes by Hugh Secker-Walker :
Added file: http://bugs.python.org/file17519/pull1
___
Python tracker
<http://bugs.python.org/issue8873>
___
___
Python-bugs-list mailin
Changes by Hugh Secker-Walker :
Added file: http://bugs.python.org/file17518/pull0
___
Python tracker
<http://bugs.python.org/issue8873>
___
___
Python-bugs-list mailin
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
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
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>
___
___
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
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
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>
___
___
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
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
Changes by Hugh Secker-Walker :
--
assignee: -> ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren
___
Python tracker
<http://bugs.python.org/iss
Changes by Hugh Secker-Walker :
--
versions: +Python 2.5
___
Python tracker
<http://bugs.python.org/issue7401>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
14 matches
Mail list logo