All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-15 14:17 ` Avi Kivity
  0 siblings, 0 replies; 17+ messages in thread
From: Avi Kivity @ 2012-01-15 14:17 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Marcelo Tosatti, qemu-devel, kvm

Otherwise, the dirty log information is lost in the kernel forever.

Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.

Signed-off-by: Avi Kivity <avi@redhat.com>
---

This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
before.

Please test.

 kvm-all.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kvm-all.c b/kvm-all.c
index 3174f42..2cc4562 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -566,6 +566,10 @@ static void kvm_set_phys_mem(MemoryRegionSection *section, bool add)
 
         old = *mem;
 
+        if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) {
+            kvm_physical_sync_dirty_bitmap(section);
+        }
+
         /* unregister the overlapping slot */
         mem->memory_size = 0;
         err = kvm_set_user_memory_region(s, mem);
-- 
1.7.7.1

^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-15 14:17 ` Avi Kivity
  0 siblings, 0 replies; 17+ messages in thread
From: Avi Kivity @ 2012-01-15 14:17 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Marcelo Tosatti, qemu-devel, kvm

Otherwise, the dirty log information is lost in the kernel forever.

Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.

Signed-off-by: Avi Kivity <avi@redhat.com>
---

This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
before.

Please test.

 kvm-all.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kvm-all.c b/kvm-all.c
index 3174f42..2cc4562 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -566,6 +566,10 @@ static void kvm_set_phys_mem(MemoryRegionSection *section, bool add)
 
         old = *mem;
 
+        if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) {
+            kvm_physical_sync_dirty_bitmap(section);
+        }
+
         /* unregister the overlapping slot */
         mem->memory_size = 0;
         err = kvm_set_user_memory_region(s, mem);
-- 
1.7.7.1

^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-15 14:17 ` [Qemu-devel] " Avi Kivity
@ 2012-01-15 14:26   ` Jan Kiszka
  -1 siblings, 0 replies; 17+ messages in thread
From: Jan Kiszka @ 2012-01-15 14:26 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, qemu-devel, kvm

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

On 2012-01-15 15:17, Avi Kivity wrote:
> Otherwise, the dirty log information is lost in the kernel forever.
> 
> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.

Confirmed, problems solved here.

Thanks,
Jan

> 
> Signed-off-by: Avi Kivity <avi@redhat.com>
> ---
> 
> This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
> before.
> 
> Please test.
> 
>  kvm-all.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/kvm-all.c b/kvm-all.c
> index 3174f42..2cc4562 100644
> --- a/kvm-all.c
> +++ b/kvm-all.c
> @@ -566,6 +566,10 @@ static void kvm_set_phys_mem(MemoryRegionSection *section, bool add)
>  
>          old = *mem;
>  
> +        if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) {
> +            kvm_physical_sync_dirty_bitmap(section);
> +        }
> +
>          /* unregister the overlapping slot */
>          mem->memory_size = 0;
>          err = kvm_set_user_memory_region(s, mem);
> -- 1.7.7.1
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-15 14:26   ` Jan Kiszka
  0 siblings, 0 replies; 17+ messages in thread
From: Jan Kiszka @ 2012-01-15 14:26 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, qemu-devel, kvm

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

On 2012-01-15 15:17, Avi Kivity wrote:
> Otherwise, the dirty log information is lost in the kernel forever.
> 
> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.

Confirmed, problems solved here.

Thanks,
Jan

> 
> Signed-off-by: Avi Kivity <avi@redhat.com>
> ---
> 
> This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
> before.
> 
> Please test.
> 
>  kvm-all.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/kvm-all.c b/kvm-all.c
> index 3174f42..2cc4562 100644
> --- a/kvm-all.c
> +++ b/kvm-all.c
> @@ -566,6 +566,10 @@ static void kvm_set_phys_mem(MemoryRegionSection *section, bool add)
>  
>          old = *mem;
>  
> +        if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) {
> +            kvm_physical_sync_dirty_bitmap(section);
> +        }
> +
>          /* unregister the overlapping slot */
>          mem->memory_size = 0;
>          err = kvm_set_user_memory_region(s, mem);
> -- 1.7.7.1
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-15 14:26   ` [Qemu-devel] " Jan Kiszka
@ 2012-01-15 14:40     ` Gerhard Wiesinger
  -1 siblings, 0 replies; 17+ messages in thread
From: Gerhard Wiesinger @ 2012-01-15 14:40 UTC (permalink / raw)
  To: Jan Kiszka, Avi Kivity; +Cc: Marcelo Tosatti, qemu-devel, kvm

On Sun, 15 Jan 2012, Jan Kiszka wrote:

> On 2012-01-15 15:17, Avi Kivity wrote:
>> Otherwise, the dirty log information is lost in the kernel forever.
>>
>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
>
> Confirmed, problems solved here.

Problem from: http://permalink.gmane.org/gmane.comp.emulators.qemu/131853

Confirmed to be fixed, too. Long awaited patch :-)

BTW: There is also a major difference in video performance:
1.) With Patch: 1400MB/s (MByte/s)
2.) Without Patch: 6MB/s

Any reason for that?

Ciao,
Gerhard

-- 
http://www.wiesinger.com/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-15 14:40     ` Gerhard Wiesinger
  0 siblings, 0 replies; 17+ messages in thread
