[PATCH] Be more verbose in ngx_setaffinity()

Sepherosa Ziehau sepherosa at gmail.com
Sat May 27 01:07:00 UTC 2017


On Fri, May 26, 2017 at 11:31 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> Hello!
>
> On Fri, May 26, 2017 at 04:42:51PM +0800, Sepherosa Ziehau wrote:
>
>> Hi all,
>>
>> Patch is here:
>> https://leaf.dragonflybsd.org/~sephe/verb_setaffinity.diff
>
> Process PID is present in error log messages, it is believed to be
> enough to identify which worker uses which CPU.  It is also looks
> like a layering violation to print ngx_worker from a generic

Thought it was just for worker's affinity setting.  Since you say its
a generic function, I will drop the patch then.

> function which knows nothing if it is being called in a worker
> process or not.
>
> Do you have any specific reasons for the change?

I was debugging the reuseport listen socket cpu affinity.

Thanks,
sephe

-- 
Tomorrow Will Never Die


More information about the nginx-devel mailing list