Mutexes are slower if they're in the same cache line. Since fd's come in herds, and usually our listen sockets will have nearby fd numbers, we mangle fdlocks so that the locks are further away.
Mutexes are slower if they're in the same cache line. Since fd's come in herds, and usually our listen sockets will have nearby fd numbers, we mangle fdlocks so that the locks are further away.