File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -650,9 +650,11 @@ let gen_metrics () =
650650
651651let _ =
652652 initialise () ;
653+ (* Approx. one page per VBD, up to the limit. *)
654+ let shared_page_count = 2048 in
653655 (* It takes (at least) 1 second to get the iostat data, so start reading the data early enough *)
654656 main_loop
655657 ~neg_shift: 1.5
656- ~target: Reporter. Local
658+ ~target: ( Reporter. Local shared_page_count)
657659 ~protocol: Rrd_interface. V2
658660 ~dss_f: gen_metrics
Original file line number Diff line number Diff line change @@ -135,11 +135,14 @@ let generate_squeezed_dss () =
135135 ~default: true ~units: " B" () ;
136136 ]
137137
138+ (* This plugin always reports two datasources only, so one page is fine. *)
139+ let shared_page_count = 1
140+
138141let _ =
139142 initialise () ;
140143 Watcher. create_watcher_thread (Xs. get_client () );
141144 main_loop
142145 ~neg_shift: 0.5
143- ~target: Reporter. Local
146+ ~target: ( Reporter. Local shared_page_count)
144147 ~protocol: Rrd_interface. V2
145148 ~dss_f: generate_squeezed_dss
Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ let _ =
8787 initialise () ;
8888 D. warn " Found %d pCPUs" ! nr_cpu;
8989 if ! nr_cpu = 0 then exit 1 ;
90+ (* Share one page per CPU. *)
91+ let shared_page_count = ! nr_cpu in
9092 main_loop
9193 ~neg_shift: 0.5
92- ~target: Reporter. Local
94+ ~target: ( Reporter. Local shared_page_count)
9395 ~protocol: Rrd_interface. V2
9496 ~dss_f: generate_dss
You can’t perform that action at this time.
0 commit comments