找回密码
 注册
查看: 660|回复: 0

磁盘读写测试

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-6-16 11:12:02 | 显示全部楼层 |阅读模式
[root@testssd ~]# for i in {1..5}; do dd if=/dev/zero of=/tmp/test1 bs=1M count=1000; done0 \7 j0 Q8 Z/ \- R
1000+0 records in
% a$ a5 Z9 M: U1000+0 records out- Z" ^3 {; C# q, ]$ a5 k- t
1048576000 bytes (1.0 GB) copied, 6.32163 s, 166 MB/s
  ^9 C# w! B  F- z% F& o5 C1000+0 records in
! }: U; A0 c# S" \7 H- o1000+0 records out
- c! A" H" F8 G) _9 b) H" i0 @1048576000 bytes (1.0 GB) copied, 5.44758 s, 192 MB/s( a5 @+ r1 m2 Z
1000+0 records in
0 u' N( i: U! o+ D) V1000+0 records out
& q' n. Z7 Q. }0 W; n7 |1048576000 bytes (1.0 GB) copied, 6.76302 s, 155 MB/s8 }7 [  ^5 i& O% e" }5 }
1000+0 records in$ E- R/ I: H9 ]* m# A
1000+0 records out; W% V+ U6 [( C3 o/ V9 h9 ]
1048576000 bytes (1.0 GB) copied, 9.26751 s, 113 MB/s2 M2 r/ a4 A  r1 _: s3 T& w: s
1000+0 records in
& D( J$ H1 X! o! ^+ Q' W1000+0 records out
7 M1 n, r* E9 g) Z6 a5 O2 X1048576000 bytes (1.0 GB) copied, 8.68525 s, 121 MB/s
$ D* A, {$ T& _! d& `" [  [[root@testssd ~]# for i in {1..5}; do dd if=/dev/zero of=/nfstest/test1 bs=1M count=1000; done
* E0 ^( W/ B7 |dd: failed to open ‘/nfstest/test1’: No such file or directory
" E$ s# Y$ O) Y. Z2 add: failed to open ‘/nfstest/test1’: No such file or directory. W0 [+ @: a. O4 n% Z
dd: failed to open ‘/nfstest/test1’: No such file or directory
% Z( h" d" v7 `5 B) odd: failed to open ‘/nfstest/test1’: No such file or directory8 C& [! z, C- M1 y9 K
dd: failed to open ‘/nfstest/test1’: No such file or directory
. Z3 `6 ]& i, Y3 {; D3 y/ ]* R[root@testssd ~]#  mkdir /nfstest0 d+ i' u/ v4 \
[root@testssd ~]# for i in {1..5}; do dd if=/dev/zero of=/nfstest/test1 bs=1M count=1000; done
* d( P) a9 Y+ F: c% o: B1000+0 records in
5 p1 L2 W( S! T8 j' b5 Q1000+0 records out
! b' Z5 r" f) T' C1 q7 m1048576000 bytes (1.0 GB) copied, 10.9929 s, 95.4 MB/s# }0 v% S- U# F8 R7 I. ?
1000+0 records in
% V/ @/ W4 E; Y0 w' d: T& W9 Z1000+0 records out( U5 Z- Y' O1 j+ b
1048576000 bytes (1.0 GB) copied, 9.55931 s, 110 MB/s
6 D1 e0 u6 I+ w  H' s1000+0 records in' Q) a9 b" f3 `
1000+0 records out# w, c; W6 g" r) d* n+ j5 }  m; J; f
1048576000 bytes (1.0 GB) copied, 10.4851 s, 100 MB/s: Y* \$ Q0 U- f7 B" Q, N+ c
1000+0 records in$ ~' C2 D, l- K, C. A
1000+0 records out
' l( U# j( z; H& q: p3 p1048576000 bytes (1.0 GB) copied, 10.3672 s, 101 MB/s1 k; L; o: v/ z. }
1000+0 records in
) u, I3 v2 V- v. _1 P1000+0 records out
/ R9 c# Z- x. m: j/ e* Q$ a. o1048576000 bytes (1.0 GB) copied, 10.7387 s, 97.6 MB/s* r0 Z8 V( v2 g8 w  W. d) }0 N
[root@testssd ~]# for i in {1..5}; do dd if=/dev/zero of=/tmp/test1 bs=1M count=1000 iflag=direct; done5 @0 C  v6 I9 b
dd: failed to open ‘/dev/zero’: Invalid argument0 U2 d9 B0 K1 z2 o2 x" i
dd: failed to open ‘/dev/zero’: Invalid argument
4 ]& b$ a) x$ m+ W' F( {/ bdd: failed to open ‘/dev/zero’: Invalid argument- H; d3 g. Y# `' ?, q; r" m
dd: failed to open ‘/dev/zero’: Invalid argument' ^8 q; E! N7 I1 W& |3 `% Q7 a
dd: failed to open ‘/dev/zero’: Invalid argument3 ]% V) P1 z& J; d; w
[root@testssd ~]# for i in {1..5}; do dd of=/dev/null if=/tmp/test1 bs=1M count=1000; done/ z- M  x6 n% k
1000+0 records in
* ]1 d1 c0 G2 W6 z1000+0 records out
4 D+ r! k' f8 J1048576000 bytes (1.0 GB) copied, 1.56524 s, 670 MB/s5 o! S$ G; P8 f* M8 m
1000+0 records in
3 g6 \/ j- ^/ ^: L' _1000+0 records out5 o' j: J7 I6 G9 w* f
1048576000 bytes (1.0 GB) copied, 0.17828 s, 5.9 GB/s7 D4 \& N5 x9 f# ~0 q% C# b! @  J
1000+0 records in
7 u. c4 ~6 f$ E; E/ g7 Z: Z0 F+ I9 [1000+0 records out
7 I( L; m3 g1 @# W& }1048576000 bytes (1.0 GB) copied, 0.196089 s, 5.3 GB/s
$ F! O4 D# L' o( Z1000+0 records in
. u9 W& N6 X5 F0 h1 p9 h& @8 N9 ]1000+0 records out; n8 d  x. h- f& _
1048576000 bytes (1.0 GB) copied, 0.590726 s, 1.8 GB/s
+ W4 E; L7 s" ]7 z: ?1000+0 records in2 {! k6 ~9 [$ z* I1 |# a: n
1000+0 records out- U7 D6 `( m' q* b. a* ~
1048576000 bytes (1.0 GB) copied, 0.219955 s, 4.8 GB/s* T" ?4 w' q7 V7 D! q9 S* d
[root@testssd ~]# 0 C' G; J/ \1 p! N  U
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 03:05 , Processed in 0.017046 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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