找回密码
 注册
查看: 659|回复: 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; done
1 b. m8 \$ {  p+ }2 c" D3 C1000+0 records in
4 E+ [; G$ J" A/ _0 B& g1000+0 records out
1 G/ i1 K$ Q6 Z8 C# h3 ]1048576000 bytes (1.0 GB) copied, 6.32163 s, 166 MB/s( r$ ]' d3 O4 g* A( O
1000+0 records in/ ~2 O5 M1 v/ k1 b! c$ T% t
1000+0 records out
  \4 }9 z" l7 L: j* _1048576000 bytes (1.0 GB) copied, 5.44758 s, 192 MB/s  c! d) \; U1 C' Q
1000+0 records in4 u5 ]( {: h: |1 _/ L9 I- q: J
1000+0 records out
( t8 C3 b. }) Z% A1048576000 bytes (1.0 GB) copied, 6.76302 s, 155 MB/s
6 x2 t/ ]2 }  j1 b) u6 B1000+0 records in
/ T2 @; q5 P! w2 R$ [" p1000+0 records out1 _4 ]0 y( B  g) @2 C
1048576000 bytes (1.0 GB) copied, 9.26751 s, 113 MB/s
. A) L8 }6 B7 s% H' X8 Z! V1000+0 records in
7 O# Q0 b5 W) E2 d: D1000+0 records out
$ E* |7 Q2 Z$ u3 u/ `! \1048576000 bytes (1.0 GB) copied, 8.68525 s, 121 MB/s
6 x9 Y! X; Q  g8 y% C[root@testssd ~]# for i in {1..5}; do dd if=/dev/zero of=/nfstest/test1 bs=1M count=1000; done
% ]- R2 i- L5 O- E- k! ydd: failed to open ‘/nfstest/test1’: No such file or directory
; f- Z% v$ S  }" D: }- O$ C7 T! odd: failed to open ‘/nfstest/test1’: No such file or directory
2 ]& V& N) c* a2 D( Idd: failed to open ‘/nfstest/test1’: No such file or directory
/ X0 ]' q6 x6 P; u# ?' W- k/ X- add: failed to open ‘/nfstest/test1’: No such file or directory
* q8 F, m( m6 U6 P& kdd: failed to open ‘/nfstest/test1’: No such file or directory8 `6 r6 o% j& ~' t  b
[root@testssd ~]#  mkdir /nfstest
: t+ Q# _( T5 X$ R. l[root@testssd ~]# for i in {1..5}; do dd if=/dev/zero of=/nfstest/test1 bs=1M count=1000; done
$ h6 B5 ^( l- \3 S) [5 Y3 A1000+0 records in
4 |7 n9 h: g9 U% Q1000+0 records out
" N% r3 f/ |0 Z% G1048576000 bytes (1.0 GB) copied, 10.9929 s, 95.4 MB/s
3 q7 {8 U2 o! v; R6 S  V6 C1000+0 records in
' H" `6 S/ s* `) \1000+0 records out
. x: f, c; X" ~/ ?" Q. @# t1048576000 bytes (1.0 GB) copied, 9.55931 s, 110 MB/s" B0 G# _4 x" X( i- V9 i* F
1000+0 records in- ^7 O" m* y( \& G4 |3 F  G
1000+0 records out
6 O, p; R9 G9 P1 T, q2 o1048576000 bytes (1.0 GB) copied, 10.4851 s, 100 MB/s
$ }- t( j  O. c2 |' p1000+0 records in
( }& ], I0 @$ N2 [, o" @) J  U1000+0 records out/ p1 X% P5 M  Z" ?0 \3 e
1048576000 bytes (1.0 GB) copied, 10.3672 s, 101 MB/s/ v, R+ g, n. p" Q# s9 c
1000+0 records in
( }2 B9 y1 b' X! J1000+0 records out& z0 D# h+ Q. R2 y
1048576000 bytes (1.0 GB) copied, 10.7387 s, 97.6 MB/s( S( d: h( x) k% J2 q! i; g% ?4 y
[root@testssd ~]# for i in {1..5}; do dd if=/dev/zero of=/tmp/test1 bs=1M count=1000 iflag=direct; done
! t8 b- a; I5 x7 @/ w: `% l% bdd: failed to open ‘/dev/zero’: Invalid argument
2 B: O8 l4 \, X2 r; ]) ?+ Ddd: failed to open ‘/dev/zero’: Invalid argument, w5 A3 {- O: a. U1 E$ N8 j
dd: failed to open ‘/dev/zero’: Invalid argument* L: N, W2 c6 j: U( z, D, l- [7 k
dd: failed to open ‘/dev/zero’: Invalid argument7 a' w" o# _/ _8 P
dd: failed to open ‘/dev/zero’: Invalid argument
9 E' f1 W% C0 @6 A0 F[root@testssd ~]# for i in {1..5}; do dd of=/dev/null if=/tmp/test1 bs=1M count=1000; done
* c" ^0 R- W& l* s7 L2 J1000+0 records in5 H$ w$ v  P# T" o
1000+0 records out
: Z( }/ _8 z; v. u9 P8 F* r" b, P1048576000 bytes (1.0 GB) copied, 1.56524 s, 670 MB/s
) e+ P' H! I8 B0 T. X. S1000+0 records in
8 g2 l+ V4 a8 [9 J$ A1000+0 records out
3 U8 f* N7 w/ ^) y1048576000 bytes (1.0 GB) copied, 0.17828 s, 5.9 GB/s
, R! C& k2 _& D2 T2 _, z7 z1000+0 records in6 H& k! h2 b7 h
1000+0 records out
6 r  t& A) O$ z4 D+ p1048576000 bytes (1.0 GB) copied, 0.196089 s, 5.3 GB/s
$ s5 |, [) F" Y& [$ x  H4 Y. q! R' e$ I1000+0 records in
. _  R' ^, ^( ?( l/ J  V- G1000+0 records out
3 V, J& I+ ]; N- q1048576000 bytes (1.0 GB) copied, 0.590726 s, 1.8 GB/s  d. z% @2 C' Y8 B4 ?: t; e
1000+0 records in
- x6 B, X5 H8 e2 g' A5 K1000+0 records out" b, D9 k8 `1 Z4 _5 \0 R5 E6 \. ~/ L
1048576000 bytes (1.0 GB) copied, 0.219955 s, 4.8 GB/s
0 I9 s+ x$ m2 L% |4 f[root@testssd ~]#
% H. e1 X+ D- b; L4 w1 B' v+ |7 ^
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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