Skip to contentSkip to conversation

Ubuntu Gutsy host / XP guest / -smp 2

DISCUSSION David Abrahams 4 participants 11 messages Mar 31, 2008 – Apr 23, 2008 KVM

lore
Share & tools
lore
#0 lore raw

With the title combination, the guest takes nearly 100% of my real CPU time and still only sees one CPU. Is this a known problem, and does it have a known solution?

Thanks in Advance,

Signature · 10 lines
Dave Abrahams
Boost Consulting
http://boost-consulting.com


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
#1 lore raw
Quoted 5 lines · David Abrahams

With the title combination, the guest takes nearly 100% of my real CPU time and still only sees one CPU. Is this a known problem, and does it have a known solution?

Can you send the output of 'kvm_stat -1'? Also, what does the guest think it is doing (in task manager, etc.)?

What HAL do you see in device manager?

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
#2 lore raw
Quoted 8 lines · Avi Kivity
Quoted 5 lines · David Abrahams

With the title combination, the guest takes nearly 100% of my real CPU time and still only sees one CPU. Is this a known problem, and does it have a known solution?

Can you send the output of 'kvm_stat -1'?

I don't appear to have a kvm_stat executable anywhere. How do I acquire that?

Quoted 2 lines

Also, what does the guest
think it is doing (in task manager, etc.)?

