annotate memo.txt @ 17:170f04992ccb default tip

add work log that result of count time
author taiki
date Wed, 14 Jan 2015 19:30:55 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
1 ## VM 2 node から計測
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
2
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
3 /media/fcs 以下に
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
4
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
5 gateway/fedora20_09.xml
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
6 gateway/fedora20_09.img
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
7
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
8 gateway2/fedora20_10.xml
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
9 gateway2/fedora20_10.img
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
10
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
11 をそれぞれ作成
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
12
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
13 でそれぞれ実行
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
14
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
15 gateway2 上での例
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
16 virsh define /media/fcs/gateway2/fedora20_10.xml
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
17 virsh start fedora20_10
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
18
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
19
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
20 ansible を実行する host に sshconfig.counttime を作成
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
21 鍵はすべて ansible をつかう client におく
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
22 このファイルも client に。
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
23
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
24 Host gateway
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
25 HostName gateway
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
26 IdentityFile ~/.ssh/bldsv
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
27 User xxxxx
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
28 Host gateway2
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
29 HostName gateway2
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
30 IdentityFile ~/.ssh/bldsv
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
31 User xxxxx
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
32 Host 192.168.122.18
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
33 User xxx
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
34 Identityfile counttime
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
35 Proxycommand ssh -F sshcondig.counttime gateway nc -w 120 %h %p
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
36
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
37
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
38 各 VM の ip address を知りたい
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
39
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
40 /var/lib/libvirt/dnsmasq/default.leases
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
41
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
42 からとれる
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
43 中身はこんな感じ
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
44
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
45 1421178594 52:54:00:44:02:54 192.168.122.18 * 01:52:54:00:44:02:54
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
46
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
47 そういえば raw だった…
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
48
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
49 qemu-img convert -O qcow2 fedora20_09.img fedora20_09.qcow2
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
50
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
51 というわけで qcow2 へ変換
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
52
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
53 filebench の測定結果を正しくするため、
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
54
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
55 echo 0 > /proc/sys/kernel/randomize_va_space
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
56
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
57 しとく
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
58
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
59 その間に、なんとかかんとかに hydra を install
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
60 yum install hydra
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
61
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
62 gateway2 の qcow2 形式の測定結果
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
63 あんまり raw と変わらない感ある
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
64
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
65 statfile1 15995ops 266ops/s 0.0mb/s 0.2ms/op 2216us/op-cpu [0ms - 1842ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
66 deletefile1 16001ops 267ops/s 0.0mb/s 4.9ms/op 5053us/op-cpu [0ms - 2983ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
67 closefile3 16011ops 267ops/s 0.0mb/s 0.0ms/op 2162us/op-cpu [0ms - 6ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
68 readfile1 16017ops 267ops/s 33.8mb/s 23.3ms/op 4302us/op-cpu [0ms - 2322ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
69 openfile2 16020ops 267ops/s 0.0mb/s 0.3ms/op 2232us/op-cpu [0ms - 1842ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
70 closefile2 16023ops 267ops/s 0.0mb/s 0.0ms/op 2148us/op-cpu [0ms - 4ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
71 appendfilerand1 16025ops 267ops/s 2.1mb/s 38.2ms/op 6767us/op-cpu [0ms - 2407ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
72 openfile1 16031ops 267ops/s 0.0mb/s 0.1ms/op 2205us/op-cpu [0ms - 68ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
73 closefile1 16033ops 267ops/s 0.0mb/s 0.0ms/op 2132us/op-cpu [0ms - 6ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
74 wrtfile1 16035ops 267ops/s 32.9mb/s 1.3ms/op 2710us/op-cpu [0ms - 781ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
75 createfile1 16041ops 267ops/s 0.0mb/s 11.4ms/op 2653us/op-cpu [0ms - 2284ms]
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
76 1037: 95.813: IO Summary: 176232 ops, 2936.273 ops/s, (267/534 r/w), 68.8mb/s, 433us cpu/op, 26.5ms latency
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
77
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
78 gateway でも動かす
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
79
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
80 IP address を調べる
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
81 192.168.122.18
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
82
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
83 鍵作成
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
84 .ssh/counttime
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
85 .ssh/counttime.pub
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
86
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
87 gateway gateway2 で、
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
88 scp ~/.ssh/counttime.pub xxx@192.168.122.18:
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
89
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
90 送信。
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
91
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
92 gateway gateway2 両方の VM fedora20_XX で、いつものやつを
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
93
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
94 mkdir .ssh
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
95 chmod 700 .ssh
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
96 mv counttime.pub .ssh
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
97 touch .ssh/authorized_keys
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
98 cat .ssh/counttime.pub > .ssh/authorized_keys
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
99 chmod 600 .ssh/authorized_keys
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
100
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
101 これで鍵を使って pass なしで login 可能に
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
102
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
103
170f04992ccb add work log that result of count time
taiki
parents:
diff changeset
104