Skip to content

Commit 3b08dfa

Browse files
committed
topology: do not print-debug the host NUMA information
It's already printed by xenopsd, and now that development has stabilised, unit-test can print this useful unformation. Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
1 parent fc1d96f commit 3b08dfa

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ocaml/xenopsd/lib/topology.ml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
module D = Debug.Make (struct let name = "topology" end)
1616

17-
open D
18-
1917
module CPUSet = struct
2018
include Set.Make (struct
2119
type t = int
@@ -205,12 +203,8 @@ module NUMA = struct
205203
|> seq_sort ~cmp:dist_cmp
206204
|> Seq.map (fun ((_, avg), nodes) -> (avg, Seq.map (fun n -> Node n) nodes))
207205

208-
let pp_dump_distances = Fmt.(int |> Dump.array |> Dump.array)
209-
210206
let make ~distances ~cpu_to_node =
211207
let ( let* ) = Option.bind in
212-
debug "Distances: %s" (Fmt.to_to_string pp_dump_distances distances) ;
213-
debug "CPU2Node: %s" (Fmt.to_to_string Fmt.(Dump.array int) cpu_to_node) ;
214208
let node_cpus = Array.map (fun _ -> CPUSet.empty) distances in
215209

216210
(* nothing can be scheduled on unreachable nodes, remove them from the
@@ -223,9 +217,6 @@ module NUMA = struct
223217
)
224218
cpu_to_node ;
225219

226-
debug "Cpus in node: %s"
227-
Fmt.(to_to_string (Dump.array CPUSet.pp_dump) node_cpus) ;
228-
229220
let* () =
230221
if Array.for_all (fun cpus -> CPUSet.is_empty cpus) node_cpus then (
231222
D.info

0 commit comments

Comments
 (0)