[Pythonmac-SIG] Trying to track down a bug in BitTorrent for Mac
OS 9
Jack Jansen
Jack.Jansen at cwi.nl
Thu Apr 15 17:45:16 EDT 2004
On 13 Apr 2004, at 22:50, Phil wrote:
> Alas, neither of these signs seems to be happening -- the (internal,
> IDE)
> disk doesn't sound like it's thrashing, and the PythonInterpreter
> doesn't
> jump in memory usage at all -- it's using about 20% of a 23.2 MB memory
> allotment.
Well, I wouldn't say "alas" here, because this one would have been
difficult to
fix:-)
But the downside is you'll have more work to do. Examine the code, and
find
the bit that is responsible for testing the integrity of the bits you
already have on
disk. In all likelyhood it'll be some sort of a loop that reads a chunk
of data and then
does some processing on it.
Put a print statement before and after the loop, and each time through
the loop
also print how much data has been processed. You will probably see one
of two
things:
1. The loop handles data in extremely small amounts
2. The loop slows down as it progresses
Hmm, something else you could try if you have access to an OSX machine
is
run the program on OSX, with MacPython-OS9. Run MacPython-OS9 in native
OSX mode (this is the default), not in the Classic environment.
If this makes the problem go away then it probably has to do something
with
some lowlevel OS problem on OS9, and it's not going to be easy to fix.
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman
More information about the Pythonmac-SIG
mailing list