From: Gerhard Wiesinger @ 2012-01-15 14:40 UTC (permalink / raw)
  To: Jan Kiszka, Avi Kivity; +Cc: Marcelo Tosatti, qemu-devel, kvm

On Sun, 15 Jan 2012, Jan Kiszka wrote:

> On 2012-01-15 15:17, Avi Kivity wrote:
>> Otherwise, the dirty log information is lost in the kernel forever.
>>
>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
>
> Confirmed, problems solved here.

Problem from: http://permalink.gmane.org/gmane.comp.emulators.qemu/131853

Confirmed to be fixed, too. Long awaited patch :-)

BTW: There is also a major difference in video performance:
1.) With Patch: 1400MB/s (MByte/s)
2.) Without Patch: 6MB/s

Any reason for that?

Ciao,
Gerhard

-- 
http://www.wiesinger.com/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-15 14:40     ` [Qemu-devel] " Gerhard Wiesinger
@ 2012-01-15 17:01       ` Avi Kivity
  -1 siblings, 0 replies; 17+ messages in thread
From: Avi Kivity @ 2012-01-15 17:01 UTC (permalink / raw)
  To: Gerhard Wiesinger; +Cc: Marcelo Tosatti, Jan Kiszka, qemu-devel, kvm

On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote:
> On Sun, 15 Jan 2012, Jan Kiszka wrote:
>
>> On 2012-01-15 15:17, Avi Kivity wrote:
>>> Otherwise, the dirty log information is lost in the kernel forever.
>>>
>>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
>>
>> Confirmed, problems solved here.
>
> Problem from: http://permalink.gmane.org/gmane.comp.emulators.qemu/131853
>
> Confirmed to be fixed, too. Long awaited patch :-)

Sorry, I forgot about that.  Please ping me if I do that.

>
> BTW: There is also a major difference in video performance:
> 1.) With Patch: 1400MB/s (MByte/s)
> 2.) Without Patch: 6MB/s
>
> Any reason for that?

What are you measuring exactly?

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-15 17:01       ` Avi Kivity
  0 siblings, 0 replies; 17+ messages in thread
From: Avi Kivity @ 2012-01-15 17:01 UTC (permalink / raw)
  To: Gerhard Wiesinger; +Cc: Marcelo Tosatti, Jan Kiszka, qemu-devel, kvm

On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote:
> On Sun, 15 Jan 2012, Jan Kiszka wrote:
>
>> On 2012-01-15 15:17, Avi Kivity wrote:
>>> Otherwise, the dirty log information is lost in the kernel forever.
>>>
>>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
>>
>> Confirmed, problems solved here.
>
> Problem from: http://permalink.gmane.org/gmane.comp.emulators.qemu/131853
>
> Confirmed to be fixed, too. Long awaited patch :-)

Sorry, I forgot about that.  Please ping me if I do that.

>
> BTW: There is also a major difference in video performance:
> 1.) With Patch: 1400MB/s (MByte/s)
> 2.) Without Patch: 6MB/s
>
> Any reason for that?

What are you measuring exactly?

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-15 14:17 ` [Qemu-devel] " Avi Kivity
@ 2012-01-17 11:25   ` Marcelo Tosatti
  -1 siblings, 0 replies; 17+ messages in thread
From: Marcelo Tosatti @ 2012-01-17 11:25 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Jan Kiszka, qemu-devel, kvm

On Sun, Jan 15, 2012 at 04:17:31PM +0200, Avi Kivity wrote:
> Otherwise, the dirty log information is lost in the kernel forever.
> 
> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
> 
> Signed-off-by: Avi Kivity <avi@redhat.com>
> ---
> 
> This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
> before.
> 
> Please test.
> 
>  kvm-all.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)

Applied to uq/master, thanks.


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-17 11:25   ` Marcelo Tosatti
  0 siblings, 0 replies; 17+ messages in thread
From: Marcelo Tosatti @ 2012-01-17 11:25 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Jan Kiszka, qemu-devel, kvm

On Sun, Jan 15, 2012 at 04:17:31PM +0200, Avi Kivity wrote:
> Otherwise, the dirty log information is lost in the kernel forever.
> 
> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
> 
> Signed-off-by: Avi Kivity <avi@redhat.com>
> ---
> 
> This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
> before.
> 
> Please test.
> 
>  kvm-all.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)

Applied to uq/master, thanks.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-17 11:25   ` [Qemu-devel] " Marcelo Tosatti
@ 2012-01-17 12:28     ` Jan Kiszka
  -1 siblings, 0 replies; 17+ messages in thread
From: Jan Kiszka @ 2012-01-17 12:28 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Avi Kivity, kvm, qemu-devel

On 2012-01-17 12:25, Marcelo Tosatti wrote:
> On Sun, Jan 15, 2012 at 04:17:31PM +0200, Avi Kivity wrote:
>> Otherwise, the dirty log information is lost in the kernel forever.
>>
>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
>>
>> Signed-off-by: Avi Kivity <avi@redhat.com>
>> ---
>>
>> This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
>> before.
>>
>> Please test.
>>
>>  kvm-all.c |    4 ++++
>>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> Applied to uq/master, thanks.

It's already in qemu/master. Maybe you want to rebase uq/master at this
chance.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-17 12:28     ` Jan Kiszka
  0 siblings, 0 replies; 17+ messages in thread
From: Jan Kiszka @ 2012-01-17 12:28 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Avi Kivity, kvm, qemu-devel

On 2012-01-17 12:25, Marcelo Tosatti wrote:
> On Sun, Jan 15, 2012 at 04:17:31PM +0200, Avi Kivity wrote:
>> Otherwise, the dirty log information is lost in the kernel forever.
>>
>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
>>
>> Signed-off-by: Avi Kivity <avi@redhat.com>
>> ---
>>
>> This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
>> before.
>>
>> Please test.
>>
>>  kvm-all.c |    4 ++++
>>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> Applied to uq/master, thanks.

