From f4571a027f20a3866018a9a6749fd456370943e1 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 20 Jan 2018 18:12:15 +0100 Subject: [PATCH] MINOR: global/threads: move cpu_map at the end of the global struct The "thread" part is 32kB long, better move it at the end of the structure since it's only used during initialization, to keep the rest grouped together. Should be backported to 1.8 to ease backporting of upcoming patches, no functional impact. --- include/types/global.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/types/global.h b/include/types/global.h index 1f332074b..6f3fedc33 100644 --- a/include/types/global.h +++ b/include/types/global.h @@ -163,14 +163,14 @@ struct global { mode_t mode; /* 0 to leave unchanged */ } ux; } unix_bind; + struct proxy *stats_fe; /* the frontend holding the stats settings */ + struct vars vars; /* list of variables for the process scope. */ #ifdef USE_CPU_AFFINITY struct { unsigned long proc[LONGBITS]; /* list of CPU masks for the 32/64 first processes */ unsigned long thread[LONGBITS][LONGBITS]; /* list of CPU masks for the 32/64 first threads per process */ } cpu_map; #endif - struct proxy *stats_fe; /* the frontend holding the stats settings */ - struct vars vars; /* list of variables for the process scope. */ }; extern struct global global;