[RFC] The nginx way of handling optimizations for hw architectures

Sergey Kandaurov pluknet at nginx.com
Wed Nov 20 10:24:36 UTC 2019


> On 20 Nov 2019, at 00:01, Joe Konno <joe.konno at linux.intel.com> wrote:
> 
> Hey all,
> 
> I'm requesting comment/input on how nginx would like to do architecture
> detection at build time as well as at run time. This is for the purposes
> of optimizing nginx for specific hardware (see my e-mail address for
> what specific hardware I hope to optimize for). ^_^
> 
> For build time, I see nginx has '--with-cpu-opt'. Does the community use
> that configure flag much (if at all)? 

A specific use case is building 64-bit binary on Solaris x86-64 with SunC,
where one would specify --with-cpu-opt=amd64 to override the 80386 target,
which essentially provides the -m64 flag to set 64-bit addressing model
and a suitable assembler code for atomic instructions.

-- 
Sergey Kandaurov



More information about the nginx-devel mailing list