[PATCH] libnuma: numa_node_to_cpus() warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Cliff Wickman <cpw@xxxxxxx>

We have occasionally seen the "/sys not mounted or invalid. Assuming one node:"
warning from numa_node_to_cpus_v2(). But we have no clue why.
This patch adds a bit more verbosity to the warning message.

Signed-off-by: Cliff Wickman <cpw@xxxxxxx>
---
 libnuma.c |    2 ++
 1 file changed, 2 insertions(+)

Index: numactl-dev/libnuma.c
===================================================================
--- numactl-dev.orig/libnuma.c
+++ numactl-dev/libnuma.c
@@ -1342,6 +1342,8 @@ numa_node_to_cpus_v2(int node, struct bi
 		numa_warn(W_nosysfs2,
 		   "/sys not mounted or invalid. Assuming one node: %s",
 			  strerror(errno)); 
+		numa_warn(W_nosysfs2,
+		   "(cannot open or correctly parse %s)", fn);
 		numa_bitmask_setall(mask);
 		err = -1;
 	} 
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux