Message234952
| 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. |
|