memcached可以充分利用多核吗?

Mic*_*ine 11 parallel-processing memcached multicore

memcached是否能够充分利用多核?或者有什么办法调整这个?

zed*_*xff 12

memcached有"-t"选项:

       -t <threads>
          Number of threads to use to process incoming requests. This option is only meaningful
          if memcached was compiled with thread support enabled. It is typically not useful  to
          set  this higher than the number of CPU cores on the memcached server. The default is
          4.
Run Code Online (Sandbox Code Playgroud)

所以,我相信它可以使用你所有的CPU核心,当然如果它是用相应的选项编译的.


Dus*_*tin 6

默认情况下,memcached是多线程的,并且没有问题使许多内核饱和.在更大规模的并行盒(例如256核CMT盒)上使所有内核饱和有点困难,因为它越来越难以将数据输入和输出网络.

如果您发现某些争用的区域阻止您使内核饱和,请提交错误或开始讨论.