[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: F9 and KVM



Richard W.M. Jones wrote:
On Thu, May 08, 2008 at 02:22:51AM -0400, Gerry Reno wrote:
  
Ok, I tried creating some fresh images using virt-manager.  I'm not having 
much luck.  I try creating a f7 and f9 vm.  On both installs the installer 
runs slow.  Much slower than equivalent vm in vmware under F7.  Also both 
installs get stuck at prompt to initialize /dev/sda.  When you answer 'yes' 
it takes almost 10 minutes for a prompt to come back and say it had some 
error and retry,ignore,cancel.   I'm wondering if the speed issue is 
related to this being a quad-core machine? 
    

It's more likely down to your hardware either not supporting hardware
virtualization, or supporting it really badly.  Is the kvm-intel or
kvm-amd module loaded into the kernel?  Did 'dmesg' say anything when
it was loaded?  What is in /proc/cpuinfo flags?

Rich.

  
Rich,
  The hardware appears to support hardware virtualization:

======================================================
#
grep svm /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate


Here's what is in /proc/cpuinfo:

======================================================
[root grp-01-10-01 MX_1]# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : AMD Phenom(tm) 9850 Quad-Core Processor
stepping        : 3
cpu MHz         : 1250.000
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate
bogomips        : 2512.94
clflush size    : 64

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : AMD Phenom(tm) 9850 Quad-Core Processor
stepping        : 3
cpu MHz         : 1250.000
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate
bogomips        : 2512.94
clflush size    : 64

processor       : 2
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : AMD Phenom(tm) 9850 Quad-Core Processor
stepping        : 3
cpu MHz         : 1250.000
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate
bogomips        : 2512.94
clflush size    : 64

processor       : 3
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : AMD Phenom(tm) 9850 Quad-Core Processor
stepping        : 3
cpu MHz         : 1250.000
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 3
cpu cores       : 4
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs ts ttp tm stc 100mhzsteps hwpstate
bogomips        : 2512.94
clflush size    : 64

======================================================

But I notice from dmesg that it reports different capability for cpus (notice the bogomips):

======================================================
CPU0: AMD Phenom(tm) 9850 Quad-Core Processor stepping 03
Booting processor 1/1 ip 4000
CPU 1 irqstacks, hard=c07ba000 soft=c079a000
Initializing CPU#1
Calibrating delay using timer specific routine.. 5022.86 BogoMIPS (lpj=2511432)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 1(4) -> Core 2
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
CPU1: AMD Phenom(tm) 9850 Quad-Core Processor stepping 03
Booting processor 2/2 ip 4000
CPU 2 irqstacks, hard=c07bb000 soft=c079b000
Initializing CPU#2
Calibrating delay using timer specific routine.. 5022.84 BogoMIPS (lpj=2511421)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 2(4) -> Core 1
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#2.
CPU2: AMD Phenom(tm) 9850 Quad-Core Processor stepping 03
Booting processor 3/3 ip 4000
CPU 3 irqstacks, hard=c07bc000 soft=c079c000
Initializing CPU#3
Calibrating delay using timer specific routine.. 5022.85 BogoMIPS (lpj=2511426)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 3(4) -> Core 3
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#3.
CPU3: AMD Phenom(tm) 9850 Quad-Core Processor stepping 03
Total of 4 processors activated (20094.44 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
Brought up 4 CPUs
sizeof(vma)=84 bytes
sizeof(page)=32 bytes
sizeof(inode)=340 bytes
sizeof(dentry)=132 bytes
sizeof(ext3inode)=492 bytes
sizeof(buffer_head)=56 bytes
sizeof(skbuff)=176 bytes
sizeof(task_struct)=3728 bytes
CPU0 attaching sched-domain:
 domain 0: span 0000000f
  groups: 00000001 00000002 00000004 00000008
CPU1 attaching sched-domain:
 domain 0: span 0000000f
  groups: 00000002 00000004 00000008 00000001
CPU2 attaching sched-domain:
 domain 0: span 0000000f
  groups: 00000004 00000008 00000001 00000002
CPU3 attaching sched-domain:
 domain 0: span 0000000f
  groups: 00000008 00000001 00000002 00000004
net_namespace: 548 bytes
Booting paravirtualized kernel on bare hardware
Time: 16:44:18  Date: 05/06/08

======================================================

[root grp-01-10-01 MX_1]# modprobe -l | grep -i kvm
/lib/modules/2.6.25-14.fc9.i686/kernel/arch/x86/kvm/kvm-amd.ko
/lib/modules/2.6.25-14.fc9.i686/kernel/arch/x86/kvm/kvm-intel.ko
/lib/modules/2.6.25-14.fc9.i686/kernel/arch/x86/kvm/kvm.ko

======================================================

# dmesg | grep -i kvm
#

======================================================


I see no messages in dmesg about any problem related to kvm.  The cpu speed looks to be half in /proc/cpuinfo as compared with dmesg.  That's a little strange.


Regards,
Gerry




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]