8 nodes Cluster with Aerospike 3.3.17 In-Memory, Replica = 2.
Single C Client with multiple threads on a separate node to send Write traffic (in the same internal Switch).
In normal stable situation where socket connections are pre-established and are reused on each transaction, the lower thread count will have a lower latency.
Given that you see the client side re-establishing sockets, the extra latency must be caused by abnormal socket closing and reconnection. Here are a few possibility:
(1) The transactions have timed out, causing the socket to close and new socket to open.
(2) The sockets have been idle, and connections have been shutdown from the server side. New transactions will initiate new socket connections.