Skip to contentSkip to conversation

Slow PXE boot in qemu.git (fast in qemu-kvm.git)

DISCUSSION Luiz Capitulino 8 participants 18 messages Apr 8, 2011 – Apr 12, 2011 KVM

lore
Share & tools
lore
#0 lore raw

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I tried with qemu.git v0.13.0 in order to check if this was a regression, but I got the same problem...

Then I inspected qemu-kvm.git under the assumption that it could have a fix that wasn't commited to qemu.git. Found this:

- commit 0836b77f0f65d56d08bdeffbac25cd6d78267dc9 which is merge, works

- commit cc015e9a5dde2f03f123357fa060acbdfcd570a4 does not work (it's slow)

I tried a bisect, but it brakes due to gcc4 vs. gcc3 changes. Then I inspected commits manually, and found out that commit 64d7e9a4 doesn't work, which makes me think that the fix could be in the conflict resolution of 0836b77f, which makes me remember that I'm late for diner, so my conclusions at this point are not reliable :)

Ideas?

#1 lore raw
Quoted 19 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I tried with qemu.git v0.13.0 in order to check if this was a regression, but I got the same problem...

Then I inspected qemu-kvm.git under the assumption that it could have a fix that wasn't commited to qemu.git. Found this:

- commit 0836b77f0f65d56d08bdeffbac25cd6d78267dc9 which is merge, works

Quoted 7 lines

- commit cc015e9a5dde2f03f123357fa060acbdfcd570a4 does not work (it's slow)

I tried a bisect, but it brakes due to gcc4 vs. gcc3 changes. Then I inspected commits manually, and found out that commit 64d7e9a4 doesn't work, which makes me think that the fix could be in the conflict resolution of 0836b77f, which makes me remember that I'm late for diner, so my conclusions at this point are not reliable :)

Can you run kvm_stat to see what the exit rates are?

Maybe we're missing a coalesced io in qemu.git? It's also possible that gpxe is hitting the apic or pit quite a lot.

Regards,

Anthony Liguori

Quoted 5 lines

Ideas?
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 39 lines · Anthony Liguori
Quoted 28 lines · Luiz Capitulino

Hi there,

Summary:

 - PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got
   the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's
   as fast as qemu-kvm.git)

 - PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried
   with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I tried with qemu.git v0.13.0 in order to check if this was a regression, but
I got the same problem...

Then I inspected qemu-kvm.git under the assumption that it could have a fix
that wasn't commited to qemu.git. Found this:

 - commit 0836b77f0f65d56d08bdeffbac25cd6d78267dc9 which is merge, works

 - commit cc015e9a5dde2f03f123357fa060acbdfcd570a4 does not work (it's slow)

Quoted 9 lines

I tried a bisect, but it brakes due to gcc4 vs. gcc3 changes. Then I inspected
commits manually, and found out that commit 64d7e9a4 doesn't work, which makes
me think that the fix could be in the conflict resolution of 0836b77f, which
makes me remember that I'm late for diner, so my conclusions at this point are
not reliable :)

Quoted 4 lines

Can you run kvm_stat to see what the exit rates are?

Maybe we're missing a coalesced io in qemu.git?  It's also possible that gpxe is hitting the apic or pit quite a lot.

In gPXE's main loop it will do real <-> protected mode switches and poll hardware. It doesn't handle interrupts itself but sets up the 8254 timer chip.

I once found that polling the keyboard only every couple of gPXE main loop iterations significantly speeds up network throughput under KVM. I never got around to auditing the entire main loop and implementing a clean patch.

Anyway, kvm_stat is a good idea. It may be tickling qemu in a way that qemu-kvm is immune to.

Stefan

#3 lore raw
In reply to Anthony Liguori
Quoted 2 lines · Anthony Liguori

Maybe we're missing a coalesced io in qemu.git?

e1000 coalesced mmio is in qemu.git (always the chance it's broken, of course). I don't think it would make a 5X difference in any case.

Signature · 1 line
error compiling committee.c: too many arguments to function
#4 lore raw
In reply to Anthony Liguori
Quoted 22 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 21 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I tried with qemu.git v0.13.0 in order to check if this was a regression, but I got the same problem...

Then I inspected qemu-kvm.git under the assumption that it could have a fix that wasn't commited to qemu.git. Found this:

- commit 0836b77f0f65d56d08bdeffbac25cd6d78267dc9 which is merge, works

- commit cc015e9a5dde2f03f123357fa060acbdfcd570a4 does not work (it's slow)

Quoted 7 lines
Quoted 5 lines

I tried a bisect, but it brakes due to gcc4 vs. gcc3 changes. Then I inspected commits manually, and found out that commit 64d7e9a4 doesn't work, which makes me think that the fix could be in the conflict resolution of 0836b77f, which makes me remember that I'm late for diner, so my conclusions at this point are not reliable :)

Can you run kvm_stat to see what the exit rates are?

Here you go, both collected after the VM is fully booted:

qemu.git:

efer_reload 0 0
exits 159767195 99
fpu_reload 203 0
halt_exits 544 27
halt_wakeup 0 0
host_state_reload 299851 70
hypercalls 0 0
insn_emulation 134495973 41

insn_emulation_fail            0         0
invlpg                      9687         0
io_exits                   85979         0
irq_exits                 162179         4
irq_injections             11582        27
irq_window                 20712        27
largepages                     0         0
mmio_exits                  9545        41
mmu_cache_miss              5307         0
mmu_flooded                 2493         0
mmu_pde_zapped              1188         0
mmu_pte_updated             5355         0
mmu_pte_write             181550         0
mmu_recycled                   0         0
mmu_shadow_zapped           6437         0
mmu_unsync                    15         0
nmi_injections                 0         0
nmi_window                     0         0
pf_fixed                   73983         0
pf_guest                    4027         0
remote_tlb_flush               1         0
request_irq                    6         0
signal_exits              135731         2
tlb_flush                  26760         0

qemu-kvm.git:

efer_reload 0 0
exits 8697244 33

fpu_reload                    46         0
halt_exits                   206         8
halt_wakeup                    7         0
host_state_reload         105173         8
hypercalls                     0         0
insn_emulation           6984118        21
insn_emulation_fail            0         0
invlpg                      9682         0
io_exits                  626201         0
irq_exits                  22930         4
irq_injections              2815         8
irq_window                  1029         0
largepages                     0         0
mmio_exits                  3657         0
mmu_cache_miss              5271         0
mmu_flooded                 2466         0
mmu_pde_zapped              1146         0
mmu_pte_updated             5294         0
mmu_pte_write             191173         0
mmu_recycled                   0         0
mmu_shadow_zapped           6405         0
mmu_unsync                    17         0
nmi_injections                 0         0
nmi_window                     0         0
pf_fixed                   73580         0
pf_guest                    4169         0
remote_tlb_flush               1         0
request_irq                    0         0
signal_exits               24873         0
tlb_flush                  26628         0
Quoted 14 lines

Maybe we're missing a coalesced io in qemu.git? It's also possible that gpxe is hitting the apic or pit quite a lot.

Regards,

Anthony Liguori

Quoted 5 lines

Ideas?
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 8 lines · Luiz Capitulino
Quoted 5 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 4 lines · Luiz Capitulino

Hi there,

Summary:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Alex

#6 lore raw
Quoted 13 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson…
Quoted 12 lines · Luiz Capitulino
Quoted 9 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 8 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

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

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

So, does this have to be fixed w/o I/O thread?

#7 lore raw
Quoted 20 lines · Luiz Capitulino
Quoted 17 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson…
Quoted 15 lines · Luiz Capitulino
Quoted 12 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 11 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

Quoted 6 lines
Quoted 3 lines

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

What's the performance under qemu-kvm with -no-kvm-irqchip?

Quoted 2 lines

So, does this have to be fixed w/o I/O thread?

If it's most probably an architectural deficit of non-io-thread mode, I would say let it rest in peace. But maybe it points to a generic issues that is just magnified by non-threaded mode.

Jan

#8 lore raw
Quoted 28 lines · Jan Kiszka
Quoted 20 lines · Luiz Capitulino
Quoted 17 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson…
Quoted 15 lines · Luiz Capitulino
Quoted 12 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 11 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

Quoted 6 lines
Quoted 3 lines

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

Quoted 8 lines

What's the performance under qemu-kvm with -no-kvm-irqchip?

Quoted 2 lines

So, does this have to be fixed w/o I/O thread?

If it's most probably an architectural deficit of non-io-thread mode, I would say let it rest in peace. But maybe it points to a generic issues that is just magnified by non-threaded mode.

I've probably been told, but forget. Why isn't io-thread enabled by default? Thanks,

Alex

#9 lore raw
Quoted 32 lines · Alex Williamson
Quoted 31 lines · Jan Kiszka
Quoted 20 lines · Luiz Capitulino
Quoted 17 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson…
Quoted 15 lines · Luiz Capitulino
Quoted 12 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 11 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

Quoted 6 lines
Quoted 3 lines

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

What's the performance under qemu-kvm with -no-kvm-irqchip?

Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

So, does this have to be fixed w/o I/O thread?

If it's most probably an architectural deficit of non-io-thread mode, I would say let it rest in peace. But maybe it points to a generic issues that is just magnified by non-threaded mode.

I've probably been told, but forget. Why isn't io-thread enabled by default? Thanks,

TCG performance still sucks in io-threaded mode. I've three patches in my queue that reduces the overhead a bit further - for me to a reasonable level (will post them the next days). But, still, YMMV depending on the workload.

At least Windows should no longer we a functional blocker thanks to Paolo's work.

Jan

#10 lore raw
Quoted 39 lines · Jan Kiszka
Quoted 38 lines · Alex Williamson
Quoted 36 lines · Jan Kiszka
Quoted 20 lines · Luiz Capitulino
Quoted 17 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson…
Quoted 15 lines · Luiz Capitulino
Quoted 12 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 11 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

Quoted 6 lines
Quoted 3 lines

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

What's the performance under qemu-kvm with -no-kvm-irqchip?

Quoted 2 lines

So, does this have to be fixed w/o I/O thread?

If it's most probably an architectural deficit of non-io-thread mode, I would say let it rest in peace. But maybe it points to a generic issues that is just magnified by non-threaded mode.

Quoted 7 lines
Quoted 2 lines

I've probably been told, but forget. Why isn't io-thread enabled by default? Thanks,

TCG performance still sucks in io-threaded mode. I've three patches in my queue that reduces the overhead a bit further - for me to a reasonable level (will post them the next days). But, still, YMMV depending on the workload.

In fact, they were already prepared. So I've just sent them out.

Jan

maintainer
#11 lore raw
In reply to Jan Kiszka
Quoted 2 lines · Jan Kiszka

At least Windows should no longer we a functional blocker thanks to Paolo's work.

What's left now is icount. I also have had patches ready for a while, I'll send them out.

Paolo

#12 lore raw
In reply to Jan Kiszka
Quoted 21 lines · On Mon, 11 Apr 2011 22:04:52 +0200 Jan Kiszka <[email protected]> wrote:
Quoted 20 lines · Luiz Capitulino
Quoted 17 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson…
Quoted 15 lines · Luiz Capitulino
Quoted 12 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 11 lines · Luiz Capitulino

Hi there,

Summary:

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

What's the performance under qemu-kvm with -no-kvm-irqchip?

Still fast, but just realized that qemu-kvm's configure says that I/O thread is disabled:

IO thread no

And it's fast..

Quoted 10 lines
Quoted 3 lines

So, does this have to be fixed w/o I/O thread?

If it's most probably an architectural deficit of non-io-thread mode, I would say let it rest in peace. But maybe it points to a generic issues that is just magnified by non-threaded mode.

Jan

#13 lore raw
Quoted 28 lines · Luiz Capitulino
Quoted 25 lines · On Mon, 11 Apr 2011 22:04:52 +0200 Jan Kiszka <[email protected]> wrote:
Quoted 24 lines · Luiz Capitulino
Quoted 20 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson…
Quoted 8 lines · Luiz Capitulino
Quoted 5 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori <[email protected]>…
Quoted 4 lines · Luiz Capitulino

Hi there,

Summary:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

What's the performance under qemu-kvm with -no-kvm-irqchip?

Still fast,

I meant: is it even faster with unaccelerated userspace irqchip? I've seen such effects with emulated NICs before.

Quoted 6 lines

but just realized that qemu-kvm's configure says that I/O thread is disabled:

IO thread no

And it's fast..

That only means (so far) that the upstream io-thread code is disabled. Qemu-kvm's own solution is enabled all the time, and you can't switch to upstream anyway as both are incompatible. That's going to change soon (hopefully) when we migrate qemu-kvm to the upstream version.

Jan

#14 lore raw
In reply to Jan Kiszka
Quoted 23 lines · Jan Kiszka
Quoted 22 lines · Luiz Capitulino
Quoted 19 lines · On Mon, 11 Apr 2011 13:00:32 -0600 Alex Williamson<[email protected]>…
Quoted 8 lines · Luiz Capitulino
Quoted 5 lines · On Fri, 08 Apr 2011 19:50:57 -0500 Anthony Liguori<[email protected]>…
Quoted 4 lines · Luiz Capitulino

Hi there,

Summary:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

- PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

- PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I was having this problem too, but I think it's because I forgot to build qemu with --enable-io-thread, which is the default for qemu-kvm. Can you re-configure and build with that and see if it's fast? Thanks,

Quoted 8 lines
Quoted 2 lines

Yes, nice catch, it's faster with I/O thread enabled, even seem faster than qemu-kvm.git.

What's the performance under qemu-kvm with -no-kvm-irqchip?

Quoted 1 line

So, does this have to be fixed w/o I/O thread?

If it's most probably an architectural deficit of non-io-thread mode, I would say let it rest in peace. But maybe it points to a generic issues that is just magnified by non-threaded mode.

If gpxe is spinning waiting for I/O to complete, that's going to prevent select from running until the next signal (timer event).

Regards,

Anthony Liguori

Quoted 2 lines

Jan

#15 lore raw
Quoted 5 lines · Anthony Liguori
Quoted 2 lines

would say let it rest in peace. But maybe it points to a generic issues that is just magnified by non-threaded mode.

If it's most probably an architectural deficit of non-io-thread mode, I

If gpxe is spinning waiting for I/O to complete, that's going to prevent select from running until the next signal (timer event).

Or the next signal (packet received on fd).

Signature · 1 line
error compiling committee.c: too many arguments to function
#16 lore raw
In reply to Luiz Capitulino
Quoted 21 lines · Luiz Capitulino

Hi there,

Summary:

 - PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

 - PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I tried with qemu.git v0.13.0 in order to check if this was a regression, but I got the same problem...

Then I inspected qemu-kvm.git under the assumption that it could have a fix that wasn't commited to qemu.git. Found this:

 - commit 0836b77f0f65d56d08bdeffbac25cd6d78267dc9 which is merge, works

 - commit cc015e9a5dde2f03f123357fa060acbdfcd570a4 does not work (it's slow)

Quoted 7 lines

I tried a bisect, but it brakes due to gcc4 vs. gcc3 changes. Then I inspected commits manually, and found out that commit 64d7e9a4 doesn't work, which makes me think that the fix could be in the conflict resolution of 0836b77f, which makes me remember that I'm late for diner, so my conclusions at this point are not reliable :)

Ideas?

What is the test case? I tried PXE booting a 10M file with and without KVM and the results are pretty much the same with pcnet and e1000. time qemu -monitor stdio -boot n -net nic,model=e1000 -net user,tftp=.,bootfile=10M -net dump,file=foo -enable-kvm time qemu -monitor stdio -boot n -net nic,model=pcnet -net user,tftp=.,bootfile=10M -net dump,file=foo -enable-kvm time qemu -monitor stdio -boot n -net nic,model=e1000 -net user,tftp=.,bootfile=10M -net dump,file=foo
time qemu -monitor stdio -boot n -net nic,model=pcnet -net user,tftp=.,bootfile=10M -net dump,file=foo

All times are ~10s.

#17 lore raw
Quoted 28 lines · On Sat, 9 Apr 2011 13:34:43 +0300 Blue Swirl <[email protected]> wrote:
Quoted 27 lines · Luiz Capitulino

Hi there,

Summary:

 - PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got the problem with e1000, virtio and rtl8139. However, pcnet *works* (it's as fast as qemu-kvm.git)

 - PXE boot in qemu-kvm.git (HEAD df85c051) is fast, less than a minute. Tried with e1000, virtio and rtl8139 (I don't remember if I tried with pcnet)

I tried with qemu.git v0.13.0 in order to check if this was a regression, but I got the same problem...

Then I inspected qemu-kvm.git under the assumption that it could have a fix that wasn't commited to qemu.git. Found this:

 - commit 0836b77f0f65d56d08bdeffbac25cd6d78267dc9 which is merge, works

 - commit cc015e9a5dde2f03f123357fa060acbdfcd570a4 does not work (it's slow)

I tried a bisect, but it brakes due to gcc4 vs. gcc3 changes. Then I inspected commits manually, and found out that commit 64d7e9a4 doesn't work, which makes me think that the fix could be in the conflict resolution of 0836b77f, which makes me remember that I'm late for diner, so my conclusions at this point are not reliable :)

Quoted 3 lines
Quoted 1 line

Ideas?

What is the test case?

It's an external PXE server, command-line is:

qemu -boot n -enable-kvm -net nic,model=virtio -net tap,ifname=vnet0,script=

Quoted 11 lines

I tried PXE booting a 10M file with and without
KVM and the results are pretty much the same with pcnet and e1000. time qemu -monitor stdio -boot n -net nic,model=e1000 -net user,tftp=.,bootfile=10M -net dump,file=foo -enable-kvm time qemu -monitor stdio -boot n -net nic,model=pcnet -net user,tftp=.,bootfile=10M -net dump,file=foo -enable-kvm time qemu -monitor stdio -boot n -net nic,model=e1000 -net user,tftp=.,bootfile=10M -net dump,file=foo
time qemu -monitor stdio -boot n -net nic,model=pcnet -net user,tftp=.,bootfile=10M -net dump,file=foo

Quoted 1 line

All times are ~10s.

Yeah, you're using the internal tftp server.