It's already in qemu/master. Maybe you want to rebase uq/master at this
chance.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-15 17:01       ` [Qemu-devel] " Avi Kivity
  (?)
@ 2012-01-25 20:15       ` Gerhard Wiesinger
  2012-01-26 12:29         ` Avi Kivity
  -1 siblings, 1 reply; 17+ messages in thread
From: Gerhard Wiesinger @ 2012-01-25 20:15 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, Jan Kiszka, qemu-devel, kvm

On Sun, 15 Jan 2012, Avi Kivity wrote:

> On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote:
>> On Sun, 15 Jan 2012, Jan Kiszka wrote:
>>
>>> On 2012-01-15 15:17, Avi Kivity wrote:
>>>> Otherwise, the dirty log information is lost in the kernel forever.
>>>>
>>>> Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
>>>
>>> Confirmed, problems solved here.
>>
>> Problem from: http://permalink.gmane.org/gmane.comp.emulators.qemu/131853
>>
>> Confirmed to be fixed, too. Long awaited patch :-)
>
> Sorry, I forgot about that.  Please ping me if I do that.
>
>>
>> BTW: There is also a major difference in video performance:
>> 1.) With Patch: 1400MB/s (MByte/s)
>> 2.) Without Patch: 6MB/s
>>
>> Any reason for that?
>
> What are you measuring exactly?

I'm measuring VGA video performance under DOS with own written test 
program.

What's strange, new findings: Measurement doesn't depend on the patch. 
Sometimes it is high sometimes low. I think I have to investigate further.

Any ideas?

BTW: Please merge the patch into qemu-kvm repository.

Ciao,
Gerhard

--
http://www.wiesinger.com/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-25 20:15       ` Gerhard Wiesinger
@ 2012-01-26 12:29         ` Avi Kivity
  2012-01-27  6:50             ` [Qemu-devel] " Gerhard Wiesinger
  0 siblings, 1 reply; 17+ messages in thread
From: Avi Kivity @ 2012-01-26 12:29 UTC (permalink / raw)
  To: Gerhard Wiesinger; +Cc: Marcelo Tosatti, Jan Kiszka, qemu-devel, kvm

On 01/25/2012 10:15 PM, Gerhard Wiesinger wrote:
> On Sun, 15 Jan 2012, Avi Kivity wrote:
>
>> On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote:
>>> On Sun, 15 Jan 2012, Jan Kiszka wrote:
>>>
>>>> On 2012-01-15 15:17, Avi Kivity wrote:
>>>>> Otherwise, the dirty log information is lost in the kernel forever.
>>>>>
>>>>> Fixes opensuse-12.1 boot screen, which changes the vga windows
>>>>> rapidly.
>>>>
>>>> Confirmed, problems solved here.
>>>
>>> Problem from:
>>> http://permalink.gmane.org/gmane.comp.emulators.qemu/131853
>>>
>>> Confirmed to be fixed, too. Long awaited patch :-)
>>
>> Sorry, I forgot about that.  Please ping me if I do that.
>>
>>>
>>> BTW: There is also a major difference in video performance:
>>> 1.) With Patch: 1400MB/s (MByte/s)
>>> 2.) Without Patch: 6MB/s
>>>
>>> Any reason for that?
>>
>> What are you measuring exactly?
>
> I'm measuring VGA video performance under DOS with own written test
> program.
>
> What's strange, new findings: Measurement doesn't depend on the patch.
> Sometimes it is high sometimes low. I think I have to investigate
> further.
>
> Any ideas?

What vga mode are you using?  What does the test program do?

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-26 12:29         ` Avi Kivity
@ 2012-01-27  6:50             ` Gerhard Wiesinger
  0 siblings, 0 replies; 17+ messages in thread
From: Gerhard Wiesinger @ 2012-01-27  6:50 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, Jan Kiszka, qemu-devel, kvm

On Thu, 26 Jan 2012, Avi Kivity wrote:

> On 01/25/2012 10:15 PM, Gerhard Wiesinger wrote:
>> On Sun, 15 Jan 2012, Avi Kivity wrote:
>>
>>> On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote:
>>>> On Sun, 15 Jan 2012, Jan Kiszka wrote:
>>>>
>>>>> On 2012-01-15 15:17, Avi Kivity wrote:
>>>>>> Otherwise, the dirty log information is lost in the kernel forever.
>>>>>>
>>>>>> Fixes opensuse-12.1 boot screen, which changes the vga windows
>>>>>> rapidly.
>>>>>
>>>>> Confirmed, problems solved here.
>>>>
>>>> Problem from:
>>>> http://permalink.gmane.org/gmane.comp.emulators.qemu/131853
>>>>
>>>> Confirmed to be fixed, too. Long awaited patch :-)
>>>
>>> Sorry, I forgot about that.  Please ping me if I do that.
>>>
>>>>
>>>> BTW: There is also a major difference in video performance:
>>>> 1.) With Patch: 1400MB/s (MByte/s)
>>>> 2.) Without Patch: 6MB/s
>>>>
>>>> Any reason for that?
>>>
>>> What are you measuring exactly?
>>
>> I'm measuring VGA video performance under DOS with own written test
>> program.
>>
>> What's strange, new findings: Measurement doesn't depend on the patch.
>> Sometimes it is high sometimes low. I think I have to investigate
>> further.
>>
>> Any ideas?
>
> What vga mode are you using?  What does the test program do?

