This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients ned.deily, neologix, pitrou, vstinner
Date 2015-01-29.07:42:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAH_1eM32aYGASukRWx4C=+yrNo_wF2TV_+_TFzcjr=Gw_E2h5g@mail.gmail.com>
In-reply-to <CAH_1eM1qXmu=UeXu3tv4dJrgoSVw5UaKtEmauKg4iJLS6XEY2Q@mail.gmail.com>
Content
> Charles-François Natali added the comment:
>
> Hmmm...
> Basically, with a much smaller socket buffer, we get much more context
> switches, which increases drastically the test runtime.
> But I must admit I'm still really surprised by the time it takes on
> OS-X: with a SOCK_MAX_SIZE of 16MB and a socket buffer size of 8kb,
> that's 2000 calls to send with context switches between the sender and
> receiver - and thie overhead should be much less on a two core
> machine.

OK, actually the receiver is completely CPU-bound, because of memory
allocation for the socket.recv() buffer I'll play with recv_into() and
profile a bit more.
History
Date User Action Args
2015-01-29 07:42:33neologixsetrecipients: + neologix, pitrou, vstinner, ned.deily
2015-01-29 07:42:33neologixlinkissue23285 messages
2015-01-29 07:42:33neologixcreate