Browse Source

Set default NUMA topology distances

In case of one NUMA node `lstopo` doesn't return
information about distances, so by default distances
should be 2d array [["1.0"]]

Change-Id: I858c93e7f41b1a670bc72a80cd0c5b47fe63ef12
Partial-Bug: #1551955
Artur Svechnikov 3 years ago
parent
commit
122f851295
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      agent

+ 1
- 1
agent View File

@@ -864,7 +864,7 @@ class NodeAgent
864 864
     #   <page_type size="1073741824" count="8"/>
865 865
     doc = Document.new `lstopo --no-caches --of xml`
866 866
 
867
-    topology = {:numa_nodes => [], :supported_hugepages => supported_hugepages, :distances => nil}
867
+    topology = {:numa_nodes => [], :supported_hugepages => supported_hugepages, :distances => [["1.0"]]}
868 868
 
869 869
     doc.elements.each('/topology/object/distances/') do |dist|
870 870
       topology[:distances] = dist.elements.collect{|v| v.attributes['value']}

Loading…
Cancel
Save