* Ubuntu Gutsy host / XP guest / -smp 2
@ 2008-03-31 21:11 David Abrahams
2008-04-02 6:50 ` Avi Kivity
0 siblings, 1 reply; 11+ messages in thread
From: David Abrahams @ 2008-03-31 21:11 UTC (permalink / raw)
To: kvm-devel
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,
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-03-31 21:11 Ubuntu Gutsy host / XP guest / -smp 2 David Abrahams
@ 2008-04-02 6:50 ` Avi Kivity
2008-04-02 16:48 ` David Abrahams
2008-04-04 16:14 ` David Abrahams
0 siblings, 2 replies; 11+ messages in thread
From: Avi Kivity @ 2008-04-02 6:50 UTC (permalink / raw)
To: David Abrahams; +Cc: kvm-devel
David Abrahams wrote:
> 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?
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-02 6:50 ` Avi Kivity
@ 2008-04-02 16:48 ` David Abrahams
2008-04-03 1:15 ` Liu, Eric E
2008-04-03 2:02 ` Jim Paris
2008-04-04 16:14 ` David Abrahams
1 sibling, 2 replies; 11+ messages in thread
From: David Abrahams @ 2008-04-02 16:48 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel
on Wed Apr 02 2008, Avi Kivity <avi-AT-qumranet.com> wrote:
> David Abrahams wrote:
>> 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?
> 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.
> 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,
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-02 16:48 ` David Abrahams
@ 2008-04-03 1:15 ` Liu, Eric E
2008-04-03 2:02 ` Jim Paris
1 sibling, 0 replies; 11+ messages in thread
From: Liu, Eric E @ 2008-04-03 1:15 UTC (permalink / raw)
To: David Abrahams, Avi Kivity; +Cc: kvm-devel
David Abrahams wrote:
> on Wed Apr 02 2008, Avi Kivity <avi-AT-qumranet.com> wrote:
>
>> David Abrahams wrote:
>>> 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?
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-02 16:48 ` David Abrahams
2008-04-03 1:15 ` Liu, Eric E
@ 2008-04-03 2:02 ` Jim Paris
1 sibling, 0 replies; 11+ messages in thread
From: Jim Paris @ 2008-04-03 2:02 UTC (permalink / raw)
To: David Abrahams; +Cc: kvm-devel, Avi Kivity
David Abrahams wrote:
> > 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-02 6:50 ` Avi Kivity
2008-04-02 16:48 ` David Abrahams
@ 2008-04-04 16:14 ` David Abrahams
2008-04-05 7:25 ` Avi Kivity
1 sibling, 1 reply; 11+ messages in thread
From: David Abrahams @ 2008-04-04 16:14 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel
on Wed Apr 02 2008, Avi Kivity <avi-AT-qumranet.com> wrote:
> David Abrahams wrote:
>> 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
> 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.
> What HAL do you see in device manager?
Jim Paris wrote:
> 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,
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-04 16:14 ` David Abrahams
@ 2008-04-05 7:25 ` Avi Kivity
2008-04-12 0:02 ` David Abrahams
0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2008-04-05 7:25 UTC (permalink / raw)
To: David Abrahams; +Cc: kvm-devel
David Abrahams wrote:
> on Wed Apr 02 2008, Avi Kivity <avi-AT-qumranet.com> wrote:
>
>
>> David Abrahams wrote:
>>
>>> 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
>
>
Versions of kvm producing this sort of output are common in
archaeological digs. Please try a more recent release.
>> 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.
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-05 7:25 ` Avi Kivity
@ 2008-04-12 0:02 ` David Abrahams
2008-04-20 10:33 ` Avi Kivity
0 siblings, 1 reply; 11+ messages in thread
From: David Abrahams @ 2008-04-12 0:02 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel
Avi Kivity wrote:
> David Abrahams wrote:
>> on Wed Apr 02 2008, Avi Kivity <avi-AT-qumranet.com> wrote:
>>
>>
>>> David Abrahams wrote:
>>>
>>>> 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
>>
>>
>
> 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.
>>> 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?
> 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?
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-12 0:02 ` David Abrahams
@ 2008-04-20 10:33 ` Avi Kivity
2008-04-23 19:02 ` David Abrahams
0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2008-04-20 10:33 UTC (permalink / raw)
To: David Abrahams; +Cc: kvm-devel
David Abrahams wrote:
>>>
>>>
>> 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.
>
>
That's up to the distro maintainers, or concerned users (who may either
volunteer work or apply pressure).
>>>> 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?
>
>
Follow http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround,
substituting your desired HAL for "Standard PC".
>> 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.
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-20 10:33 ` Avi Kivity
@ 2008-04-23 19:02 ` David Abrahams
2008-04-23 21:01 ` Avi Kivity
0 siblings, 1 reply; 11+ messages in thread
From: David Abrahams @ 2008-04-23 19:02 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel
Avi Kivity wrote:
> David Abrahams wrote:
>>>>
>>> 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.
>
> 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.
>>>>> 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?
>>
>>
>
> Follow http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround,
> substituting your desired HAL for "Standard PC".
Thanks.
>>> 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?
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ubuntu Gutsy host / XP guest / -smp 2
2008-04-23 19:02 ` David Abrahams
@ 2008-04-23 21:01 ` Avi Kivity
0 siblings, 0 replies; 11+ messages in thread
From: Avi Kivity @ 2008-04-23 21:01 UTC (permalink / raw)
To: David Abrahams; +Cc: kvm-devel
David Abrahams wrote:
>>>> 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
FlexPriority.
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-04-23 21:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-31 21:11 Ubuntu Gutsy host / XP guest / -smp 2 David Abrahams
2008-04-02 6:50 ` Avi Kivity
2008-04-02 16:48 ` David Abrahams
2008-04-03 1:15 ` Liu, Eric E
2008-04-03 2:02 ` Jim Paris
2008-04-04 16:14 ` David Abrahams
2008-04-05 7:25 ` Avi Kivity
2008-04-12 0:02 ` David Abrahams
2008-04-20 10:33 ` Avi Kivity
2008-04-23 19:02 ` David Abrahams
2008-04-23 21:01 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox