1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-03-06 11:28:00 +00:00
haproxy/include/common
Willy Tarreau 149ab779cc MAJOR: threads: enable one thread per CPU by default
Threads have long matured by now, still for most users their usage is
not trivial. It's about time to enable them by default on platforms
where we know the number of CPUs bound. This patch does this, it counts
the number of CPUs the process is bound to upon startup, and enables as
many threads by default. Of course, "nbthread" still overrides this, but
if it's not set the default behaviour is to start one thread per CPU.

The default number of threads is reported in "haproxy -vv". Simply using
"taskset -c" is now enough to adjust this number of threads so that there
is no more need for playing with cpu-map. And thanks to the previous
patches on the listener, the vast majority of configurations will not
need to duplicate "bind" lines with the "process x/y" statement anymore
either, so a simple config will automatically adapt to the number of
processors available.
2019-02-27 14:51:50 +01:00
..
accept4.h
base64.h
buf.h BUG/MEDIUM: buffer: Make sure b_is_null handles buffers waiting for allocation. 2019-01-31 08:07:17 +01:00
buffer.h MEDIUM: memory: make the pool cache an array and not a thread_local 2018-11-26 19:50:32 +01:00
cfgparse.h MINOR: cfgparse: make the process/thread parser support a maximum value 2019-01-26 13:25:14 +01:00
chunk.h CLEANUP: Fix typo in the chunk headers file 2018-12-02 18:37:56 +01:00
compat.h MINOR: compat: automatically detect support for crypt_r() 2018-10-29 19:14:14 +01:00
compiler.h MINOR: compiler: add a new macro ALREADY_CHECKED() 2018-12-08 15:27:03 +01:00
config.h MINOR: debug: Add an option that causes random allocation failures. 2019-01-31 19:38:25 +01:00
debug.h MINOR: debug: make the ABORT_NOW macro use a volatile int 2018-12-16 08:17:23 +01:00
defaults.h MINOR: config: make MAX_PROCS configurable at build time 2019-02-07 15:10:19 +01:00
epoll.h
errors.h
h1.h MINOR: h1: make the H1 headers block parser able to parse headers only 2019-01-04 10:48:03 +01:00
h2.h BUG/MEDIUM: h2/htx: Correctly handle interim responses when HTX is enabled 2019-02-19 16:26:14 +01:00
hash.h
hathreads.h MAJOR: threads: enable one thread per CPU by default 2019-02-27 14:51:50 +01:00
hpack-dec.h
hpack-enc.h MINOR: hpack: provide a function to encode an HTTP path 2018-12-11 09:07:02 +01:00
hpack-huff.h
hpack-tbl.h BUG/MINOR: hpack: return a compression error on invalid table size updates 2019-01-24 15:27:06 +01:00
http-hdr.h MINOR: http: add http_hdr_del() to remove a header from a list 2018-09-14 17:40:35 +02:00
http.h MEDIUM: proto_htx: Convert all HTTP error messages into HTX 2018-12-01 17:37:27 +01:00
htx.h MINOR: htx: Add function to drain data from an HTX message 2019-02-26 14:04:23 +01:00
initcall.h BUILD/MEDIUM: initcall: Fix build on MacOS. 2019-02-15 14:32:35 +01:00
ist.h MEDIUM: ist: use local conversion arrays to case conversion 2018-12-07 13:25:59 +01:00
istbuf.h
memory.h MINOR: pools: Cast to volatile int * instead of int *. 2018-12-16 08:15:16 +01:00
mini-clist.h BUG/MEDIUM: lists: Properly handle the case we're removing the first elt. 2019-02-26 18:47:59 +01:00
namespace.h MINOR: namespaces: don't build namespace.c if disabled 2018-11-12 19:15:15 +01:00
net_helper.h
regex.h
splice.h
standard.h MINOR: tools: implement functions to look up the nth bit set in a mask 2019-02-27 14:27:07 +01:00
syscall.h
template.h
ticks.h
time.h MINOR: poller: move the call of tv_update_date() back to the pollers 2018-11-22 18:57:37 +01:00
tools.h
uri_auth.h
version.h BUILD: add a new file "version.c" to carry version updates 2019-01-04 18:20:32 +01:00
xref.h MINOR: xref: Add missing barriers. 2019-01-31 19:38:25 +01:00