当前位置:网站首页>《性能之巅第2版》阅读笔记(五)--Disks监测
《性能之巅第2版》阅读笔记(五)--Disks监测
2022-07-21 23:01:00 【jrglinux】
《System Performance: Enterprise and the Cloud, 2nd Edition (2020)》阅读笔记简要记录
9.1 术语
virtual disk | 虚拟磁盘 | An emulation of a storage device |
transport | 传输总线 | The physical bus used for communication, including data transfers (I/O) and other disk commands |
sector | 扇区 | 磁盘上的块,通常512Bytes |
I/O | 读写操作 | 严格讲,I/O只指磁盘的读和写,不可以代指其他磁盘命令。要描述I/O,至少需要方向(读或写)、磁盘地址(位置)以及大小(字节) |
disk command | 磁盘命令 | |
throughput | 吞吐量 | 磁盘的吞吐量是指数据传输速率,通常B/s |
bandwidth | 带宽 | 由硬件限制,是指最大数据传输速率 |
I/O latency | I/O延时 | 一个I/O操作从起始到结束的时间 |
latency outliers | 延时离群点 | 非同寻常的高延时磁盘I/O |
9.2 模型
9.2.2 caching disk
缓存磁盘
命中带来低延时,未命中延时高。
9.2.3 磁盘控制器
Performance may be limited by either of these buses, the disk controller, or the disks
9.3 概念
9.3.1 度量时间
I/O时间组成的示意图:
9.3.2 时间尺度time scales
磁盘I/O的的时间度量级可以从微妙到毫秒到秒甚至更多。
9.3.3 缓存
最好的磁盘I/O就是没有I/O。很多软件栈通过读写缓存来避免磁盘I/O抵达磁盘。
9.3.4 随机I/O和顺序I/O
根据磁盘上的I/O相对位置(磁盘偏移量),分随机I/O和顺序I/O。
从OS角度看,磁盘偏移量不一定是物理磁盘的偏移量。比如硬件提供的虚拟磁盘可能把一块连续偏移量范围映射到多块磁盘。
9.3.5 读写比
I/O的读写比列,与IOPS或者throughput相关。也可以通过一段时间内的比例来表示,比如“系统启动后读的比例占80%”。
9.3.6 I/O大小
I/O的平均大小(字节数),或者I/O大小的分布。
有些磁盘设备,特别是基于闪存的设备,对不同的读写大小有非常不同的行为。比如一个基于闪存的磁盘驱动器可能在4KB读和1MB写时表现的最好。
9.3.7 IOPS并不平等
9.3.8 非数据传输磁盘命令
除了读写I/O,磁盘还可以接受其他命令。
9.3.9 使用率
通过某段时间内磁盘运行工作的忙时间的比例计算而得出。
9.3.10 饱和度
度量因超出资源服务能力而排队的工作。
9.3.11 I/O等待
I/O等待在Linux仍然是个广泛应用的指标。
9.3.12 同步和非同步
如果应用程序和磁盘I/O是异步的,磁盘I/O延时可能不直接影响应用程序性能。
边栏推荐
- Go list 修改元素值
- (Applied intelligence-2022) transgait: gait recognition and ensemble transformer based on multimodality
- Daily question-leetcode814-binary tree pruning recursion
- Félicitations pour la tenue réussie du Forum sur la gestion de l'innovation de produits « innovation et autonomisation » le 16 juillet
- [Dameng database] check the status of the cluster machine on the monitor
- 李彦宏:无人驾驶是人类创造价值最大的创新
- Ioinputstream type
- 智能仪器仪表行业数字化供应链管理系统:加速企业智慧供应链平台转型
- 恭賀《創新·賦能》產品創新管理論壇7月16日成功召開
- Data types and variables
猜你喜欢
Congratulations on the successful convening of the product innovation management forum of innovation empowerment on July 16
[ kitex 源码解读 ] Kitex 扩展性设计思路
uniapp 实现抽奖幸运大转盘功能
(iclr-2021) an image is equivalent to 16x16 words: a transformer for large-scale image recognition
【MySQL必知必会】 存储过程 | 游标
js中splice方法的使用
深入理解完美哈希
如何在页面中添加地图
The difference between join on followed by condition and where followed by condition
Border dynamic effect implementation
随机推荐
JVM类加载和垃圾回收
Digital supply chain management system for intelligent instrument industry: accelerating the transformation of enterprise intelligent supply chain platform
Use of mapmutations in projects
PMP每日一练 | 考试不迷路-7.21
SSM之简单的CRUD
会员营销怎么做? 3个留住顾客的小秘诀!
"Xiaodeng in operation and maintenance" ensures gdpr compliance by auditing user activities and internal changes in the ad domain
(ICLR-2021)一幅图像相当于16X16个words:大规模图像识别的Transformer
service(lb) 和管理的pod
2022/07/18------顺时针打印矩阵
恭賀《創新·賦能》產品創新管理論壇7月16日成功召開
工厂控制室西门子PLC如何集中无线采集多条产线生产数据?
[pan micro ecology] compiling_ jsp/_ login/_ upgrademessage...
数组和对象的一些方法
边框动态效果实现
Join hands with HMS core analysis services to help the efficient growth of games with data
Deep understanding of perfect hash
webservice接口测试
Typescript - syntax introduction
数商云:供应商多场景趋势下,服装企业如何打造灵活应用的SRM管理体系?