On 12/13/18 11:46 AM, Hannes Reinecke wrote:
In order to utilize both paths on dual-ported HBAs we cannot rely on the NUMA affinity alone, but rather have to distribute the locality information to get the best possible result. This patch implements a two-pass algorithm for assinging NUMA locality information: 1. Distribute existing locality information so that no core has more than one 'local' controller 2. Assign a 'local' controller for each of the remaining cores, so that the overall weight (ie the sum of all locality information) per ctrl is minimal. Signed-off-by: Hannes Reinecke <hare@xxxxxxxx> --- drivers/nvme/host/multipath.c | 111 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+)
This got misdirected. Please ignore. Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)