Welcome! Log In Create A New Profile

Advanced

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

Joe Konno
November 19, 2019 04:02PM
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)? I could see adding some host
detection facilities. But, for OSes who build and/or package for
multiple architectures, the limitations of such detection become
immediately apparent.

Bear with me as I get architecture-specific, but for run time, I do see
a core function using (the first leaf of) CPUID output to determine a
cache line size. Other leaves of the CPUID instruction could be used, at
run time /or/ configure/build time, to determine which optimized
function(s) to use given the host CPU's capabilities.

There are a few ways to handle optimizations at the instruction set
level, so I am looking for guidance on the "nginx way" of doing such
things. Is there a line between what optimizations should be determined
at build time? At run time? The Development Guide doesn't say much about
this-- or I missed it-- so any hints/clues are appreciated.

^_^

--
Cheers
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Joe Konno 263 November 19, 2019 04:02PM

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

Sergey A. Osokin 122 November 19, 2019 06:16PM

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

Joe Konno 122 November 19, 2019 06:34PM

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

Sergey Kandaurov 151 November 20, 2019 05:26AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready