Проект

Общее

Профиль

Flashcache » История » Версия 3

Андрей Волков, 2012-06-07 18:01

1 1 Андрей Волков
h1. Flashcache
2
3 2 Андрей Волков
*До fashcache*
4 1 Андрей Волков
<pre>
5
monkey ~ # fio -readonly -name iops -rw=randread -bs=4096 -runtime=20 -iodepth 1 -filename /dev/vda -ioengine libaio -direct=1
6
iops: (g=0): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=1
7
fio 2.0.7
8
Starting 1 process
9
Jobs: 1 (f=1): [r] [100.0% done] [482K/0K /s] [117 /0  iops] [eta 00m:00s]
10
iops: (groupid=0, jobs=1): err= 0: pid=2941
11
  read : io=8892.0KB, bw=455156 B/s, iops=111 , runt= 20005msec
12
    slat (usec): min=8 , max=312 , avg=35.66, stdev=21.26
13
    clat (usec): min=487 , max=68000 , avg=8957.66, stdev=4331.27
14
     lat (usec): min=528 , max=68015 , avg=8995.32, stdev=4332.05
15
    clat percentiles (usec):
16
     |  1.00th=[ 3440],  5.00th=[ 4512], 10.00th=[ 5024], 20.00th=[ 5920],
17
     | 30.00th=[ 6816], 40.00th=[ 7776], 50.00th=[ 8640], 60.00th=[ 9536],
18
     | 70.00th=[10432], 80.00th=[11200], 90.00th=[12096], 95.00th=[12864],
19
     | 99.00th=[27264], 99.50th=[36608], 99.90th=[52992], 99.95th=[60160],
20
     | 99.99th=[68096]
21
    bw (KB/s)  : min=  285, max=  503, per=99.99%, avg=443.95, stdev=49.29
22
    lat (usec) : 500=0.04%
23
    lat (msec) : 2=0.18%, 4=1.62%, 10=64.37%, 20=32.07%, 50=1.57%
24
    lat (msec) : 100=0.13%
25
  cpu          : usr=0.11%, sys=0.61%, ctx=2230, majf=0, minf=21
26
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
27
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
28
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
29
     issued    : total=r=2223/w=0/d=0, short=r=0/w=0/d=0
30
31
Run status group 0 (all jobs):
32
   READ: io=8892KB, aggrb=444KB/s, minb=444KB/s, maxb=444KB/s, mint=20005msec, maxt=20005msec
33
34
Disk stats (read/write):
35
  vda: ios=2197/2, merge=0/7, ticks=19630/103, in_queue=19728, util=98.76%
36 2 Андрей Волков
37
</pre>
38
39
*Холодный кэш*
40
<pre>
41
monkey ~ # fio -readonly -name iops -rw=randread -bs=4096 -runtime=20 -iodepth 1 -filename /dev/vda -ioengine libaio -direct=1
42
iops: (g=0): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=1
43
fio 2.0.7
44
Starting 1 process
45
Jobs: 1 (f=1): [r] [95.2% done] [452K/0K /s] [110 /0  iops] [eta 00m:01s]
46
iops: (groupid=0, jobs=1): err= 0: pid=1497
47
  read : io=8436.0KB, bw=431901 B/s, iops=105 , runt= 20001msec
48
    slat (usec): min=8 , max=70032 , avg=59.42, stdev=1524.52
49
    clat (usec): min=225 , max=133986 , avg=9419.83, stdev=5905.45
50
     lat (usec): min=289 , max=134035 , avg=9480.52, stdev=6126.76
51
    clat percentiles (msec):
52
     |  1.00th=[    3],  5.00th=[    5], 10.00th=[    6], 20.00th=[    7],
53
     | 30.00th=[    8], 40.00th=[    9], 50.00th=[    9], 60.00th=[   10],
54
     | 70.00th=[   11], 80.00th=[   12], 90.00th=[   13], 95.00th=[   14],
55
     | 99.00th=[   28], 99.50th=[   43], 99.90th=[   64], 99.95th=[  126],
56
     | 99.99th=[  135]
57
    bw (KB/s)  : min=  246, max=  502, per=100.00%, avg=421.10, stdev=63.38
58
    lat (usec) : 250=0.09%, 500=0.33%, 750=0.05%
59
    lat (msec) : 2=0.05%, 4=1.38%, 10=61.21%, 20=34.90%, 50=1.71%
60
    lat (msec) : 100=0.19%, 250=0.09%
61
  cpu          : usr=0.07%, sys=0.76%, ctx=2116, majf=0, minf=21
62
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
63
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
64
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
65
     issued    : total=r=2109/w=0/d=0, short=r=0/w=0/d=0
66
67
Run status group 0 (all jobs):
68
   READ: io=8436KB, aggrb=421KB/s, minb=421KB/s, maxb=421KB/s, mint=20001msec, maxt=20001msec
69
70
Disk stats (read/write):
71
  vda: ios=2139/2, merge=1/4, ticks=20365/732, in_queue=21067, util=98.67%
