Weirdo multiprocessing: Shared objects taking more time in sharing smaller data than larger data between multiple processes. #126471
Labels
extension-modules
C modules in the Modules dir
pending
The issue will be closed if no feedback is provided
topic-multiprocessing
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
server.py
consumer.py
producerA.py
producerB.py
steps to reproduce the issue
server.py
consumer.py
producerA.py
and check theput time
and compare it withproducerB.py
put time.put time
in producerA.py is higher thanproducerB.py
, however the size of data being send through shared queue objects is more in producerB.py(256x256
) than in producerA.py (128x128
).I don't have much context if this is related to numpy or cpython multiprocessing, but this is definitely shouldn't be the case.
Ideally it should take more time in producerB.py beacuase the size of data is relatively higher relative to producerA.py.
This is my first bug report, I'm hoping to learn something...
Thanks everyone...
CPython versions tested on:
3.10
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: