From 265dbeb8523ef0a9ede70a02b9f9c2a176487dd7 Mon Sep 17 00:00:00 2001 From: Rohit Jnagal Date: Thu, 7 May 2015 21:11:21 +0000 Subject: [PATCH] Return partial topology information if cache info is not available. Everything other than cache information is available through /proc/cpuinfo. --- manager/machine.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/machine.go b/manager/machine.go index c1927a44..ea83fa19 100644 --- a/manager/machine.go +++ b/manager/machine.go @@ -187,7 +187,8 @@ func getTopology(sysFs sysfs.SysFs, cpuinfo string) ([]info.Node, int, error) { for idx, node := range nodes { caches, err := sysinfo.GetCacheInfo(sysFs, node.Cores[0].Threads[0]) if err != nil { - return nil, -1, fmt.Errorf("failed to get cache information for node %d: %v", node.Id, err) + glog.Errorf("failed to get cache information for node %d: %v", node.Id, err) + continue } numThreadsPerCore := len(node.Cores[0].Threads) numThreadsPerNode := len(node.Cores) * numThreadsPerCore