Align statistics to cache lines

Aligning the statistics object indices to cache line size reduces the CPU
overhead of gathering the statistics. This allows the statistics to more
accurately measure the polling system without the measurement affecting
the outcome.
This commit is contained in:
Markus Makela
2016-12-09 17:39:31 +02:00
parent 5cb738ae03
commit 49aa23468d
6 changed files with 127 additions and 43 deletions

View File

@ -67,12 +67,12 @@
#include <maxscale/query_classifier.h>
#include <maxscale/server.h>
#include <maxscale/session.h>
#include <maxscale/statistics.h>
#include <maxscale/thread.h>
#include <maxscale/utils.h>
#include <maxscale/version.h>
#include "maxscale/service.h"
#include "maxscale/statistics.h"
#define STRING_BUFFER_SIZE 1024
#define PIDFD_CLOSED -1