Gentoo Archives: gentoo-user-ru

From: Alexander Tiurin <arcam@××××××.com>
To: gentoo-user-ru@l.g.o
Subject: Re: [gentoo-user-ru] qemu-kvm CPU overhead
Date: Mon, 06 Dec 2010 21:19:40
Message-Id: 20101207001850.3d97fa50@fromru.com
In Reply to: Re: [gentoo-user-ru] qemu-kvm CPU overhead by Edward Hades
1 On Mon, 6 Dec 2010 15:40:31 +0300
2 "Viktor V. Kudlak" <info@××××××.ru> wrote:
3
4 VVK> 6 декабря 2010 г. 15:38 пользователь Viktor V. Kudlak
5 VVK> <info@××××××.ru> написал:
6 VVK> > А с какими параметрами пускаете KVM, какое состояние свободной
7 VVK> > памяти (free) в госте и мастере.
8 VVK> > что за процессор у мастера, какая система гостя?.
9 VVK> >
10 VVK> > /proc/cpuinfo
11 VVK> > free
12 VVK> > uname -a
13 VVK> >
14 VVK> > Сколько процессоров отдаете гостю?
15 VVK>
16 VVK> В добавок к этому, кто владелец /dev/kvm (ls -lh /dev/kvm), в каких
17 VVK> группах вы находитесь:
18 VVK> grep `whoami` /etc/group
19 VVK>
20 VVK>
21
22
23 EH> On Mon, 6 Dec 2010 18:41:44 +0100
24 EH> dward Hades <edward.hades@×××××.com> wrote:
25
26 EH> 2010/12/6 Viktor V. Kudlak <info@××××××.ru>:
27 EH> > В добавок к этому, кто владелец /dev/kvm (ls -lh /dev/kvm), в
28 EH> > каких группах вы находитесь:
29 EH> > grep `whoami` /etc/group
30 EH>
31 EH> Извините, что встреваю, рекомендую команду id
32 EH>
33 EH>
34
35 ===== Guest
36
37 Запуск
38 kvm -m 512 \
39 -enable-kvm \
40 -nographic \
41 -cpu host \
42 -smp 1 \
43 -net nic,macaddr=$lan1,model=e1000 \
44 -net vde,sock=/tmp/LAN1,vlan=0,port=2 \
45 -net nic,macaddr=$eth1,model=e1000 \
46 -net nic,macaddr=$to_gw1,model=e1000 \
47 -net vde,sock=/tmp/LAN1,vlan=1,port=10 \
48 -drive file="./gh.img" \
49 -name "GH" \
50 -localtime \
51 &
52
53
54
55
56 $ free -m
57 total used free shared buffers
58 cached Mem: 492 43 448 0
59 2 18 -/+ buffers/cache: 22 469
60 Swap: 0 0 0
61
62
63
64
65 $ cat /proc/cpuinfo
66 processor : 0
67 vendor_id : GenuineIntel
68 cpu family : 6
69 model : 23
70 model name : Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
71 stepping : 7
72 cpu MHz : 2671.164
73 cache size : 4096 KB
74 fpu : yes
75 fpu_exception : yes
76 cpuid level : 10
77 wp : yes
78 flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge
79 mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm
80 constant_tsc up rep_good pni ssse3 cx16 sse4_1 hypervisor lahf_lm
81 bogomips : 5342.32 clflush size : 64
82 cache_alignment : 64 address sizes : 40 bits physical, 48
83 bits virtual power management:
84
85
86
87 $ uname -a
88 Linux gh 2.6.34-hardened-r6-revision4 #13 SMP Sun Nov 7
89 01:28:06 MSK 2010 x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
90 GenuineIntel GNU/Linux
91
92
93
94 Ядер в guest 1.
95
96
97
98
99
100
101
102
103 ==== Host
104
105 $ free -m
106 total used free shared buffers
107 cached Mem: 5961 5901 60 0
108 464 1585 -/+ buffers/cache: 3850 2111
109 Swap: 956 21 935
110
111
112
113
114 $ uname -a
115 Linux localhost 2.6.32-gentoo-r22-custom #1 SMP PREEMPT Thu Dec 2
116 00:05:36 MSK 2010 x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
117 GenuineIntel GNU/Linux
118
119
120
121
122
123 $ ls -lh /dev/kvm
124 crw-rw----+ 1 root kvm 10, 232 Дек 4 22:11 /dev/kvm
125
126
127
128
129 $ getfacl /dev/kvm
130 getfacl: Removing leading '/' from absolute path names
131 # file: dev/kvm
132 # owner: root
133 # group: kvm
134 user::rw-
135 user:sanches:rw-
136 group::rw-
137 mask::rw-
138 other::---
139
140
141
142
143 $ id
144 uid=1000(sanches) gid=1000(sanches)
145 группы=1000(sanches),6(disk),7(lp),10(wheel),14(uucp),18(audio),19(cdrom),27(video),80(cdrw),85(usb),995(vboxusers),994(crontab),992(kvm)
146
147
148
149 $ cat /proc/cpuinfo в атаче.

Attachments

File name MIME type
cpuinfo application/octet-stream

Replies

Subject Author
Re: [gentoo-user-ru] qemu-kvm CPU overhead Pavel Labushev <p.labushev@×××××.com>