add swoole_cpu_num function for cpu_affinity, then you can do like nginx worker_num auto