当前位置: 首页 > news >正文

5.118 BCC工具之xfsslower.py解读

一,工具简介

xfsslower显示了XFS的读取、写入、打开和fsync操作,这些操作慢于一个阈值。

二,代码示例

#!/usr/bin/env pythonfrom __future__ import print_function
from bcc import BPF
import argparse
from time import strftime# arguments
examples = """examples:./xfsslower             # trace operations slower than 10 ms (default)./xfsslower 1           # trace operations slower than 1 ms./xfsslower -j 1        # ... 1 ms, parsable output (csv)./xfsslower 0           # trace all operations (warning: verbose)./xfsslower -p 185      # trace PID 185 only
"""
parser = argparse.ArgumentParser(description="Trace common XFS file operations slower than a threshold",formatter_class=argparse.RawDescriptionHelpFormatter,epilog=examples)
parser.add_argument("-j", "--csv", action="store_true",help="just print fields: comma-separated values")
parser
http://www.lryc.cn/news/335382.html

相关文章:

  • Spark编程基础
  • React 状态管理:高效处理数组数据的5种方法
  • SSH和交换机端口安全概述
  • K-means聚类算法的原理、应用与实例
  • 使用SquareLine Studio创建LVGL项目到IMX6uLL平台
  • MATLAB计算投资组合的cVaR和VaR
  • YOLOv7全网独家改进: 卷积魔改 | 变形条状卷积,魔改DCNv3二次创新
  • 使用vue3搭建一个CRM(客户关系管理)系统
  • Linux虚拟内存简介
  • 合并单元格的excel文件转换成json数据格式
  • 云平台和云原生
  • ES6 => 箭头函数
  • vue将html生成pdf并分页
  • 数字社会下的智慧公厕:构筑智慧城市的重要组成部分
  • 比较好玩的车子 高尔夫6
  • 智过网:非安全专业能否报考注安?哪些专业可以报考?
  • 基于Whisper语音识别的实时视频字幕生成 (一): 流式显示视频帧和音频帧
  • STM32+ESP8266水墨屏天气时钟:文字取模和图片取模教程
  • 华为机试题
  • 【VUE】Vue3+Element Plus动态间距处理
  • 华为 2024 届校园招聘-硬件通⽤/单板开发——第一套(部分题目分享,完整版带答案,共十套)
  • 自己整理的ICT云计算题库四
  • 5.消息队列
  • 基于强化学习的对抗意图识别
  • vue canvas绘制信令图,动态显示标题、宽度、高度
  • 无影云电脑不能连接到本机的调试串口的解决方案
  • gpt科普1 GPT与搜索引擎的对比
  • Element-plus使用中遇到的问题
  • 如何使用Arduino IDE对STM32F103C8T6进行编程
  • 【迅为iMX6Q】开发板 Linux version 6.6.3 SD卡 启动