找回密码
 注册
查看: 538|回复: 1

测试磁盘读写速度dstat命令

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-8-3 09:52:11 | 显示全部楼层 |阅读模式
[root@ceph-1 ~]# dstat -td -D /dev/vdb -o disk.csv
* ~+ E; `- q- W% w1 _-bash: dstat: command not found& f# U) y; V9 `, B" v
[root@ceph-1 ~]# yum provides dstat3 g+ x5 u% X3 s* v4 Z
Loaded plugins: product-id, search-disabled-repos, subscription-manager
: X$ L% d0 T  g* {7 ^% C; b; S
+ G4 R* a8 B6 h- v( i* SThis system is not registered with an entitlement server. You can use subscription-manager to register.
& C* ~3 g; u7 K' @2 I, f% Z& s! O# ?+ U% a( l- j; b( k5 l' `
dstat-0.7.2-12.el7.noarch : Versatile resource statistics tool& p) M. D! y/ O1 {. T! c
Repo        : Base-os
" ^4 f7 S& N$ F7 o2 v
$ e  `9 i& ?: @% l5 V6 v
2 Y3 m$ d# R8 u) Z( w4 l+ M2 V' B. D7 O2 A* z: p" y
[root@ceph-1 ~]# yum install -y dstat2 i2 F) _" |; X9 ?1 h4 t5 ]
Loaded plugins: product-id, search-disabled-repos, subscription-manager$ O% a7 q7 C' L9 s8 _) }
/ {! \: p; N; \4 r8 f" n2 |* v
This system is not registered with an entitlement server. You can use subscription-manager to register.) ~3 Z: O# I+ g# p; p0 V$ R
1 A" B" X! d$ \
Base-os                                                                              | 2.8 kB  00:00:00     2 @! [: t4 F& u
ceph-local                                                                           | 2.9 kB  00:00:00     / v2 k( `( B/ d- N1 h: t
Could not get metalink https://mirrors.fedoraproject.or ... h=x86_64&infra=$infra&content=$contentdir error was
5 S2 D) b5 U" Z: u" l0 K14: curl#6 - "Could not resolve host: mirrors.fedoraproject.org; Unknown error"
+ B' n. g6 o+ ^9 sepel                                                                                 | 4.7 kB  00:00:00     3 x8 M" I- R# T9 N1 r, D
http://mirrors.bfsu.edu.cn/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
+ _0 Q; F6 ?" d' fTrying other mirror.
8 h6 H4 |& y- L" ~epel                                                                                 | 4.7 kB  00:00:00     
# I! `$ s2 V0 }$ w( b! D4 T' Zhttps://mirror.sjtu.edu.cn/fedor ... epodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel  k1 `+ G2 I2 B; D
Trying other mirror.
5 E" Z8 m( K! j' F
# y* g( e' A7 y7 [) _, R  g4 C# t! _2 r" P, y; T8 ?/ R
--> Running transaction check
, B5 |9 B( C" ?* D$ ~% `6 }---> Package dstat.noarch 0:0.7.2-12.el7 will be installed
, [7 O, t- S8 P  U6 ]; \--> Finished Dependency Resolution
' S4 v' R1 c- j! s5 o. X& j" ~# a; p( A' S! H+ m
Dependencies Resolved) M/ P' z4 T! B& V- L& J
- m% D8 d, }& O$ u$ S0 @" E
============================================================================================================' c, L/ `- K" @! j. y+ P
Package               Arch                   Version                         Repository               Size2 l* F+ e7 ~( I/ H: B" q- |
============================================================================================================6 ^# o( p$ G, F  [) S! \3 a
Installing:) ]6 f4 x" `  ~
dstat                 noarch                 0.7.2-12.el7                    Base-os                 163 k
0 [" W- f9 H1 C$ C  H& [( |& _* ]2 t' f2 |2 ?  ^5 T3 Y. p2 Y: E
Transaction Summary8 |! l6 {& V2 W4 k5 v9 ^
============================================================================================================7 W, `! d; U" @
Install  1 Package0 C8 ~1 L) r& J/ O

! Q. z) W! Z9 R3 ZTotal download size: 163 k0 q8 p5 B/ H- z# Z/ `3 x
Installed size: 752 k
0 P$ \  t6 F8 ]# b# Y) x: [! aDownloading packages:: j4 [. L$ J! }9 X
dstat-0.7.2-12.el7.noarch.rpm                                                        | 163 kB  00:00:00     - J) N, W4 U  d
Running transaction check
# [9 a  A- a: ?Running transaction test" ]- z  u4 O( h$ [
Transaction test succeeded" I4 k, F, ]1 m8 A4 H
Running transaction2 X% a( c9 U: z7 R7 ]
  Installing : dstat-0.7.2-12.el7.noarch                                                                1/1
5 v$ \+ [; V4 r# Z. R  Verifying  : dstat-0.7.2-12.el7.noarch                                                                1/1   ?% [$ c: r& l5 D9 }

- g, s; D* L2 k2 n1 B+ g+ U5 e8 \Installed:1 [' |+ D% o/ Z9 P4 c. a/ V
  dstat.noarch 0:0.7.2-12.el7                                                                              
. l, C1 S) B' R. }
3 m+ c; E  c# [: y8 Q* }Complete!/ [" n: N$ L9 |8 m* _. h
[root@ceph-1 ~]# dstat -td -D /dev/vdb -o disk.csv
: n2 a- B; y6 B----system---- --dsk/vdb--
/ j' M$ N+ ?8 e, y0 R: K) ?; z; j     time     | read  writ4 v0 U! A2 v5 R: D2 J- G
03-08 09:47:01|  12k 6310B( Y0 Q, f  s8 T' a
03-08 09:47:02|   0     0
) u3 ^0 U7 S# e( {03-08 09:47:03|   0     0
( o/ j3 d0 z9 K  ^03-08 09:47:04|   0     0
$ e0 y4 s/ ?( {, ~2 _, g03-08 09:47:05|   0     0
( D3 }% H2 _, i) ~03-08 09:47:06|   0     0 " _$ R* m& X' {1 H
03-08 09:47:07|   0     0 % Q1 Q1 D' c6 M* L/ F; G& s
03-08 09:47:08|   0     0 & O8 L  r( a2 m& Z; w; n
03-08 09:47:09|   0     0
9 c% {* K+ R& Y: U, Z$ t) H& i03-08 09:47:10|   0   128k
8 B& J; I6 V" u03-08 09:47:11|   0     0 / n8 t- [* e/ B; W! b
03-08 09:47:12|   0     0 , m" O4 u# K3 f5 |+ y
03-08 09:47:13|   0     0 9 N- S' R: A( ?8 \2 [2 \
03-08 09:47:14|   0     0
- W- J! X. R- p* b6 J+ c3 Q03-08 09:47:15|   0     0 ' F- v1 _! \- R  }" M3 T6 u
03-08 09:47:16|   0     0
! _7 y' x% a5 ^6 P03-08 09:47:17|   0     0 , L: N, m) k5 l) k4 c! |/ E
03-08 09:47:18|   0     0
0 S- u2 v) b% u0 ~7 h9 u03-08 09:47:19|   0     0 4 C) Z; t+ g* s$ q* w2 @1 v: {
03-08 09:47:20|   0     0
! I) `7 l+ n' v4 z  W9 Q, |03-08 09:47:21|   0     0 6 O+ [& L" {0 ]) u$ t: [0 `
03-08 09:47:22|   0     0
  r& D- F+ H4 u# H. r8 S03-08 09:47:23|   0     0 * Y% i$ C3 r6 R# v
03-08 09:47:24|   0     0
0 J& c% y, S5 l1 H* y03-08 09:47:25|   0     0 ) S7 U. m. _7 O) H
03-08 09:47:26|   0     0
" V; N6 d) ^( T! Q5 D: `' N/ ~03-08 09:47:27|   0     0 2 `+ e* |3 e# z/ W: k
03-08 09:47:28|   0     0
+ Y, C8 ?# E3 T) \/ e9 x: b03-08 09:47:29|   0     0 5 }5 o& e2 ~1 G1 U
03-08 09:47:30|   0     0
5 N3 A( R) V( a/ M7 a7 P" h03-08 09:47:31|   0     0
0 T3 k* h( Z0 T+ x8 u; E5 M# m03-08 09:47:32|   0     0
! s+ D+ r0 P6 E: i03-08 09:47:33|   0     0 / v4 ~9 w4 V, N9 w. h/ E2 F. C. k: O
03-08 09:47:34|   0     0 ! X* e. \) k! H) E# v
03-08 09:47:35|   0     0
8 d% P1 G6 N9 i9 D----system---- --dsk/vdb--2 }' ^" ?: @' P
     time     | read  writ
+ a4 }! F7 I( s: [3 q03-08 09:47:36|   0     0/ G" f: ]" E! f' |5 u" [
; d! f! m) r( }+ I& Y

1 Q% F" H+ F& o; W[root@ceph-2 ~]# yum install -y dstat- }5 E- c. j# L' m( p: E% n
Loaded plugins: product-id, search-disabled-repos, subscription-manager
% ?7 X4 k: T% l$ m5 B  H0 m3 L4 G; H1 v5 a' {+ Q, [0 D; j1 j
This system is not registered with an entitlement server. You can use subscription-manager to register.* z. [. |1 n1 @5 k, S! X+ d
" f' U5 n  [! b& L
Base-os                                                                              | 2.8 kB  00:00:00     & S: ~5 d; a' @/ J7 o
ceph-local                                                                           | 2.9 kB  00:00:00       o3 {0 Z* }5 h8 V
epel/x86_64/metalink                                                                 | 6.6 kB  00:00:00     
' f( b1 z8 U1 ?; Jepel                                                                                 | 4.7 kB  00:00:00     ) q3 `; A9 E2 K) z/ R2 U0 O# p! a$ J, X
(1/2): epel/x86_64/updateinfo                                                        | 1.1 MB  00:00:00     % i8 l6 c) K  P
(2/2): epel/x86_64/primary_db                                                        | 7.0 MB  00:00:00     
5 k3 w+ P* F& y! ?. D8 ^) NResolving Dependencies! `+ X% _6 V$ j: m- `0 r8 v) s
--> Running transaction check1 h8 M7 ]  E; C) H4 j& A
---> Package dstat.noarch 0:0.7.2-12.el7 will be installed- x7 m2 g$ ~: ?  k# ?( z+ y
--> Finished Dependency Resolution
& w4 {7 _3 Q& {0 v/ x3 ^, Q$ ]) m4 R5 o" a$ ?" r# {+ k1 v) e
Dependencies Resolved
. S, \/ x  H. W. n8 ^. j6 x/ `* M/ I/ u& p+ H& f$ @
============================================================================================================
$ d) [! `0 T# Z  w/ s1 Z Package               Arch                   Version                         Repository               Size
4 d8 q* {: T* X: @  e/ o8 i8 S============================================================================================================3 T) P+ @! C* X$ s0 n. Q0 p! `% \5 e
Installing:7 j: @2 M0 S6 H! z" A/ d
dstat                 noarch                 0.7.2-12.el7                    Base-os                 163 k
' G+ `4 k) V- u& H* d/ @( S& {0 v- I) I: t* a; a
Transaction Summary
) I- u' d# m* A% C============================================================================================================
8 [& v+ {$ E9 M6 g' {Install  1 Package4 n* F$ y' ^' P; t- {2 z

" U3 z1 D& i" `4 ]$ N+ oTotal download size: 163 k
; S. Y( s! z; P" [' NInstalled size: 752 k* h% s3 [" `, s1 x9 }; e
Downloading packages:9 k9 T7 i& M" V/ k) Q$ a
dstat-0.7.2-12.el7.noarch.rpm                                                        | 163 kB  00:00:00     9 w0 n1 a/ _4 g5 `+ t4 ~0 H; e
Running transaction check2 h: P" n1 S: J
Running transaction test
9 z# z: }/ N* h$ V0 L/ ETransaction test succeeded+ ~+ S6 V% P* s& B/ _2 Z
Running transaction" ~; b5 u5 O% p: h+ B
  Installing : dstat-0.7.2-12.el7.noarch                                                                1/1
+ S; M6 R% O, m1 j  Verifying  : dstat-0.7.2-12.el7.noarch                                                                1/1
9 j) G4 z1 B* |& V% E
, F4 u) r! z, i6 R) }* JInstalled:: n4 g& H- A& h9 {  l6 W
  dstat.noarch 0:0.7.2-12.el7                                                                               3 e2 v* ?. |6 d1 |% G1 N
5 E  M+ {- z7 x/ i) f. l
Complete!# h, Q$ F$ f  }2 V- N
[root@ceph-2 ~]# 2 H. ]/ x" N! c: u

3 f% A7 N7 c2 N9 A
$ T3 P+ k* t. |: e1 z- h5 }
! `- P; `* n" w% t/ f! ^/ A- @& e( q% D1 K# @9 f6 G, r" {

8 ~" n* [( Y7 P: ?4 X9 S( a" w
3 N6 M" I  @3 S, r8 h& y, j) X

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-8-3 10:01:32 | 显示全部楼层
[root@ceph-2 ~]# cat /var/log/ceph/ceph-osd.2.log |awk '$7=="finish_recovery_op" && $8=="pg[0.15("{sub(/.*/,substr($2,1,8),$2);print $0}' |awk '{a[$1,"",$2]++}END{for (j in a )print j,a[j]|"sort -k 1"}'
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:59 , Processed in 0.024401 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表