System Idle Process :(

Everything is calm in the guest, but "top" in the host shows a kvm process at between 50 and 70 percent of the CPU.

Quoted 1 line

What HAL do you see in device manager?

In the guest? I don't see anything that obviously appears to be HAL in device manager. Could you be more specific?

Sorry to be so clueless, and thanks again in advance,

Signature · 9 lines
Dave Abrahams
Boost Consulting
http://boost-consulting.com

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
#3 lore raw
Quoted 9 lines · David Abrahams
Quoted 7 lines · Avi Kivity
Quoted 5 lines · David Abrahams

With the title combination, the guest takes nearly 100% of my real CPU time and still only sees one CPU. Is this a known problem, and does it have a known solution?

Quoted 4 lines
Quoted 1 line

Can you send the output of 'kvm_stat -1'?

I don't appear to have a kvm_stat executable anywhere. How do I acquire that?

Hi David,
Do you have kvm userspace code? If you have, you can find it in
kvm-userspace/kvm_stat. And you also can get the code from "git clone
git://git.kernel.org/pub/scm/virt/kvm/kvm-userspace.git".

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

#4 lore raw
In reply to David Abrahams
Quoted 4 lines · David Abrahams
Quoted 1 line

What HAL do you see in device manager?

In the guest? I don't see anything that obviously appears to be HAL in device manager. Could you be more specific?

Hi,

He's referring to the Windows computer type -- the entry under "computer" in device manager. See
http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround

-jim

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

#5 lore raw
In reply to Avi Kivity
Quoted 8 lines · Avi Kivity
Quoted 5 lines · David Abrahams

With the title combination, the guest takes nearly 100% of my real CPU time and still only sees one CPU. Is this a known problem, and does it have a known solution?

Can you send the output of 'kvm_stat -1'?

$ ./kvm_stat -1
exits                    5919444     74219
halt_exits               1746937     59420
invlpg                         0         0
io_exits                 2181506      6569
irq_exits                  23055       335
irq_window                  2839        77
mmio_exits                200851         0
pf_fixed                 1160592      6251
pf_guest                   43473       396
request_irq                    0         0
signal_exits               24838       281
tlb_flush                  37381      1132
Quoted 2 lines

Also, what does the guest
think it is doing (in task manager, etc.)?

"System Idle Process"

Note that right now, with my laptop running on battery, kvm is taking up "only" about 50% of the real CPU.

Quoted 1 line

What HAL do you see in device manager?

Quoted 3 lines · Jim Paris

He's referring to the Windows computer type -- the entry under "computer" in device manager. See
http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround

"Standard PC"

For what it's worth, kvm was not started with "-smp 2" when XP was installed; I only discovered that option later.

Thanks,

Signature · 9 lines
Dave Abrahams
Boost Consulting
http://boost-consulting.com

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
#6 lore raw
Quoted 14 lines · David Abrahams
Quoted 10 lines · Avi Kivity
Quoted 6 lines · David Abrahams

With the title combination, the guest takes nearly 100% of my real CPU time and still only sees one CPU. Is this a known problem, and does it have a known solution?

Can you send the output of 'kvm_stat -1'?

Quoted 15 lines
$ ./kvm_stat -1
exits                    5919444     74219
halt_exits               1746937     59420
invlpg                         0         0
io_exits                 2181506      6569
irq_exits                  23055       335
irq_window                  2839        77
mmio_exits                200851         0
pf_fixed                 1160592      6251
pf_guest                   43473       396
request_irq                    0         0
signal_exits               24838       281
tlb_flush                  37381      1132

Versions of kvm producing this sort of output are common in archaeological digs. Please try a more recent release.

Quoted 5 lines
Quoted 2 lines

What HAL do you see in device manager?

"Standard PC"

This HAL does not support SMP. You need the "ACPI Multiprocessor PC" HAL or some such.

Unless you have a recent Intel processor, the combination of SMP and Windows XP will give noticeably lower performance. I recommend sticking with uniprocessor in such cases.

Signature · 8 lines
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
#7 lore raw
Quoted 29 lines · Avi Kivity
Quoted 12 lines · David Abrahams
Quoted 8 lines · Avi Kivity
Quoted 5 lines · David Abrahams

With the title combination, the guest takes nearly 100% of my real CPU time and still only sees one CPU. Is this a known problem, and does it have a known solution?

Can you send the output of 'kvm_stat -1'?

Quoted 15 lines
$ ./kvm_stat -1
exits                    5919444     74219
halt_exits               1746937     59420
invlpg                         0         0
io_exits                 2181506      6569
irq_exits                  23055       335
irq_window                  2839        77
mmio_exits                200851         0
pf_fixed                 1160592      6251
pf_guest                   43473       396
request_irq                    0         0
signal_exits               24838       281
tlb_flush                  37381      1132
Quoted 2 lines

Versions of kvm producing this sort of output are common in archaeological digs. Please try a more recent release.

Well, I'll try Hardy Heron soon enough, I suppose. It's due out in 2 weeks.

I'm sure you understand that most people can't afford to rebuild all their important software so that it stays on the bleeding edge. Have you considered getting more recent versions of kvm into the updates or backports repositories of major distros? I'm not really sure how much influence you can have over such things; I'm just asking.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

What HAL do you see in device manager?

"Standard PC"

This HAL does not support SMP. You need the "ACPI Multiprocessor PC" HAL or some such.

And how would I get that HAL set up?

Quoted 3 lines

Unless you have a recent Intel processor, the combination of SMP and Windows XP will give noticeably lower performance. I recommend sticking with uniprocessor in such cases.

I have a Core Duo; isn't that recent enough?

Signature · 9 lines
Dave Abrahams
Boost Consulting
http://boost-consulting.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
#8 lore raw
Quoted 6 lines · David Abrahams
Quoted 5 lines
Quoted 2 lines

Versions of kvm producing this sort of output are common in archaeological digs. Please try a more recent release.

Quoted 10 lines

Well, I'll try Hardy Heron soon enough, I suppose. It's due out in 2 weeks.

I'm sure you understand that most people can't afford to rebuild all their important software so that it stays on the bleeding edge. Have you considered getting more recent versions of kvm into the updates or backports repositories of major distros? I'm not really sure how much influence you can have over such things; I'm just asking.

That's up to the distro maintainers, or concerned users (who may either volunteer work or apply pressure).

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

What HAL do you see in device manager?

"Standard PC"

Quoted 7 lines
Quoted 3 lines

This HAL does not support SMP. You need the "ACPI Multiprocessor PC" HAL or some such.

And how would I get that HAL set up?

Follow http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround,
substituting your desired HAL for "Standard PC".

Quoted 7 lines
Quoted 4 lines

Unless you have a recent Intel processor, the combination of SMP and Windows XP will give noticeably lower performance. I recommend sticking with uniprocessor in such cases.

I have a Core Duo; isn't that recent enough?

No, this feature is present only on some of the Core 2s, IIRC.

Signature · 8 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
#9 lore raw
Quoted 9 lines · Avi Kivity
Quoted 8 lines · David Abrahams
Quoted 4 lines
Quoted 1 line

Versions of kvm producing this sort of output are common in archaeological digs. Please try a more recent release.

Well, I'll try Hardy Heron soon enough, I suppose. It's due out in 2 weeks.

Quoted 8 lines
Quoted 5 lines

I'm sure you understand that most people can't afford to rebuild all their important software so that it stays on the bleeding edge. Have you considered getting more recent versions of kvm into the updates or backports repositories of major distros? I'm not really sure how much influence you can have over such things; I'm just asking.

That's up to the distro maintainers, or concerned users (who may either volunteer work or apply pressure).

Well Hardy is due out, like, tomorrow or something. Its kvm seems to be much newer.

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

What HAL do you see in device manager?

"Standard PC"

This HAL does not support SMP. You need the "ACPI Multiprocessor PC" HAL or some such.

Quoted 6 lines
Quoted 3 lines

And how would I get that HAL set up?

Follow http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround,
substituting your desired HAL for "Standard PC".

Thanks.

Quoted 9 lines
Quoted 7 lines
Quoted 4 lines

Unless you have a recent Intel processor, the combination of SMP and Windows XP will give noticeably lower performance. I recommend sticking with uniprocessor in such cases.

I have a Core Duo; isn't that recent enough?

No, this feature is present only on some of the Core 2s, IIRC.

Huh. What is the feature called?

Signature · 9 lines
Dave Abrahams
Boost Consulting
http://boost-consulting.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
#10 lore raw
Quoted 5 lines · David Abrahams
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Unless you have a recent Intel processor, the combination of SMP and Windows XP will give noticeably lower performance. I recommend sticking with uniprocessor in such cases.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

I have a Core Duo; isn't that recent enough?

No, this feature is present only on some of the Core 2s, IIRC.

Huh. What is the feature called

FlexPriority.

Signature · 8 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone