From 99af6b9db60502395f8f55eac7a9f05c62855e9f Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Fri, 11 Oct 2024 09:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=9B=B8=E5=85=B3=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sysSentry-1.0.2/src/python/sentryCollector/collect_io.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysSentry-1.0.2/src/python/sentryCollector/collect_io.py b/sysSentry-1.0.2/src/python/sentryCollector/collect_io.py index 9f94037..6348951 100644 --- a/sysSentry-1.0.2/src/python/sentryCollector/collect_io.py +++ b/sysSentry-1.0.2/src/python/sentryCollector/collect_io.py @@ -317,6 +317,8 @@ class CollectIo(): curr_iops = self.get_ebpf_iops(curr_finish_count=curr_finish_count, prev_finish_count=prev_finish_count) curr_io_length = self.get_ebpf_io_length(curr_latency=curr_latency, prev_latency=prev_latency) curr_io_dump = self.get_ebpf_io_dump(curr_io_dump_count=curr_io_dump_count, prev_io_dump_count=prev_io_dump_count) + if curr_io_dump > 0: + logging.info(f"ebpf io_dump info : {disk_name}, {stage}, {category}, {curr_io_dump}") IO_GLOBAL_DATA[disk_name][stage][io_type].insert(0, [curr_lat, curr_io_dump, curr_io_length, curr_iops]) logging.debug(f"ebpf collect data : {IO_GLOBAL_DATA}") elapsed_time = time.time() - start_time @@ -429,6 +431,8 @@ class CollectIo(): if self.get_blk_io_hierarchy(disk_name, stage_list) < 0: continue self.append_period_lat(disk_name, stage_list) + + logging.debug(f"no-lock collect data : {IO_GLOBAL_DATA}") elapsed_time = time.time() - start_time sleep_time = self.period_time - elapsed_time -- Gitee