72
73
</pre>
74
75
*Горячий кэш*
76
<pre>
77
monkey ~ # fio -readonly -name iops -rw=randread -bs=4096 -runtime=20 -iodepth 1 -filename /dev/vda -ioengine libaio -direct=1
78
iops: (g=0): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=1
79
fio 2.0.7
80
Starting 1 process
81
Jobs: 1 (f=1): [r] [100.0% done] [426K/0K /s] [104 /0  iops] [eta 00m:00s]
82
iops: (groupid=0, jobs=1): err= 0: pid=1502
83
  read : io=16912KB, bw=865634 B/s, iops=211 , runt= 20006msec
84
    slat (usec): min=7 , max=163 , avg=19.44, stdev=15.56
85
    clat (usec): min=172 , max=105321 , avg=4708.36, stdev=5534.23
86
     lat (usec): min=206 , max=105333 , avg=4728.79, stdev=5540.49
87
    clat percentiles (usec):
88
     |  1.00th=[  203],  5.00th=[  211], 10.00th=[  221], 20.00th=[  231],
89
     | 30.00th=[  241], 40.00th=[  258], 50.00th=[ 2384], 60.00th=[ 6176],
90
     | 70.00th=[ 7968], 80.00th=[ 9664], 90.00th=[11328], 95.00th=[12352],
91
     | 99.00th=[18816], 99.50th=[25216], 99.90th=[51968], 99.95th=[57088],
92
     | 99.99th=[104960]
93
    bw (KB/s)  : min=  302, max=13928, per=100.00%, avg=854.87, stdev=2191.98
94
    lat (usec) : 250=34.08%, 500=15.80%
95
    lat (msec) : 2=0.05%, 4=0.76%, 10=31.86%, 20=16.60%, 50=0.73%
96
    lat (msec) : 100=0.09%, 250=0.02%
97
  cpu          : usr=0.18%, sys=0.66%, ctx=4238, majf=0, minf=21
98
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
99
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
100
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
101
     issued    : total=r=4228/w=0/d=0, short=r=0/w=0/d=0
102
103
Run status group 0 (all jobs):
104
   READ: io=16912KB, aggrb=845KB/s, minb=845KB/s, maxb=845KB/s, mint=20006msec, maxt=20006msec
105
106
Disk stats (read/write):
107
  vda: ios=4205/2, merge=0/7, ticks=19509/68, in_queue=19577, util=98.09%
108 1 Андрей Волков
109
</pre>
110 3 Андрей Волков
111
*Сильно разогретый кэш*
112
113
<pre>
114
monkey ~ # fio -readonly -name iops -rw=randread -bs=4096 -runtime=20 -iodepth 1 -filename /dev/vda -ioengine libaio -direct=1
115
iops: (g=0): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=1
116
fio 2.0.7
117
Starting 1 process
118
Jobs: 1 (f=1): [r] [100.0% done] [469K/0K /s] [114 /0  iops] [eta 00m:00s]  
119
iops: (groupid=0, jobs=1): err= 0: pid=1543
120
  read : io=45572KB, bw=2278.5KB/s, iops=569 , runt= 20001msec
121
    slat (usec): min=8 , max=140 , avg=15.68, stdev=14.67
122
    clat (usec): min=134 , max=74829 , avg=1736.53, stdev=4006.16
123
     lat (usec): min=209 , max=74886 , avg=1752.89, stdev=4010.50
124
    clat percentiles (usec):
125
     |  1.00th=[  179],  5.00th=[  215], 10.00th=[  223], 20.00th=[  233],
126
     | 30.00th=[  237], 40.00th=[  241], 50.00th=[  247], 60.00th=[  251],
127
     | 70.00th=[  258], 80.00th=[  298], 90.00th=[ 8096], 95.00th=[10304],
128
     | 99.00th=[12864], 99.50th=[16320], 99.90th=[36608], 99.95th=[54016],
129
     | 99.99th=[72192]
130
    bw (KB/s)  : min=  328, max=15416, per=100.00%, avg=2324.00, stdev=4584.97
131
    lat (usec) : 250=56.80%, 500=26.99%
132
    lat (msec) : 2=0.03%, 4=0.25%, 10=10.30%, 20=5.27%, 50=0.31%
133
    lat (msec) : 100=0.05%
134
  cpu          : usr=0.33%, sys=1.20%, ctx=11412, majf=0, minf=21
135
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
136
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
137
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
138
     issued    : total=r=11393/w=0/d=0, short=r=0/w=0/d=0
139
140
Run status group 0 (all jobs):
141
   READ: io=45572KB, aggrb=2278KB/s, minb=2278KB/s, maxb=2278KB/s, mint=20001msec, maxt=20001msec
142
143
Disk stats (read/write):
144
  vda: ios=11388/2, merge=0/4, ticks=19568/315, in_queue=19882, util=97.67%
145
</pre>
146
147
*Статистика:*
148
<pre>
149
kvm320-monkey-a-cache: 0 41943040 flashcache stats: 
150
	reads(66944), writes(843)
151
	read hits(35892), read hit percent(53)
152
	replacement(0), write replacement(0)
153
	invalidates(2554)
154
	pending enqueues(0), pending inval(0)
155
	no room(0)
156
	disk reads(31053), disk writes(854) ssd reads(35892) ssd writes(23865)
157
	uncached reads(7188), uncached writes(854), uncached IO requeue(0)
158
	uncached sequential reads(0), uncached sequential writes(0)
159
	pid_adds(0), pid_dels(0), pid_drops(0) pid_expiry(0)
160
161
</pre>