DOS Test programs, source and binaries can be found at:
http://www.wiesinger.com/opensource/qemu/

1.) Measures page A000:0000 with videomode 4F02, see:
http://www.wiesinger.com/opensource/qemu/memperf.c

2.) Second test program measures setting and getting video bank, see:
http://www.wiesinger.com/opensource/qemu/int10per.c
We already talked about the low performance some time ago and tracked it 
down to kernel <=> userspace switching. But I benchmarked it already once 
and I think there are some optimizations possible (linear list search) 
with mapping functions (e.g. trivial hash function before)

Thnx.

Ciao,
Gerhard

--
http://www.wiesinger.com/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-27  6:50             ` Gerhard Wiesinger
  0 siblings, 0 replies; 17+ messages in thread
From: Gerhard Wiesinger @ 2012-01-27  6:50 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, Jan Kiszka, qemu-devel, kvm

On Thu, 26 Jan 2012, Avi Kivity wrote:

> On 01/25/2012 10:15 PM, Gerhard Wiesinger wrote:
>> On Sun, 15 Jan 2012, Avi Kivity wrote:
>>
>>> On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote:
>>>> On Sun, 15 Jan 2012, Jan Kiszka wrote:
>>>>
>>>>> On 2012-01-15 15:17, Avi Kivity wrote:
>>>>>> Otherwise, the dirty log information is lost in the kernel forever.
>>>>>>
>>>>>> Fixes opensuse-12.1 boot screen, which changes the vga windows
>>>>>> rapidly.
>>>>>
>>>>> Confirmed, problems solved here.
>>>>
>>>> Problem from:
>>>> http://permalink.gmane.org/gmane.comp.emulators.qemu/131853
>>>>
>>>> Confirmed to be fixed, too. Long awaited patch :-)
>>>
>>> Sorry, I forgot about that.  Please ping me if I do that.
>>>
>>>>
>>>> BTW: There is also a major difference in video performance:
>>>> 1.) With Patch: 1400MB/s (MByte/s)
>>>> 2.) Without Patch: 6MB/s
>>>>
>>>> Any reason for that?
>>>
>>> What are you measuring exactly?
>>
>> I'm measuring VGA video performance under DOS with own written test
>> program.
>>
>> What's strange, new findings: Measurement doesn't depend on the patch.
>> Sometimes it is high sometimes low. I think I have to investigate
>> further.
>>
>> Any ideas?
>
> What vga mode are you using?  What does the test program do?

DOS Test programs, source and binaries can be found at:
http://www.wiesinger.com/opensource/qemu/

1.) Measures page A000:0000 with videomode 4F02, see:
http://www.wiesinger.com/opensource/qemu/memperf.c

2.) Second test program measures setting and getting video bank, see:
http://www.wiesinger.com/opensource/qemu/int10per.c
We already talked about the low performance some time ago and tracked it 
down to kernel <=> userspace switching. But I benchmarked it already once 
and I think there are some optimizations possible (linear list search) 
with mapping functions (e.g. trivial hash function before)

Thnx.

Ciao,
Gerhard

--
http://www.wiesinger.com/

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
  2012-01-27  6:50             ` [Qemu-devel] " Gerhard Wiesinger
  (?)
@ 2012-01-29 10:15             ` Avi Kivity
  -1 siblings, 0 replies; 17+ messages in thread
