public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Dave Hansen <haveblue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: kvm-27 vs 28 I/O speed
Date: Fri, 13 Jul 2007 13:49:56 -0500	[thread overview]
Message-ID: <4697C954.8040404@codemonkey.ws> (raw)
In-Reply-To: <1184351486.26210.101.camel@localhost>

Dave Hansen wrote:
> On Fri, 2007-07-13 at 16:41 +0300, Avi Kivity wrote:
>   
>> I tested FC6 i386 about found no difference with or without the patch.
>>     
>
> I've git bisected down the the same patch that you pasted above.  I've
> also tried just applying that single patch to kvm-27 and reproduced the
> slow behavior.
>
>   
>> Dave, can you diff the guest dmesg with kvm-27 and kvm-28 userspace? 
>> Maybe that will tell us something.
>>     
>
> Here's kvm-27 and kvm-27+55a3212bc2...:
>
>
> diff -ru kvm-fast-dmesg.txt kvm-slow-dmesg.txt 
>
>  Linux version 2.6.22 (dave@kernel) (gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #13 Wed Jul 11 15:27:01 PDT 2007
>  BIOS-provided physical RAM map:
> @@ -39,7 +22,7 @@
>  Enabling unmasked SIMD FPU exception support... done.
>  Initializing CPU#0
>  PID hash table entries: 512 (order: 9, 2048 bytes)
> -Detected 2669.668 MHz processor.
> +Detected 2669.011 MHz processor.
>  Console: colour VGA+ 80x25
>  Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
>  Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> @@ -53,7 +36,7 @@
>        .data : 0xc036efcf - 0xc043911c   ( 808 kB)
>        .text : 0xc0100000 - 0xc036efcf   (2491 kB)
>  Checking if this processor honours the WP bit even in supervisor mode... Ok.
> -Calibrating delay using timer specific routine.. 26758.82 BogoMIPS (lpj=53517640)
> +Calibrating delay using timer specific routine.. 26800.00 BogoMIPS (lpj=53600004)
>  Mount-cache hash table entries: 512
>  CPU: L1 I cache: 8K
>  CPU: L2 cache: 128K
> @@ -107,20 +90,21 @@
>  PIIX3: IDE controller at PCI slot 0000:00:01.1
>  PIIX3: chipset revision 0
>  PIIX3: not 100% native mode: will probe irqs later
> -PIIX3: neither IDE port enabled (BIOS)
> +    ide0: BM-DMA at 0x1400-0x1407, BIOS settings: hda:pio, hdb:pio
> +    ide1: BM-DMA at 0x1408-0x140f, BIOS settings: hdc:pio, hdd:pio
>   

There's your problem.  With that patch, your kernel is using PIO instead 
of DMA.

I'm not 100% sure what's going here other than the fact that this 
particular problem has cropped up a number of times on qemu-devel.  It's 
been very difficult to get all guests to actually use DMA.

Regards,

Anthony Liguori

>  hda: QEMU HARDDISK, ATA DISK drive
>  hdb: QEMU HARDDISK, ATA DISK drive
> -Clocksource tsc unstable (delta = 767711774 ns)
> +ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> +Clocksource tsc unstable (delta = 768021683 ns)
>  Time: pit clocksource has been installed.
>  hdc: QEMU CD-ROM, ATAPI CD/DVD-ROM drive
> -ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
>  ide1 at 0x170-0x177,0x376 on irq 15
>  hda: max request size: 512KiB
> -hda: 10485760 sectors (5368 MB) w/256KiB Cache, CHS=10402/255/63
> +hda: 10485760 sectors (5368 MB) w/256KiB Cache, CHS=10402/255/63, (U)DMA
>  hda: cache flushes supported
>   hda: hda1
>  hdb: max request size: 512KiB
> -hdb: 262144 sectors (134 MB) w/256KiB Cache, CHS=260/255/63
> +hdb: 262144 sectors (134 MB) w/256KiB Cache, CHS=260/255/63, (U)DMA
>  hdb: cache flushes supported
>   hdb: hdb1
>  serio: i8042 KBD port at 0x60,0x64 irq 1
> @@ -146,7 +130,7 @@
>  Adding 128480k swap on /dev/hdb1.  Priority:-1 extents:1 across:128480k
>  Checking root file system...
>  fsck 1.37 (21-Mar-2005)
> -/dev/hda1: clean, 46970/655360 files, 287821/1309289 blocks
> +/dev/hda1: clean, 46970/655360 files, 287829/1309289 blocks
>  EXT3 FS on hda1, internal journal
>  Cleaning up ifupdown...done.
>  Checking all file systems...
>
> Looks like the slow versions have DMA enabled.  Is it slower to emulate
> DMA than PIO?
>
> -- Dave
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

  reply	other threads:[~2007-07-13 18:49 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-06 19:07 kvm-27 vs 28 I/O speed Dave Hansen
2007-07-08  8:14 ` Avi Kivity
     [not found]   ` <46909CFD.9050806-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-09 20:33     ` Dave Hansen
2007-07-10  5:44       ` Avi Kivity
     [not found]         ` <46931CC9.8060106-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-11 18:54           ` Dave Hansen
2007-07-12  5:37             ` Avi Kivity
     [not found]               ` <4695BE06.6060609-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-12 18:10                 ` Dave Hansen
2007-07-13 12:23                   ` Avi Kivity
     [not found]                     ` <46976EA7.2020202-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-13 13:27                       ` Luca
     [not found]                         ` <68676e00707130627p32a43a63l3c6fe647242ec3e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-13 13:41                           ` Avi Kivity
     [not found]                             ` <46978110.5090303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-13 18:31                               ` Dave Hansen
2007-07-13 18:49                                 ` Anthony Liguori [this message]
     [not found]                                   ` <4697C954.8040404-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-07-14  6:27                                     ` Avi Kivity
     [not found]                                       ` <46986CEC.7050903-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-16 19:40                                         ` Dave Hansen
2007-07-14 17:30                                     ` Luca
2007-07-15 19:27                                 ` Luca
     [not found]                                   ` <68676e00707151227hb8b8538j706d9d0ee765ed41-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-15 21:07                                     ` Luca
     [not found]                                       ` <68676e00707151407j1cf758e0ya7032c8c8577b982-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-15 21:22                                         ` Luca
     [not found]                                           ` <68676e00707151422n2e1f0a07kc4ec10797edfa40c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-16  8:58                                             ` Avi Kivity
     [not found]                                               ` <469B3351.50508-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-16 19:32                                                 ` Luca
     [not found]                                                   ` <68676e00707161232k5fbd0c2cxd8bebfc21faacc8c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-17  7:58                                                     ` Avi Kivity
     [not found]                                                       ` <469C76C0.5050101-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-18  6:01                                                         ` Luca
2007-07-16 19:49                                             ` Dave Hansen
2007-07-16 19:41                                     ` Dave Hansen
2007-07-16 19:42                                     ` Dave Hansen
  -- strict thread matches above, loose matches on Subject: below --
2007-07-13 14:00 Gregory Haskins
     [not found] ` <46974D330200005A000277EF-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-07-13 14:46   ` Luca
2007-07-13 15:11 Gregory Haskins
     [not found] ` <46975DD10200005A00027808-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-07-13 15:39   ` Luca
     [not found]     ` <68676e00707130839o3af94674y69e7a990b27f0820-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-13 18:33       ` Dave Hansen
2007-07-13 16:04 Gregory Haskins
2007-07-13 16:10 Gregory Haskins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4697C954.8040404@codemonkey.ws \
    --to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
    --cc=haveblue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox