sched_setaffinity() failed (22: Invalid argument)

Nginx错误日志:


错误原因:
由于在nginx.conf配置了错误的worker_cpu_affinity 01 10;导致以上错误;可以具体查看cpu核心数来进行具体配置。

参考:http://wiki.nginx.org/CoreModuleChs#worker_cpu_affinity
参考:http://www.php230.com/set-worker-cpu-affinity-to-up-nginx-performance.html文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/worker-cpu-affinity-error/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/worker-cpu-affinity-error/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onOctober 25, 2014
  • 原文链接:https://note.t4x.org/error/worker-cpu-affinity-error/
匿名

Comment

Anonymous

Slide puzzle verification.