From: Avi Kivity @ 2012-01-29 10:15 UTC (permalink / raw)
  To: Gerhard Wiesinger; +Cc: Marcelo Tosatti, Jan Kiszka, qemu-devel, kvm

On 01/27/2012 08:50 AM, Gerhard Wiesinger wrote:
> On Thu, 26 Jan 2012, Avi Kivity wrote:
>
>> On 01/25/2012 10:15 PM, Gerhard Wiesinger wrote:
>>> On Sun, 15 Jan 2012, Avi Kivity wrote:
>>>
>>>> On 01/15/2012 04:40 PM, Gerhard Wiesinger wrote:
>>>>> On Sun, 15 Jan 2012, Jan Kiszka wrote:
>>>>>
>>>>>> On 2012-01-15 15:17, Avi Kivity wrote:
>>>>>>> Otherwise, the dirty log information is lost in the kernel forever.
>>>>>>>
>>>>>>> Fixes opensuse-12.1 boot screen, which changes the vga windows
>>>>>>> rapidly.
>>>>>>
>>>>>> Confirmed, problems solved here.
>>>>>
>>>>> Problem from:
>>>>> http://permalink.gmane.org/gmane.comp.emulators.qemu/131853
>>>>>
>>>>> Confirmed to be fixed, too. Long awaited patch :-)
>>>>
>>>> Sorry, I forgot about that.  Please ping me if I do that.
>>>>
>>>>>
>>>>> BTW: There is also a major difference in video performance:
>>>>> 1.) With Patch: 1400MB/s (MByte/s)
>>>>> 2.) Without Patch: 6MB/s
>>>>>
>>>>> Any reason for that?
>>>>
>>>> What are you measuring exactly?
>>>
>>> I'm measuring VGA video performance under DOS with own written test
>>> program.
>>>
>>> What's strange, new findings: Measurement doesn't depend on the patch.
>>> Sometimes it is high sometimes low. I think I have to investigate
>>> further.
>>>
>>> Any ideas?
>>
>> What vga mode are you using?  What does the test program do?
>
> DOS Test programs, source and binaries can be found at:
> http://www.wiesinger.com/opensource/qemu/
>

And which one is slower?

> 1.) Measures page A000:0000 with videomode 4F02, see:
> http://www.wiesinger.com/opensource/qemu/memperf.c
>
> 2.) Second test program measures setting and getting video bank, see:
> http://www.wiesinger.com/opensource/qemu/int10per.c
> We already talked about the low performance some time ago and tracked
> it down to kernel <=> userspace switching. But I benchmarked it
> already once and I think there are some optimizations possible (linear
> list search) with mapping functions (e.g. trivial hash function before)

That would be due to srcu, but recent optimizations in srcu should make
is faster than it was initially (though still slow - kvm trades off
memory map update speed for run-time memory access speed).

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-01-29 10:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-15 14:17 [PATCH] kvm: flush the dirty log when unregistering a slot Avi Kivity
2012-01-15 14:17 ` [Qemu-devel] " Avi Kivity
2012-01-15 14:26 ` Jan Kiszka
2012-01-15 14:26   ` [Qemu-devel] " Jan Kiszka
2012-01-15 14:40   ` Gerhard Wiesinger
2012-01-15 14:40     ` [Qemu-devel] " Gerhard Wiesinger
2012-01-15 17:01     ` Avi Kivity
2012-01-15 17:01       ` [Qemu-devel] " Avi Kivity
2012-01-25 20:15       ` Gerhard Wiesinger
2012-01-26 12:29         ` Avi Kivity
2012-01-27  6:50           ` Gerhard Wiesinger
2012-01-27  6:50             ` [Qemu-devel] " Gerhard Wiesinger
2012-01-29 10:15             ` Avi Kivity
2012-01-17 11:25 ` Marcelo Tosatti
2012-01-17 11:25   ` [Qemu-devel] " Marcelo Tosatti
2012-01-17 12:28   ` Jan Kiszka
2012-01-17 12:28     ` [Qemu-devel] " Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.