uv_cpu_socket_number
core = uv_cpu_core_number(cpu) + UV_MAX_INT_CORES * uv_cpu_socket_number(cpu);
id = core + UV_MAX_INT_CORES * uv_cpu_socket_number(cpu);