tag:blogger.com,1999:blog-8508935345157628191.post5215911337163325294..comments2024-03-28T21:29:25.773-07:00Comments on Phill Barber's Blog: Ratpack talk - The story so farPhill Barberhttp://www.blogger.com/profile/18399785532886246472noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8508935345157628191.post-47765355992166644212016-08-23T04:48:45.121-07:002016-08-23T04:48:45.121-07:00Hi Phill,
thanks for a great presentation! I am q...Hi Phill,<br /><br />thanks for a great presentation! I am quite curious about the way who you've tested the performance. Could you please provide a bit more information (about an environment, HW, etc..)<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/04323368141213258697noreply@blogger.comtag:blogger.com,1999:blog-8508935345157628191.post-49309494826465000742016-08-02T14:06:08.540-07:002016-08-02T14:06:08.540-07:00Hi Djasan,
Glad that you found the talk interesti...Hi Djasan, <br />Glad that you found the talk interesting.<br /><br />The question was "Why does ratpack default the number of threads to two times the number of CPU cores?". <br /><br />...I had a quick check and yes indeed it does default to two threads per CPU core - see here: https://ratpack.io/manual/current/api/ratpack/server/ServerConfig.html#DEFAULT_THREADS<br /><br />My answer was "I don't know". I then went on to guess that perhaps a little bit of thread switching is ok (i.e. one cpu core switching between two threads of execution is better for performance - however in retrospect this seems wrong as the entire idea is thread switching is to be avoided). <br /><br />Someone else from the audience then said (it was very muffled so might be wrong here...) that it might be due to the fact that some CPUs will perform hyper-threading on each core which means a single core could perform more than one task in parallel. See wikipedia here: https://en.wikipedia.org/wiki/Hyper-threading<br /><br />If you are really thinking about performance (likely if you're using ratpack) perhaps the best bet is to adjust this property based on what (if any) hyper-threading your CPU will do.<br /><br />Hope this helps.<br /><br />PhillPhill Barberhttps://www.blogger.com/profile/18399785532886246472noreply@blogger.comtag:blogger.com,1999:blog-8508935345157628191.post-62849040849722112942016-08-02T12:27:38.382-07:002016-08-02T12:27:38.382-07:00Hello.
I have seen the record of this talk on yout...Hello.<br />I have seen the record of this talk on youtube and it was very interesting for me.<br />So, there was some question at 54:18 (link for it https://youtu.be/q2vADSqi6XI?t=3257 ) and i could not understand what it was about (could not hear it). <br />Could you repeat that question and answer for it here, please?Djasanhttps://www.blogger.com/profile/03150874671634873357noreply@blogger.com