prometheus/storage
Maxim Ivanov bdc53098fc Avoid having contended mutexes on same cacheline
CPUs have to serialise write access to a single cache line
effectively reducing level of possible parallelism. Placing
mutexes on different cache lines avoids this problem.

Most gains will be seen on NUMA servers where CPU interconnect
traffic is especially expensive

Before:
go test . -run none -bench BenchmarkFingerprintLocker
BenchmarkFingerprintLockerParallel-4   	 2000000	       932 ns/op
BenchmarkFingerprintLockerSerial-4     	30000000	        49.6 ns/op

After:
go test . -run none -bench BenchmarkFingerprintLocker
BenchmarkFingerprintLockerParallel-4   	 3000000	       569 ns/op
BenchmarkFingerprintLockerSerial-4     	30000000	        51.0 ns/op
2016-09-18 23:32:55 +01:00
..
local Avoid having contended mutexes on same cacheline 2016-09-18 23:32:55 +01:00
metric storage: improve index lookups 2016-07-20 17:35:53 +02:00
remote Switch back to protos over HTTP, instead of GRPC. 2016-09-15 23:21:54 +01:00
storage.go Fix deadlock, structure target logging 2016-02-03 10:39:34 +01:00